blob: 0cab6d6b010a1d03615f6d0e24b839a1391f5669 [file] [log] [blame]
Hai Shalom899fcc72020-10-19 14:38:18 -07001ALL=hs20_spp_server
Dmitry Shmidtdf5a7e42014-04-02 12:59:59 -07002
Hai Shalom899fcc72020-10-19 14:38:18 -07003include ../../src/build.rules
Dmitry Shmidtdf5a7e42014-04-02 12:59:59 -07004
Dmitry Shmidtb1e52102015-05-29 12:36:29 -07005CFLAGS += -I../../src
Dmitry Shmidtdf5a7e42014-04-02 12:59:59 -07006CFLAGS += -I../../src/utils
7CFLAGS += -I../../src/crypto
8
9LIBS += -lsqlite3
10
11# Using glibc < 2.17 requires -lrt for clock_gettime()
12LIBS += -lrt
13
Hai Shalom74f70d42019-02-11 14:42:39 -080014ifndef 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
Dmitry Shmidtdf5a7e42014-04-02 12:59:59 -070024OBJS=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
Hai Shalom899fcc72020-10-19 14:38:18 -070036_OBJS_VAR := OBJS
37include ../../src/objs.mk
Dmitry Shmidtdf5a7e42014-04-02 12:59:59 -070038hs20_spp_server: $(OBJS)
39 $(LDO) $(LDFLAGS) -o hs20_spp_server $(OBJS) $(LIBS)
40
Hai Shalom899fcc72020-10-19 14:38:18 -070041clean: common-clean
42 rm -f core *~