makefile 948 字节
Newer Older
麦壳饼's avatar
麦壳饼 已提交
1 2
# Copyright (c) 2017 by TAOS Technologies, Inc.
# todo: library dependency, header file dependency
H
hzcheng 已提交
3

麦壳饼's avatar
麦壳饼 已提交
4 5 6 7 8 9
ROOT=./
TARGET=exe
LFLAGS = '-Wl,-rpath,/usr/local/taos/driver/' -ltaos -lpthread -lm -lrt
#LFLAGS = '-Wl,-rpath,/home/zbm/project/td/debug/build/lib/' -L/home/zbm/project/td/debug/build/lib -ltaos -lpthread -lm -lrt
CFLAGS = -O3 -g -Wall -Wno-deprecated -fPIC -Wno-unused-result -Wconversion -Wno-char-subscripts -D_REENTRANT -Wno-format -D_REENTRANT -DLINUX -msse4.2 -Wno-unused-function -D_M_X64 \
	-I/usr/local/taos/include -std=gnu99
H
hzcheng 已提交
10

麦壳饼's avatar
麦壳饼 已提交
11
all: $(TARGET)
H
hzcheng 已提交
12

麦壳饼's avatar
麦壳饼 已提交
13 14 15 16 17 18
exe:
	gcc $(CFLAGS) ./asyncdemo.c -o $(ROOT)/asyncdemo $(LFLAGS)
	gcc $(CFLAGS) ./demo.c -o $(ROOT)/demo $(LFLAGS)
	gcc $(CFLAGS) ./prepare.c -o $(ROOT)/prepare $(LFLAGS)
	gcc $(CFLAGS) ./stream.c -o $(ROOT)/stream $(LFLAGS)
	gcc $(CFLAGS) ./subscribe.c -o $(ROOT)subscribe $(LFLAGS)
H
hzcheng 已提交
19 20

clean:
麦壳饼's avatar
麦壳饼 已提交
21 22 23 24 25
	rm $(ROOT)/asyncdemo
	rm $(ROOT)/demo
	rm $(ROOT)/prepare
	rm $(ROOT)/stream
	rm $(ROOT)/subscribe