automake build system
[mech_eap.orig] / src / utils / Makefile
index 8953467..527cf3e 100644 (file)
@@ -1,27 +1,23 @@
 all: libutils.a
 
 clean:
-       for d in $(SUBDIRS); do make -C $$d clean; done
        rm -f *~ *.o *.d libutils.a
 
 install:
        @echo Nothing to be made.
 
 
-ifndef CC
-CC=gcc
-endif
-
-ifndef CFLAGS
-CFLAGS = -MMD -O2 -Wall -g
-endif
+include ../lib.rules
 
+#CFLAGS += -DWPA_TRACE
+CFLAGS += -DCONFIG_IPV6
 
 LIB_OBJS= \
        base64.o \
        common.o \
        ip_addr.o \
        radiotap.o \
+       trace.o \
        uuid.o \
        wpa_debug.o \
        wpabuf.o
@@ -35,6 +31,6 @@ LIB_OBJS += eloop.o
 #LIB_OBJS += pcsc_funcs.o
 
 libutils.a: $(LIB_OBJS)
-       $(AR) cr $@ $(LIB_OBJS)
+       $(AR) crT $@ $?
 
 -include $(OBJS:%.o=%.d)