1e5b75505Sopenharmony_ciall: hs20-osu-client 2e5b75505Sopenharmony_ci 3e5b75505Sopenharmony_ciifndef CC 4e5b75505Sopenharmony_ciifeq ($(KERNEL_TYPE), linux) 5e5b75505Sopenharmony_ciCC=arm-himix410-linux-gcc 6e5b75505Sopenharmony_cielse 7e5b75505Sopenharmony_ciCC=gcc 8e5b75505Sopenharmony_ciendif 9e5b75505Sopenharmony_ci 10e5b75505Sopenharmony_ciifndef LDO 11e5b75505Sopenharmony_ciLDO=$(CC) 12e5b75505Sopenharmony_ciendif 13e5b75505Sopenharmony_ci 14e5b75505Sopenharmony_ciifeq ($(QUIET), 1) 15e5b75505Sopenharmony_ciQ=@ 16e5b75505Sopenharmony_ciE=true 17e5b75505Sopenharmony_cielse 18e5b75505Sopenharmony_ciQ=@ 19e5b75505Sopenharmony_ciE=echo 20e5b75505Sopenharmony_ciifeq ($(V), 1) 21e5b75505Sopenharmony_ciQ= 22e5b75505Sopenharmony_ciE=true 23e5b75505Sopenharmony_ciendif 24e5b75505Sopenharmony_ciendif 25e5b75505Sopenharmony_ci 26e5b75505Sopenharmony_ciifndef CFLAGS 27e5b75505Sopenharmony_ciCFLAGS = -MMD -O2 -Wall -g 28e5b75505Sopenharmony_ciendif 29e5b75505Sopenharmony_ci 30e5b75505Sopenharmony_ciCFLAGS += -I../../src/utils 31e5b75505Sopenharmony_ciCFLAGS += -I../../src/common 32e5b75505Sopenharmony_ciCFLAGS += -I../../src 33e5b75505Sopenharmony_ci 34e5b75505Sopenharmony_ciifndef CONFIG_NO_BROWSER 35e5b75505Sopenharmony_ciifndef CONFIG_BROWSER_SYSTEM 36e5b75505Sopenharmony_ciGTKCFLAGS := $(shell pkg-config --cflags gtk+-3.0 webkitgtk-3.0) 37e5b75505Sopenharmony_ciGTKLIBS := $(shell pkg-config --libs gtk+-3.0 webkitgtk-3.0) 38e5b75505Sopenharmony_ciCFLAGS += $(GTKCFLAGS) 39e5b75505Sopenharmony_ciLIBS += $(GTKLIBS) 40e5b75505Sopenharmony_ciendif 41e5b75505Sopenharmony_ciendif 42e5b75505Sopenharmony_ci 43e5b75505Sopenharmony_ciOBJS=spp_client.o 44e5b75505Sopenharmony_ciOBJS += oma_dm_client.o 45e5b75505Sopenharmony_ciOBJS += osu_client.o 46e5b75505Sopenharmony_ciOBJS += est.o 47e5b75505Sopenharmony_ciOBJS += ../../src/utils/xml-utils.o 48e5b75505Sopenharmony_ciCFLAGS += -DCONFIG_CTRL_IFACE 49e5b75505Sopenharmony_ciCFLAGS += -DCONFIG_CTRL_IFACE_UNIX 50e5b75505Sopenharmony_ciOBJS += ../../src/common/wpa_ctrl.o ../../src/common/wpa_helpers.o 51e5b75505Sopenharmony_ciifdef CONFIG_NO_BROWSER 52e5b75505Sopenharmony_ciCFLAGS += -DCONFIG_NO_BROWSER 53e5b75505Sopenharmony_cielse 54e5b75505Sopenharmony_ciifdef CONFIG_BROWSER_SYSTEM 55e5b75505Sopenharmony_ciOBJS += ../../src/utils/eloop.o 56e5b75505Sopenharmony_ciOBJS += ../../src/utils/wpabuf.o 57e5b75505Sopenharmony_ciOBJS += ../../src/wps/httpread.o 58e5b75505Sopenharmony_ciOBJS += ../../src/wps/http_server.o 59e5b75505Sopenharmony_ciOBJS += ../../src/utils/browser-system.o 60e5b75505Sopenharmony_cielse 61e5b75505Sopenharmony_ciOBJS += ../../src/utils/browser.o 62e5b75505Sopenharmony_ciendif 63e5b75505Sopenharmony_ciendif 64e5b75505Sopenharmony_ciOBJS += ../../src/utils/xml_libxml2.o 65e5b75505Sopenharmony_ciOBJS += ../../src/utils/http_curl.o 66e5b75505Sopenharmony_ciOBJS += ../../src/utils/base64.o 67e5b75505Sopenharmony_ciOBJS += ../../src/utils/os_unix.o 68e5b75505Sopenharmony_ciCFLAGS += -DCONFIG_DEBUG_FILE 69e5b75505Sopenharmony_ciOBJS += ../../src/utils/wpa_debug.o 70e5b75505Sopenharmony_ciOBJS += ../../src/utils/common.o 71e5b75505Sopenharmony_ciOBJS += ../../src/crypto/crypto_internal.o 72e5b75505Sopenharmony_ciOBJS += ../../src/crypto/md5-internal.o 73e5b75505Sopenharmony_ciOBJS += ../../src/crypto/sha1-internal.o 74e5b75505Sopenharmony_ciOBJS += ../../src/crypto/sha256-internal.o 75e5b75505Sopenharmony_ci 76e5b75505Sopenharmony_ciCFLAGS += $(shell xml2-config --cflags) 77e5b75505Sopenharmony_ciLIBS += $(shell xml2-config --libs) 78e5b75505Sopenharmony_ci 79e5b75505Sopenharmony_ci# Allow static/custom linking of libcurl. 80e5b75505Sopenharmony_ciifdef CUST_CURL_LINKAGE 81e5b75505Sopenharmony_ciLIBS += ${CUST_CURL_LINKAGE} 82e5b75505Sopenharmony_cielse 83e5b75505Sopenharmony_ciLIBS += -lcurl 84e5b75505Sopenharmony_ciendif 85e5b75505Sopenharmony_ci 86e5b75505Sopenharmony_ciCFLAGS += -DEAP_TLS_OPENSSL 87e5b75505Sopenharmony_ciOBJS += ../../src/crypto/tls_openssl_ocsp.o 88e5b75505Sopenharmony_ciLIBS += -lssl -lcrypto 89e5b75505Sopenharmony_ci 90e5b75505Sopenharmony_cihs20-osu-client: $(OBJS) 91e5b75505Sopenharmony_ci $(Q)$(LDO) $(LDFLAGS) -o hs20-osu-client $(OBJS) $(LIBS) 92e5b75505Sopenharmony_ci @$(E) " LD " $@ 93e5b75505Sopenharmony_ci 94e5b75505Sopenharmony_ci%.o: %.c 95e5b75505Sopenharmony_ci $(Q)$(CC) -c -o $@ $(CFLAGS) $< 96e5b75505Sopenharmony_ci @$(E) " CC " $< 97e5b75505Sopenharmony_ci 98e5b75505Sopenharmony_ciclean: 99e5b75505Sopenharmony_ci rm -f core *~ *.o *.d hs20-osu-client 100e5b75505Sopenharmony_ci rm -f ../../src/utils/*.o 101e5b75505Sopenharmony_ci rm -f ../../src/utils/*.d 102e5b75505Sopenharmony_ci rm -f ../../src/common/*.o 103e5b75505Sopenharmony_ci rm -f ../../src/common/*.d 104e5b75505Sopenharmony_ci rm -f ../../src/crypto/*.o 105e5b75505Sopenharmony_ci rm -f ../../src/crypto/*.d 106e5b75505Sopenharmony_ci rm -f ../../src/wps/*.o 107e5b75505Sopenharmony_ci rm -f ../../src/wps/*.d 108e5b75505Sopenharmony_ci 109e5b75505Sopenharmony_ci-include $(OBJS:%.o=%.d) 110