2020-09-18 11:49:48 +02:00
|
|
|
ALL=hs20_spp_server
|
2013-03-28 09:27:27 +01:00
|
|
|
|
2020-09-18 11:49:48 +02:00
|
|
|
include ../../src/build.rules
|
2013-03-28 09:27:27 +01:00
|
|
|
|
2015-05-26 22:47:33 +02:00
|
|
|
CFLAGS += -I../../src
|
2013-03-28 09:27:27 +01:00
|
|
|
CFLAGS += -I../../src/utils
|
|
|
|
CFLAGS += -I../../src/crypto
|
|
|
|
|
|
|
|
LIBS += -lsqlite3
|
|
|
|
|
|
|
|
# Using glibc < 2.17 requires -lrt for clock_gettime()
|
|
|
|
LIBS += -lrt
|
|
|
|
|
2019-01-23 11:34:57 +01:00
|
|
|
ifndef CONFIG_NO_GITVER
|
|
|
|
# Add VERSION_STR postfix for builds from a git repository
|
|
|
|
ifeq ($(wildcard ../../.git),../../.git)
|
|
|
|
GITVER := $(shell git describe --dirty=+)
|
|
|
|
ifneq ($(GITVER),)
|
|
|
|
CFLAGS += -DGIT_VERSION_STR_POSTFIX=\"-$(GITVER)\"
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2013-03-28 09:27:27 +01:00
|
|
|
OBJS=spp_server.o
|
|
|
|
OBJS += hs20_spp_server.o
|
|
|
|
OBJS += ../../src/utils/xml-utils.o
|
|
|
|
OBJS += ../../src/utils/base64.o
|
|
|
|
OBJS += ../../src/utils/common.o
|
|
|
|
OBJS += ../../src/utils/os_unix.o
|
|
|
|
OBJS += ../../src/utils/wpa_debug.o
|
|
|
|
OBJS += ../../src/crypto/md5-internal.o
|
|
|
|
CFLAGS += $(shell xml2-config --cflags)
|
|
|
|
LIBS += $(shell xml2-config --libs)
|
|
|
|
OBJS += ../../src/utils/xml_libxml2.o
|
|
|
|
|
2020-09-18 11:49:53 +02:00
|
|
|
_OBJS_VAR := OBJS
|
|
|
|
include ../../src/objs.mk
|
2013-03-28 09:27:27 +01:00
|
|
|
hs20_spp_server: $(OBJS)
|
|
|
|
$(LDO) $(LDFLAGS) -o hs20_spp_server $(OBJS) $(LIBS)
|
|
|
|
|
2020-09-18 11:49:51 +02:00
|
|
|
clean: common-clean
|
2020-09-18 11:49:53 +02:00
|
|
|
rm -f core *~
|