throwing away the client and let database functionality always be built.
The debug output used in client/stdout.c should coexist with the database. via __DEBUG__ macro.
This commit is contained in:
parent
cfb5e85699
commit
2d247fd827
3 changed files with 190 additions and 321 deletions
18
Makefile
18
Makefile
|
|
@ -3,9 +3,9 @@
|
|||
#
|
||||
|
||||
CC = gcc
|
||||
CFLAGS = -O2 -Werror
|
||||
CFLAGS = -O2 -Werror `mysql_config --cflags`
|
||||
LD = $(CC)
|
||||
LDFLAGS =
|
||||
LDFLAGS = -L/usr/lib/mysql -lmysqlclient
|
||||
|
||||
FINDOBJ = find . -name "*.o" -type f -printf "%P\n"
|
||||
|
||||
|
|
@ -28,16 +28,6 @@ endif
|
|||
|
||||
obj =
|
||||
|
||||
ifeq ($(DEBUG), 2)
|
||||
obj += src/client/stdout.o
|
||||
else
|
||||
CFLAGS += `mysql_config --cflags`
|
||||
LDFLAGS += -L/usr/lib/mysql -lmysqlclient
|
||||
obj += src/ini/iniparser.o
|
||||
obj += src/ini/dictionary.o
|
||||
obj += src/client/mysql.o
|
||||
endif
|
||||
|
||||
obj += src/rbtree.o
|
||||
obj += src/path.o
|
||||
obj += src/strbuf.o
|
||||
|
|
@ -49,6 +39,10 @@ obj += src/event.o
|
|||
obj += src/fscrawl.o
|
||||
obj += src/queue.o
|
||||
|
||||
obj += src/ini/iniparser.o
|
||||
obj += src/ini/dictionary.o
|
||||
obj += src/archived.o
|
||||
|
||||
.PHONY : all clean cleaner
|
||||
all : $(PROGRAM)
|
||||
|
||||
|
|
|
|||
Reference in a new issue