No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile 1.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. CC = $(CROSS)$(TARGET)gcc
  2. STRIP = $(CROSS)$(TARGET)strip
  3. INCLUDES = -include defines.h -I.
  4. BUILD_ID = $(shell git describe --tags)
  5. CFLAGS ?= $(INCLUDES) -DGIT_BUILD_ID=\"$(BUILD_ID)\" -D_GNU_SOURCE=1 \
  6. -O2 -ggdb -pipe -ffunction-sections -fdata-sections \
  7. -W -Wall -Wextra \
  8. -Wshadow -Wformat-security \
  9. -Wredundant-decls -Wold-style-definition
  10. RM = /bin/rm -f
  11. Q=@
  12. LIBS = -lpthread
  13. FUNCS_DIR = libfuncs
  14. FUNCS_LIB = $(FUNCS_DIR)/libfuncs.a
  15. tsiproxy_OBJS = data.o conf.o commands.o \
  16. request_tsiproxy.o \
  17. proxy_common.o proxy_ts.o \
  18. tsiproxy.o \
  19. $(FUNCS_LIB)
  20. tsiproxy: $(tsiproxy_OBJS)
  21. $(Q)echo " LINK tsiproxy"
  22. $(Q)$(CC) $(CFLAGS) $(tsiproxy_OBJS) $(LIBS) -o tsiproxy
  23. $(FUNCS_LIB):
  24. $(Q)echo " MAKE $(FUNCS_LIB)"
  25. $(Q)$(MAKE) -s -C $(FUNCS_DIR)
  26. %.o: %.c defines.h
  27. $(Q)echo " CC tsiproxy $<"
  28. $(Q)$(CC) -Dtsiproxy=1 $(CFLAGS) -c $<
  29. strip:
  30. $(Q)echo " STRIP"
  31. $(Q)$(STRIP) tsiproxy vod
  32. clean:
  33. $(Q)echo " RM $(tsiproxy_OBJS)"
  34. $(Q)$(RM) $(tsiproxy_OBJS) tsiproxy *~
  35. distclean: clean
  36. $(Q)$(MAKE) -s -C $(FUNCS_DIR) clean
  37. client:
  38. rm -rf *.h *.c *.o *.vo *.eo Makefile libfuncs