# 定义编译器标志  
CFLAGS = -I./include -L./lib/ -std=gnu++11  
  
# 定义链接器标志和库  
LIBS = -lltssdk -lssl -llz4 -lcurl -lprotobuf -lpthread -lcrypto  

sample_putLogs: clean
	g++ sample_putLogs.cpp -o sample_putLogs $(CFLAGS) $(LIBS)

sample_putLogs_async: clean-async
	g++ sample_putLogs_async.cpp -o sample_putLogs_async $(CFLAGS) $(LIBS)

sample_getCursor: clean-getCursor
	g++ sample_getCursor.cpp -o sample_getCursor $(CFLAGS) $(LIBS)

sample_pullLogs: clean-pullLogs
	g++ sample_pullLogs.cpp -o sample_pullLogs $(CFLAGS) $(LIBS)

# 清理构建文件
clean:
	rm -f sample_putLogs

clean-async:
	rm -f sample_putLogs_async

clean-getCursor:
	rm -f sample_getCursor

clean-pullLogs:
	rm -f sample_pullLogs
