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