• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1ALL=hs20-osu-client
2
3include ../../src/build.rules
4ifndef CC
5ifeq ($(KERNEL_TYPE), linux)
6CC=arm-himix410-linux-gcc
7else
8CC=gcc
9endif
10
11CFLAGS += -I../../src/utils
12CFLAGS += -I../../src/common
13CFLAGS += -I../../src
14
15ifndef CONFIG_NO_BROWSER
16ifndef CONFIG_BROWSER_SYSTEM
17TEST_WK := $(shell pkg-config --silence-errors --cflags webkitgtk-3.0)
18ifeq ($(TEST_WK),)
19# Try webkit2
20GTKCFLAGS := $(shell pkg-config --cflags gtk+-3.0 webkit2gtk-4.0)
21GTKLIBS := $(shell pkg-config --libs gtk+-3.0 webkit2gtk-4.0)
22CFLAGS += -DUSE_WEBKIT2
23else
24GTKCFLAGS := $(shell pkg-config --cflags gtk+-3.0 webkitgtk-3.0)
25GTKLIBS := $(shell pkg-config --libs gtk+-3.0 webkitgtk-3.0)
26endif
27
28CFLAGS += $(GTKCFLAGS)
29LIBS += $(GTKLIBS)
30endif
31endif
32
33OBJS=spp_client.o
34OBJS += oma_dm_client.o
35OBJS += osu_client.o
36OBJS += est.o
37OBJS += ../../src/utils/xml-utils.o
38CFLAGS += -DCONFIG_CTRL_IFACE
39CFLAGS += -DCONFIG_CTRL_IFACE_UNIX
40OBJS += ../../src/common/wpa_ctrl.o ../../src/common/wpa_helpers.o
41ifdef CONFIG_NO_BROWSER
42CFLAGS += -DCONFIG_NO_BROWSER
43else
44ifdef CONFIG_BROWSER_SYSTEM
45OBJS += ../../src/utils/eloop.o
46OBJS += ../../src/utils/wpabuf.o
47OBJS += ../../src/wps/httpread.o
48OBJS += ../../src/wps/http_server.o
49OBJS += ../../src/utils/browser-system.o
50else
51OBJS += ../../src/utils/browser.o
52endif
53endif
54OBJS += ../../src/utils/xml_libxml2.o
55OBJS += ../../src/utils/http_curl.o
56OBJS += ../../src/utils/base64.o
57OBJS += ../../src/utils/os_unix.o
58CFLAGS += -DCONFIG_DEBUG_FILE
59OBJS += ../../src/utils/wpa_debug.o
60OBJS += ../../src/utils/common.o
61OBJS += ../../src/crypto/crypto_internal.o
62OBJS += ../../src/crypto/md5-internal.o
63OBJS += ../../src/crypto/sha1-internal.o
64OBJS += ../../src/crypto/sha256-internal.o
65
66CFLAGS += $(shell xml2-config --cflags)
67LIBS += $(shell xml2-config --libs)
68
69# Allow static/custom linking of libcurl.
70ifdef CUST_CURL_LINKAGE
71LIBS += ${CUST_CURL_LINKAGE}
72else
73LIBS += -lcurl
74endif
75
76CFLAGS += -DEAP_TLS_OPENSSL
77OBJS += ../../src/crypto/tls_openssl_ocsp.o
78LIBS += -lssl -lcrypto
79
80_OBJS_VAR := OBJS
81include ../../src/objs.mk
82hs20-osu-client: $(OBJS)
83	$(Q)$(LDO) $(LDFLAGS) -o hs20-osu-client $(OBJS) $(LIBS)
84	@$(E) "  LD " $@
85
86clean: common-clean
87	rm -f core *~
88