1ALL=hs20_spp_server 2 3include ../../src/build.rules 4 5CFLAGS += -I../../src 6CFLAGS += -I../../src/utils 7CFLAGS += -I../../src/crypto 8 9LIBS += -lsqlite3 10 11# Using glibc < 2.17 requires -lrt for clock_gettime() 12LIBS += -lrt 13 14ifndef CONFIG_NO_GITVER 15# Add VERSION_STR postfix for builds from a git repository 16ifeq ($(wildcard ../../.git),../../.git) 17GITVER := $(shell git describe --dirty=+) 18ifneq ($(GITVER),) 19CFLAGS += -DGIT_VERSION_STR_POSTFIX=\"-$(GITVER)\" 20endif 21endif 22endif 23 24OBJS=spp_server.o 25OBJS += hs20_spp_server.o 26OBJS += ../../src/utils/xml-utils.o 27OBJS += ../../src/utils/base64.o 28OBJS += ../../src/utils/common.o 29OBJS += ../../src/utils/os_unix.o 30OBJS += ../../src/utils/wpa_debug.o 31OBJS += ../../src/crypto/md5-internal.o 32CFLAGS += $(shell xml2-config --cflags) 33LIBS += $(shell xml2-config --libs) 34OBJS += ../../src/utils/xml_libxml2.o 35 36_OBJS_VAR := OBJS 37include ../../src/objs.mk 38hs20_spp_server: $(OBJS) 39 $(LDO) $(LDFLAGS) -o hs20_spp_server $(OBJS) $(LIBS) 40 41clean: common-clean 42 rm -f core *~ 43