diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..f48c1bf --- /dev/null +++ b/Makefile @@ -0,0 +1,20 @@ +CC=gcc +SRC=accman.c src/crypt_sha256.c src/db_user.c +BINDIR=bin +INC=-Iinclude/ -I/usr/include/mysql +OPT_DBG=-g +OPT_OPT=-O2 +OPT=-Wall -DBIG_JOINS=1 -fno-strict-aliasing +LD=-lssl -L/usr/lib/x86_64-linux-gnu -lmysqlclient -lpthread -lm -lrt -ldl +TARGET=accman + +${TARGET}: + $(shell mkdir -p bin) + ${CC} ${OPT} ${OPT_OPT} ${LD} ${INC} ${SRC} -o ${BINDIR}/${TARGET} + +debug: + $(shell mkdir -p bin) + ${CC} ${OPT} ${OPT_DBG} ${LD} ${INC} ${SRC} -o ${BINDIR}/${TARGET} + +clean: + rm -rf bin |