Add build rules for building a library from src/utils files

This is an initial step on providing an alternative build system that
uses libraries from src subdirectories.
This commit is contained in:
Jouni Malinen 2009-12-05 21:39:41 +02:00
parent be916e0012
commit 6a230ba274
4 changed files with 41 additions and 9 deletions

View file

@ -1,7 +1,7 @@
SUBDIRS=common crypto drivers hlr_auc_gw eapol_auth eapol_supp eap_common eap_peer eap_server l2_packet radius rsn_supp tls utils wps
all:
@echo Nothing to be made.
for d in $(SUBDIRS); do [ -d $$d ] && $(MAKE) -C $$d; done
clean:
for d in $(SUBDIRS); do [ -d $$d ] && $(MAKE) -C $$d clean; done

1
src/utils/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
libutils.a

View file

@ -1,9 +1,40 @@
all:
@echo Nothing to be made.
all: libutils.a
clean:
for d in $(SUBDIRS); do make -C $$d clean; done
rm -f *~ *.o *.d
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
LIB_OBJS= \
base64.o \
common.o \
ip_addr.o \
radiotap.o \
uuid.o \
wpa_debug.o \
wpabuf.o
# Pick correct OS wrapper implementation
LIB_OBJS += os_unix.o
# Pick correct event loop implementation
LIB_OBJS += eloop.o
#LIB_OBJS += pcsc_funcs.o
libutils.a: $(LIB_OBJS)
$(AR) cr $@ $(LIB_OBJS)
-include $(OBJS:%.o=%.d)