# 定义编译器标志  
CFLAGS = -I./include -L./lib/ -std=gnu++11  
  
# 定义链接器标志和库  
LIBS = -lltssdk -lssl -llz4 -lcurl -lprotobuf -lpthread -lcrypto  
  
# 定义目标程序  
TARGET = sample_putlogs  
  
# 定义源文件  
SRCS = sample_putlogs.cpp  
  
# 默认的构建目标  
all: $(TARGET)  
  
# 构建目标程序  
$(TARGET): $(SRCS)  
	g++ $(SRCS) -o $(TARGET) $(CFLAGS) $(LIBS)  
  
sample_putlogs_async: clean-async
	g++ sample_putlogs_async.cpp -o sample_putlogs_async $(CFLAGS) $(LIBS)
	
# 清理构建文件  
clean:  
	rm -f $(TARGET)  
	
clean-async: sample_putlogs_async
	rm -f sample_putlogs_async
  
# 依赖文件（如果有的话）可以在这里添加，例如：  
# DEPS = someheader.h anotherheader.h  
# $(TARGET): $(SRCS) $(DEPS)  
#	g++ $(SRCS) -o $(TARGET) $(CFLAGS) $(LIBS)
