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