728x90
반응형
# Targets
BIN= j2-monitoring-agent
CC = g++
INCLUDE = -I..
CFLAGS = -g -W -Wall -O0 \
-fno-strict-aliasing -fno-inline -rdynamic -m64 -mtune=k8 \
-fPIC -D_POSIX_PTHREAD_SEMANTICS -D_POSIX_THREADS \
-D_POSIX_THREAD_SAFE_FUNCTIONS \
-D_REENTRANT -D_THREAD_SAFE -D_GNU_SOURCE $(INCLUDE)
LDFLAGS =
LIBS =
LDENV = LD_RUN_PATH=/lib:/usr/lib:/usr/local/lib:.:..:
POSTCMD = true
.SUFFIXES :
.SUFFIXES : .cpp .o
.cpp.o :
$(CC) -c $(CFLAGS) $<
all : $(BIN)
clean :
rm -rf $(BIN) core.* *.o a.out *~
.PHONY : all clean
j2-monitoring-agent: j2-monitoring-agent.cpp
$(CC) $(CFLAGS) -o $@ $< $(LIBOBJFILES) $(LDFLAGS) $(LIBS)
# END OF FILE
반응형
'엔지니어 > C++' 카테고리의 다른 글
agent server (create by sk) (0) | 2016.05.26 |
---|---|
agent server makefile (create by sk) (0) | 2016.05.26 |
j2-agent(/etc/init.d/) (create by sk) (0) | 2016.05.26 |
j2-agent.spec (create by sk) (0) | 2016.05.26 |
rpmbuild sh (create by sk) (0) | 2016.05.26 |