24 CFLAGS = -MMD -O2 -Wall -g
27 CFLAGS += -I../../src/utils
28 CFLAGS += -I../../src/common
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)
41 OBJS += oma_dm_client.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
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
58 OBJS += ../../src/utils/browser.o
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
73 CFLAGS += $(shell xml2-config --cflags)
74 LIBS += $(shell xml2-config --libs)
76 # Allow static/custom linking of libcurl.
77 ifdef CUST_CURL_LINKAGE
78 LIBS += ${CUST_CURL_LINKAGE}
83 CFLAGS += -DEAP_TLS_OPENSSL
84 OBJS += ../../src/crypto/tls_openssl_ocsp.o
85 LIBS += -lssl -lcrypto
87 hs20-osu-client: $(OBJS)
88 $(Q)$(LDO) $(LDFLAGS) -o hs20-osu-client $(OBJS) $(LIBS)
92 $(Q)$(CC) -c -o $@ $(CFLAGS) $<
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
106 -include $(OBJS:%.o=%.d)