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