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