]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/wpa/hs20/client/Makefile
Update hostapd/wpa_supplicant to 2.8 to fix multiple vulnerabilities.
[FreeBSD/FreeBSD.git] / contrib / wpa / hs20 / client / Makefile
1 all: hs20-osu-client
2
3 ifndef CC
4 CC=gcc
5 endif
6
7 ifndef LDO
8 LDO=$(CC)
9 endif
10
11 ifeq ($(QUIET), 1)
12 Q=@
13 E=true
14 else
15 Q=@
16 E=echo
17 ifeq ($(V), 1)
18 Q=
19 E=true
20 endif
21 endif
22
23 ifndef CFLAGS
24 CFLAGS = -MMD -O2 -Wall -g
25 endif
26
27 CFLAGS += -I../../src/utils
28 CFLAGS += -I../../src/common
29 CFLAGS += -I../../src
30
31 ifndef CONFIG_NO_BROWSER
32 ifndef CONFIG_BROWSER_SYSTEM
33 GTKCFLAGS := $(shell pkg-config --cflags gtk+-3.0 webkitgtk-3.0)
34 GTKLIBS := $(shell pkg-config --libs gtk+-3.0 webkitgtk-3.0)
35 CFLAGS += $(GTKCFLAGS)
36 LIBS += $(GTKLIBS)
37 endif
38 endif
39
40 OBJS=spp_client.o
41 OBJS += oma_dm_client.o
42 OBJS += osu_client.o
43 OBJS += est.o
44 OBJS += ../../src/utils/xml-utils.o
45 CFLAGS += -DCONFIG_CTRL_IFACE
46 CFLAGS += -DCONFIG_CTRL_IFACE_UNIX
47 OBJS += ../../src/common/wpa_ctrl.o ../../src/common/wpa_helpers.o
48 ifdef CONFIG_NO_BROWSER
49 CFLAGS += -DCONFIG_NO_BROWSER
50 else
51 ifdef CONFIG_BROWSER_SYSTEM
52 OBJS += ../../src/utils/eloop.o
53 OBJS += ../../src/utils/wpabuf.o
54 OBJS += ../../src/wps/httpread.o
55 OBJS += ../../src/wps/http_server.o
56 OBJS += ../../src/utils/browser-system.o
57 else
58 OBJS += ../../src/utils/browser.o
59 endif
60 endif
61 OBJS += ../../src/utils/xml_libxml2.o
62 OBJS += ../../src/utils/http_curl.o
63 OBJS += ../../src/utils/base64.o
64 OBJS += ../../src/utils/os_unix.o
65 CFLAGS += -DCONFIG_DEBUG_FILE
66 OBJS += ../../src/utils/wpa_debug.o
67 OBJS += ../../src/utils/common.o
68 OBJS += ../../src/crypto/crypto_internal.o
69 OBJS += ../../src/crypto/md5-internal.o
70 OBJS += ../../src/crypto/sha1-internal.o
71 OBJS += ../../src/crypto/sha256-internal.o
72
73 CFLAGS += $(shell xml2-config --cflags)
74 LIBS += $(shell xml2-config --libs)
75
76 # Allow static/custom linking of libcurl.
77 ifdef CUST_CURL_LINKAGE
78 LIBS += ${CUST_CURL_LINKAGE}
79 else
80 LIBS += -lcurl
81 endif
82
83 CFLAGS += -DEAP_TLS_OPENSSL
84 OBJS += ../../src/crypto/tls_openssl_ocsp.o
85 LIBS += -lssl -lcrypto
86
87 hs20-osu-client: $(OBJS)
88         $(Q)$(LDO) $(LDFLAGS) -o hs20-osu-client $(OBJS) $(LIBS)
89         @$(E) "  LD " $@
90
91 %.o: %.c
92         $(Q)$(CC) -c -o $@ $(CFLAGS) $<
93         @$(E) "  CC " $<
94
95 clean:
96         rm -f core *~ *.o *.d hs20-osu-client
97         rm -f ../../src/utils/*.o
98         rm -f ../../src/utils/*.d
99         rm -f ../../src/common/*.o
100         rm -f ../../src/common/*.d
101         rm -f ../../src/crypto/*.o
102         rm -f ../../src/crypto/*.d
103         rm -f ../../src/wps/*.o
104         rm -f ../../src/wps/*.d
105
106 -include $(OBJS:%.o=%.d)