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