makefile 716 字节
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
LFLAGS = '-Wl,-rpath,/usr/local/taos/driver' -ltaos -lpthread -lm -lrt
H
hzcheng 已提交
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
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 -std=gnu99

all: $(TARGET)

exe:
	gcc $(CFLAGS) ./asyncdemo.c -o $(ROOT)/asyncdemo $(LFLAGS)
	gcc $(CFLAGS) ./demo.c -o $(ROOT)/demo $(LFLAGS)
	gcc $(CFLAGS) ./stream.c -o $(ROOT)/stream $(LFLAGS)
	gcc $(CFLAGS) ./subscribe.c -o $(ROOT)/subscribe $(LFLAGS)

clean:
	rm $(ROOT)asyncdemo
	rm $(ROOT)demo
	rm $(ROOT)stream
	rm $(ROOT)subscribe