CC = $(CROSS)$(TARGET)gcc STRIP = $(CROSS)$(TARGET)strip INCLUDES = -include defines.h -I. BUILD_ID = $(shell git describe --tags) CFLAGS ?= $(INCLUDES) -DGIT_BUILD_ID=\"$(BUILD_ID)\" -D_GNU_SOURCE=1 \ -O2 -ggdb -pipe -ffunction-sections -fdata-sections \ -W -Wall -Wextra \ -Wshadow -Wformat-security \ -Wredundant-decls -Wold-style-definition RM = /bin/rm -f Q=@ LIBS = -lpthread FUNCS_DIR = libfuncs FUNCS_LIB = $(FUNCS_DIR)/libfuncs.a tsiproxy_OBJS = data.o conf.o commands.o \ request_tsiproxy.o \ proxy_common.o proxy_ts.o \ tsiproxy.o \ $(FUNCS_LIB) tsiproxy: $(tsiproxy_OBJS) $(Q)echo " LINK tsiproxy" $(Q)$(CC) $(CFLAGS) $(tsiproxy_OBJS) $(LIBS) -o tsiproxy $(FUNCS_LIB): $(Q)echo " MAKE $(FUNCS_LIB)" $(Q)$(MAKE) -s -C $(FUNCS_DIR) %.o: %.c defines.h $(Q)echo " CC tsiproxy $<" $(Q)$(CC) -Dtsiproxy=1 $(CFLAGS) -c $< strip: $(Q)echo " STRIP" $(Q)$(STRIP) tsiproxy vod clean: $(Q)echo " RM $(tsiproxy_OBJS)" $(Q)$(RM) $(tsiproxy_OBJS) tsiproxy *~ distclean: clean $(Q)$(MAKE) -s -C $(FUNCS_DIR) clean client: rm -rf *.h *.c *.o *.vo *.eo Makefile libfuncs