TDengine/tests/script/api/makefile

35 lines
1.3 KiB
Makefile
Raw Normal View History

2021-05-09 05:30:37 +00:00
# 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
2021-09-23 08:46:04 +00:00
CFLAGS = -O0 -g -Wall -Wno-deprecated -fPIC -Wno-unused-result -Wconversion \
2021-05-09 05:30:37 +00:00
-Wno-char-subscripts -D_REENTRANT -Wno-format -D_REENTRANT -DLINUX \
2021-08-19 01:52:53 +00:00
-Wno-unused-function -D_M_X64 -I/usr/local/taos/include -std=gnu99 \
2021-09-23 02:29:53 +00:00
-I../../../deps/cJson/inc\
-I../../../src/os/inc/ -I../../../src/inc -I../../../src/util/inc \
2021-10-13 09:46:27 +00:00
-I../../../src/common/inc -I../../../deps/cJson/inc \
2021-08-26 01:31:07 +00:00
-fsanitize=address -fsanitize=undefined -fno-sanitize-recover=all -fsanitize=float-divide-by-zero -fsanitize=float-cast-overflow -fno-sanitize=null -fno-sanitize=alignment
2021-05-09 05:30:37 +00:00
all: $(TARGET)
exe:
gcc $(CFLAGS) ./batchprepare.c -o $(ROOT)batchprepare $(LFLAGS)
gcc $(CFLAGS) ./stmtBatchTest.c -o $(ROOT)stmtBatchTest $(LFLAGS)
gcc $(CFLAGS) ./stmtTest.c -o $(ROOT)stmtTest $(LFLAGS)
2021-08-25 10:10:14 +00:00
gcc $(CFLAGS) ./stmt.c -o $(ROOT)stmt $(LFLAGS)
2021-09-23 02:29:53 +00:00
gcc $(CFLAGS) ./clientcfgtest.c -o $(ROOT)clientcfgtest $(LFLAGS)
gcc $(CFLAGS) ./openTSDBTest.c -o $(ROOT)openTSDBTest $(LFLAGS)
2021-05-09 05:30:37 +00:00
2021-05-09 05:30:37 +00:00
clean:
rm $(ROOT)batchprepare
rm $(ROOT)stmtBatchTest
rm $(ROOT)stmtTest
2021-08-19 01:52:53 +00:00
rm $(ROOT)stmt_function
2021-09-23 02:29:53 +00:00
rm $(ROOT)clientcfgtest
rm $(ROOT)openTSDBTest
2021-08-25 10:10:14 +00:00
rm $(ROOT)stmt
2021-10-12 08:01:34 +00:00