| b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame] | 1 | ALL=hs20_spp_server |
| 2 | |
| 3 | include ../../src/build.rules |
| 4 | |
| 5 | CFLAGS += -I../../src |
| 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 | |
| 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 | |
| 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 | |
| 36 | _OBJS_VAR := OBJS |
| 37 | include ../../src/objs.mk |
| 38 | hs20_spp_server: $(OBJS) |
| 39 | $(LDO) $(LDFLAGS) -o hs20_spp_server $(OBJS) $(LIBS) |
| 40 | |
| 41 | clean: common-clean |
| 42 | rm -f core *~ |