Updated through tag hostap_2_5 from git://w1.fi/hostap.git
[mech_eap.git] / libeap / src / eap_peer / Makefile
index 3651056..6531ccd 100644 (file)
@@ -1,11 +1,23 @@
-all:
-       @echo Nothing to be made.
+all: libeap_peer.a
 
 clean:
-       rm -f *~ *.o *.so *.d
+       rm -f *~ *.o *.so *.d *.gcno *.gcda *.gcov libeap_peer.a
 
 install:
        if ls *.so >/dev/null 2>&1; then \
                install -d $(DESTDIR)$(LIBDIR)/wpa_supplicant && \
                cp *.so $(DESTDIR)$(LIBDIR)/wpa_supplicant \
        ; fi
+
+include ../lib.rules
+
+CFLAGS += -DIEEE8021X_EAPOL
+
+LIB_OBJS= \
+       eap.o \
+       eap_methods.o
+
+libeap_peer.a: $(LIB_OBJS)
+       $(AR) crT $@ $?
+
+-include $(OBJS:%.o=%.d)