Updated through tag hostap_2_5 from git://w1.fi/hostap.git
[mech_eap.git] / libeap / src / p2p / Makefile
index cffba62..5587fcf 100644 (file)
@@ -1,9 +1,29 @@
-all:
-       @echo Nothing to be made.
+all: libp2p.a
 
 clean:
-       for d in $(SUBDIRS); do make -C $$d clean; done
-       rm -f *~ *.o *.d
+       rm -f *~ *.o *.d *.gcno *.gcda *.gcov libp2p.a
 
 install:
        @echo Nothing to be made.
+
+include ../lib.rules
+
+CFLAGS += -DCONFIG_WIFI_DISPLAY
+CFLAGS += -DCONFIG_WPS_NFC
+
+LIB_OBJS= \
+       p2p_build.o \
+       p2p.o \
+       p2p_dev_disc.o \
+       p2p_go_neg.o \
+       p2p_group.o \
+       p2p_invitation.o \
+       p2p_parse.o \
+       p2p_pd.o \
+       p2p_sd.o \
+       p2p_utils.o
+
+libp2p.a: $(LIB_OBJS)
+       $(AR) crT $@ $?
+
+-include $(OBJS:%.o=%.d)