Makefile 923 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. all: hs20_spp_server
  2. ifndef CC
  3. CC=gcc
  4. endif
  5. ifndef LDO
  6. LDO=$(CC)
  7. endif
  8. ifndef CFLAGS
  9. CFLAGS = -MMD -O2 -Wall -g
  10. endif
  11. CFLAGS += -I../../src
  12. CFLAGS += -I../../src/utils
  13. CFLAGS += -I../../src/crypto
  14. LIBS += -lsqlite3
  15. # Using glibc < 2.17 requires -lrt for clock_gettime()
  16. LIBS += -lrt
  17. OBJS=spp_server.o
  18. OBJS += hs20_spp_server.o
  19. OBJS += ../../src/utils/xml-utils.o
  20. OBJS += ../../src/utils/base64.o
  21. OBJS += ../../src/utils/common.o
  22. OBJS += ../../src/utils/os_unix.o
  23. OBJS += ../../src/utils/wpa_debug.o
  24. OBJS += ../../src/crypto/md5-internal.o
  25. CFLAGS += $(shell xml2-config --cflags)
  26. LIBS += $(shell xml2-config --libs)
  27. OBJS += ../../src/utils/xml_libxml2.o
  28. hs20_spp_server: $(OBJS)
  29. $(LDO) $(LDFLAGS) -o hs20_spp_server $(OBJS) $(LIBS)
  30. clean:
  31. rm -f core *~ *.o *.d hs20_spp_server
  32. rm -f ../../src/utils/*.o
  33. rm -f ../../src/utils/*.d
  34. rm -f ../../src/crypto/*.o
  35. rm -f ../../src/crypto/*.d
  36. -include $(OBJS:%.o=%.d)