makefile 888 字节
Newer Older
1 2 3 4 5 6
# Copyright (c) 2017 by TAOS Technologies, Inc.
# todo: library dependency, header file dependency

ROOT=./
TARGET=exe
LFLAGS = '-Wl,-rpath,/usr/local/taos/driver/' -ltaos -lpthread -lm -lrt
D
stmt  
dapan1121 已提交
7
CFLAGS = -O0 -g -Wno-deprecated -fPIC -Wno-unused-result -Wconversion \
8
	-Wno-char-subscripts -D_REENTRANT -Wno-format -D_REENTRANT -DLINUX \
D
stmt  
dapan1121 已提交
9
	-Wno-unused-function -D_M_X64 -I/usr/local/taos/include -std=gnu99 -Wno-sign-conversion
10 11 12 13 14

all: $(TARGET)

exe:
	gcc $(CFLAGS) ./batchprepare.c  -o $(ROOT)batchprepare  $(LFLAGS)
D
dapan1121 已提交
15
	gcc $(CFLAGS) ./stopquery.c  -o $(ROOT)stopquery $(LFLAGS)
16
	gcc $(CFLAGS) ./dbTableRoute.c  -o $(ROOT)dbTableRoute $(LFLAGS)
17
	gcc $(CFLAGS) ./insertSameTs.c  -o $(ROOT)insertSameTs $(LFLAGS)
K
kailixu 已提交
18
	gcc $(CFLAGS) ./passwdTest.c  -o $(ROOT)passwdTest $(LFLAGS)
19 20 21

clean:
	rm $(ROOT)batchprepare
H
Hui Li 已提交
22 23
	rm $(ROOT)stopquery
	rm $(ROOT)dbTableRoute
K
kailixu 已提交
24 25
	rm $(ROOT)insertSameTs
	rm $(ROOT)passwdTest