makefile 818 字节
Newer Older
H
hzcheng 已提交
1 2 3 4 5
# Copyright (c) 2017 by TAOS Technologies, Inc.
# todo: library dependency, header file dependency

ROOT=./
TARGET=exe
6 7 8
LFLAGS = '-Wl,-rpath,/usr/local/taos/driver/' -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 已提交
9 10 11 12

all: $(TARGET)

exe:
13 14 15 16 17
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 已提交
18 19

clean:
20 21 22 23 24
	rm $(ROOT)/asyncdemo
	rm $(ROOT)/demo
	rm $(ROOT)/prepare
	rm $(ROOT)/stream
	rm $(ROOT)/subscribe