728x90
반응형
# Targets
BIN= sel_svr sel_cli
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 = -lmysqlpp
LDENV = LD_RUN_PATH=/lib:/usr/lib:/usr/local/lib:.:..:/usr/local/include/mysql++:/usr/local/mysql/include/:/usr/local/lib/:/usr/local/mysql/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
tcpsvr: sel_svr.cpp
$(CC) $(CFLAGS) -o $@ $< $(LIBOBJFILES) $(LDFLAGS) $(LIBS)
tcpcli: sel_cli.cpp
$(CC) $(CFLAGS) -o $@ $< $(LIBOBJFILES) $(LDFLAGS) $(LIBS)
# END OF FILE
반응형
'엔지니어 > C++' 카테고리의 다른 글
socket_test_client (0) | 2016.05.26 |
---|---|
agent server (create by sk) (0) | 2016.05.26 |
agent client 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 |