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