hostapd/src/utils/Makefile
Jouni Malinen 6a230ba274 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.
2009-12-05 21:39:41 +02:00

40 lines
541 B
Makefile

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
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)