build: Use build.rules in lib.rules

Use the new build.rules in lib.rules and also unify the
clean targets to lib.rules.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
master
Johannes Berg 4 years ago committed by Jouni Malinen
parent 3ff115db6f
commit 06a6adb54e

@ -1,12 +1,10 @@
all: libap.a
ALL=libap.a
clean:
rm -f *~ *.o *.d *.gcno *.gcda *.gcov libap.a
include ../lib.rules
install:
@echo Nothing to be made.
include ../lib.rules
CFLAGS += -DHOSTAPD
CFLAGS += -DNEED_AP_MLME

@ -1,12 +1,10 @@
all: libcommon.a
ALL=libcommon.a
clean:
rm -f *~ *.o *.d *.gcno *.gcda *.gcov libcommon.a
include ../lib.rules
install:
@echo Nothing to be made.
include ../lib.rules
CFLAGS += -DCONFIG_IEEE80211R
CFLAGS += -DCONFIG_HS20

@ -1,14 +1,11 @@
all: libcrypto.a
ALL=libcrypto.a
clean:
rm -f *~ *.o *.d *.gcno *.gcda *.gcov libcrypto.a
include ../lib.rules
install:
@echo Nothing to be made.
include ../lib.rules
CFLAGS += -DCONFIG_CRYPTO_INTERNAL
CFLAGS += -DCONFIG_TLS_INTERNAL_CLIENT
CFLAGS += -DCONFIG_TLS_INTERNAL_SERVER

@ -1,12 +1,10 @@
all: libeap_common.a
ALL=libeap_common.a
clean:
rm -f *~ *.o *.d *.gcno *.gcda *.gcov libeap_common.a
include ../lib.rules
install:
@echo Nothing to be made.
include ../lib.rules
LIB_OBJS= \
chap.o \

@ -1,7 +1,6 @@
all: libeap_peer.a
ALL=libeap_peer.a
clean:
rm -f *~ *.o *.so *.d *.gcno *.gcda *.gcov libeap_peer.a
include ../lib.rules
install:
if ls *.so >/dev/null 2>&1; then \
@ -9,7 +8,6 @@ install:
cp *.so $(DESTDIR)$(LIBDIR)/wpa_supplicant \
; fi
include ../lib.rules
CFLAGS += -DIEEE8021X_EAPOL

@ -1,12 +1,10 @@
all: libeap_server.a
ALL=libeap_server.a
clean:
rm -f *~ *.o *.d *.gcno *.gcda *.gcov libeap_server.a
include ../lib.rules
install:
@echo Nothing to be made.
include ../lib.rules
CFLAGS += -DCONFIG_HS20

@ -1,12 +1,10 @@
all: libeapol_auth.a
ALL=libeapol_auth.a
clean:
rm -f *~ *.o *.d *.gcno *.gcda *.gcov libeapol_auth.a
include ../lib.rules
install:
@echo Nothing to be made.
include ../lib.rules
LIB_OBJS = eapol_auth_sm.o eapol_auth_dump.o

@ -1,12 +1,10 @@
all: libeapol_supp.a
ALL=libeapol_supp.a
clean:
rm -f *~ *.o *.d *.gcno *.gcda *.gcov libeapol_supp.a
include ../lib.rules
install:
@echo Nothing to be made.
include ../lib.rules
CFLAGS += -DIEEE8021X_EAPOL

@ -1,12 +1,10 @@
all: libl2_packet.a
ALL=libl2_packet.a
clean:
rm -f *~ *.o *.d *.gcno *.gcda *.gcov libl2_packet.a
include ../lib.rules
install:
@echo Nothing to be made.
include ../lib.rules
LIB_OBJS = l2_packet_linux.o

@ -1,10 +1,5 @@
ifndef CC
CC=gcc
endif
ifndef CFLAGS
CFLAGS = -MMD -O2 -Wall -g
endif
LIB_RULES := $(lastword $(MAKEFILE_LIST))
include $(dir $(LIB_RULES))build.rules
ifdef TEST_FUZZ
CFLAGS += -DCONFIG_NO_RANDOM_POOL
@ -14,18 +9,5 @@ endif
CFLAGS += $(FUZZ_CFLAGS)
CFLAGS += -I.. -I../utils
Q=@
E=echo
ifeq ($(V), 1)
Q=
E=true
endif
ifeq ($(QUIET), 1)
Q=@
E=true
endif
%.o: %.c
$(Q)$(CC) -c -o $@ $(CFLAGS) $<
@$(E) " CC " $<
clean:
$(Q)rm -f *~ *.o *.d *.gcno *.gcda *.gcov $(ALL)

@ -1,12 +1,10 @@
all: libp2p.a
ALL=libp2p.a
clean:
rm -f *~ *.o *.d *.gcno *.gcda *.gcov libp2p.a
include ../lib.rules
install:
@echo Nothing to be made.
include ../lib.rules
CFLAGS += -DCONFIG_WIFI_DISPLAY
CFLAGS += -DCONFIG_WPS_NFC

@ -1,14 +1,11 @@
all: libradius.a
ALL=libradius.a
clean:
rm -f *~ *.o *.d *.gcno *.gcda *.gcov libradius.a
include ../lib.rules
install:
@echo Nothing to be made.
include ../lib.rules
CFLAGS += -DCONFIG_IPV6
LIB_OBJS= \

@ -1,12 +1,10 @@
all: librsn_supp.a
ALL=librsn_supp.a
clean:
rm -f *~ *.o *.d *.gcno *.gcda *.gcov librsn_supp.a
include ../lib.rules
install:
@echo Nothing to be made.
include ../lib.rules
CFLAGS += -DCONFIG_IEEE80211R
CFLAGS += -DCONFIG_TDLS

@ -1,14 +1,11 @@
all: libtls.a
ALL=libtls.a
clean:
rm -f *~ *.o *.d libtls.a
include ../lib.rules
install:
@echo Nothing to be made.
include ../lib.rules
CFLAGS += -DCONFIG_INTERNAL_LIBTOMMATH
CFLAGS += -DCONFIG_CRYPTO_INTERNAL
CFLAGS += -DCONFIG_TLSV11

@ -1,14 +1,11 @@
all: libutils.a
ALL=libutils.a
clean:
rm -f *~ *.o *.d *.gcno *.gcda *.gcov libutils.a
include ../lib.rules
install:
@echo Nothing to be made.
include ../lib.rules
#CFLAGS += -DWPA_TRACE
CFLAGS += -DCONFIG_IPV6
CFLAGS += -DCONFIG_DEBUG_FILE

@ -1,12 +1,10 @@
all: libwps.a
ALL=libwps.a
clean:
rm -f *~ *.o *.d *.gcno *.gcda *.gcov libwps.a
include ../lib.rules
install:
@echo Nothing to be made.
include ../lib.rules
CFLAGS += -DCONFIG_P2P
CFLAGS += -DCONFIG_WPS_OOB

Loading…
Cancel
Save