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>
This commit is contained in:
parent
3ff115db6f
commit
06a6adb54e
16 changed files with 34 additions and 86 deletions
|
@ -1,12 +1,10 @@
|
||||||
all: libap.a
|
ALL=libap.a
|
||||||
|
|
||||||
clean:
|
include ../lib.rules
|
||||||
rm -f *~ *.o *.d *.gcno *.gcda *.gcov libap.a
|
|
||||||
|
|
||||||
install:
|
install:
|
||||||
@echo Nothing to be made.
|
@echo Nothing to be made.
|
||||||
|
|
||||||
include ../lib.rules
|
|
||||||
|
|
||||||
CFLAGS += -DHOSTAPD
|
CFLAGS += -DHOSTAPD
|
||||||
CFLAGS += -DNEED_AP_MLME
|
CFLAGS += -DNEED_AP_MLME
|
||||||
|
|
|
@ -1,12 +1,10 @@
|
||||||
all: libcommon.a
|
ALL=libcommon.a
|
||||||
|
|
||||||
clean:
|
include ../lib.rules
|
||||||
rm -f *~ *.o *.d *.gcno *.gcda *.gcov libcommon.a
|
|
||||||
|
|
||||||
install:
|
install:
|
||||||
@echo Nothing to be made.
|
@echo Nothing to be made.
|
||||||
|
|
||||||
include ../lib.rules
|
|
||||||
|
|
||||||
CFLAGS += -DCONFIG_IEEE80211R
|
CFLAGS += -DCONFIG_IEEE80211R
|
||||||
CFLAGS += -DCONFIG_HS20
|
CFLAGS += -DCONFIG_HS20
|
||||||
|
|
|
@ -1,14 +1,11 @@
|
||||||
all: libcrypto.a
|
ALL=libcrypto.a
|
||||||
|
|
||||||
clean:
|
include ../lib.rules
|
||||||
rm -f *~ *.o *.d *.gcno *.gcda *.gcov libcrypto.a
|
|
||||||
|
|
||||||
install:
|
install:
|
||||||
@echo Nothing to be made.
|
@echo Nothing to be made.
|
||||||
|
|
||||||
|
|
||||||
include ../lib.rules
|
|
||||||
|
|
||||||
CFLAGS += -DCONFIG_CRYPTO_INTERNAL
|
CFLAGS += -DCONFIG_CRYPTO_INTERNAL
|
||||||
CFLAGS += -DCONFIG_TLS_INTERNAL_CLIENT
|
CFLAGS += -DCONFIG_TLS_INTERNAL_CLIENT
|
||||||
CFLAGS += -DCONFIG_TLS_INTERNAL_SERVER
|
CFLAGS += -DCONFIG_TLS_INTERNAL_SERVER
|
||||||
|
|
|
@ -1,12 +1,10 @@
|
||||||
all: libeap_common.a
|
ALL=libeap_common.a
|
||||||
|
|
||||||
clean:
|
include ../lib.rules
|
||||||
rm -f *~ *.o *.d *.gcno *.gcda *.gcov libeap_common.a
|
|
||||||
|
|
||||||
install:
|
install:
|
||||||
@echo Nothing to be made.
|
@echo Nothing to be made.
|
||||||
|
|
||||||
include ../lib.rules
|
|
||||||
|
|
||||||
LIB_OBJS= \
|
LIB_OBJS= \
|
||||||
chap.o \
|
chap.o \
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
all: libeap_peer.a
|
ALL=libeap_peer.a
|
||||||
|
|
||||||
clean:
|
include ../lib.rules
|
||||||
rm -f *~ *.o *.so *.d *.gcno *.gcda *.gcov libeap_peer.a
|
|
||||||
|
|
||||||
install:
|
install:
|
||||||
if ls *.so >/dev/null 2>&1; then \
|
if ls *.so >/dev/null 2>&1; then \
|
||||||
|
@ -9,7 +8,6 @@ install:
|
||||||
cp *.so $(DESTDIR)$(LIBDIR)/wpa_supplicant \
|
cp *.so $(DESTDIR)$(LIBDIR)/wpa_supplicant \
|
||||||
; fi
|
; fi
|
||||||
|
|
||||||
include ../lib.rules
|
|
||||||
|
|
||||||
CFLAGS += -DIEEE8021X_EAPOL
|
CFLAGS += -DIEEE8021X_EAPOL
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,10 @@
|
||||||
all: libeap_server.a
|
ALL=libeap_server.a
|
||||||
|
|
||||||
clean:
|
include ../lib.rules
|
||||||
rm -f *~ *.o *.d *.gcno *.gcda *.gcov libeap_server.a
|
|
||||||
|
|
||||||
install:
|
install:
|
||||||
@echo Nothing to be made.
|
@echo Nothing to be made.
|
||||||
|
|
||||||
include ../lib.rules
|
|
||||||
|
|
||||||
CFLAGS += -DCONFIG_HS20
|
CFLAGS += -DCONFIG_HS20
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,10 @@
|
||||||
all: libeapol_auth.a
|
ALL=libeapol_auth.a
|
||||||
|
|
||||||
clean:
|
include ../lib.rules
|
||||||
rm -f *~ *.o *.d *.gcno *.gcda *.gcov libeapol_auth.a
|
|
||||||
|
|
||||||
install:
|
install:
|
||||||
@echo Nothing to be made.
|
@echo Nothing to be made.
|
||||||
|
|
||||||
include ../lib.rules
|
|
||||||
|
|
||||||
LIB_OBJS = eapol_auth_sm.o eapol_auth_dump.o
|
LIB_OBJS = eapol_auth_sm.o eapol_auth_dump.o
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,10 @@
|
||||||
all: libeapol_supp.a
|
ALL=libeapol_supp.a
|
||||||
|
|
||||||
clean:
|
include ../lib.rules
|
||||||
rm -f *~ *.o *.d *.gcno *.gcda *.gcov libeapol_supp.a
|
|
||||||
|
|
||||||
install:
|
install:
|
||||||
@echo Nothing to be made.
|
@echo Nothing to be made.
|
||||||
|
|
||||||
include ../lib.rules
|
|
||||||
|
|
||||||
CFLAGS += -DIEEE8021X_EAPOL
|
CFLAGS += -DIEEE8021X_EAPOL
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,10 @@
|
||||||
all: libl2_packet.a
|
ALL=libl2_packet.a
|
||||||
|
|
||||||
clean:
|
include ../lib.rules
|
||||||
rm -f *~ *.o *.d *.gcno *.gcda *.gcov libl2_packet.a
|
|
||||||
|
|
||||||
install:
|
install:
|
||||||
@echo Nothing to be made.
|
@echo Nothing to be made.
|
||||||
|
|
||||||
include ../lib.rules
|
|
||||||
|
|
||||||
LIB_OBJS = l2_packet_linux.o
|
LIB_OBJS = l2_packet_linux.o
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,5 @@
|
||||||
ifndef CC
|
LIB_RULES := $(lastword $(MAKEFILE_LIST))
|
||||||
CC=gcc
|
include $(dir $(LIB_RULES))build.rules
|
||||||
endif
|
|
||||||
|
|
||||||
ifndef CFLAGS
|
|
||||||
CFLAGS = -MMD -O2 -Wall -g
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifdef TEST_FUZZ
|
ifdef TEST_FUZZ
|
||||||
CFLAGS += -DCONFIG_NO_RANDOM_POOL
|
CFLAGS += -DCONFIG_NO_RANDOM_POOL
|
||||||
|
@ -14,18 +9,5 @@ endif
|
||||||
CFLAGS += $(FUZZ_CFLAGS)
|
CFLAGS += $(FUZZ_CFLAGS)
|
||||||
CFLAGS += -I.. -I../utils
|
CFLAGS += -I.. -I../utils
|
||||||
|
|
||||||
|
clean:
|
||||||
Q=@
|
$(Q)rm -f *~ *.o *.d *.gcno *.gcda *.gcov $(ALL)
|
||||||
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 " $<
|
|
||||||
|
|
|
@ -1,12 +1,10 @@
|
||||||
all: libp2p.a
|
ALL=libp2p.a
|
||||||
|
|
||||||
clean:
|
include ../lib.rules
|
||||||
rm -f *~ *.o *.d *.gcno *.gcda *.gcov libp2p.a
|
|
||||||
|
|
||||||
install:
|
install:
|
||||||
@echo Nothing to be made.
|
@echo Nothing to be made.
|
||||||
|
|
||||||
include ../lib.rules
|
|
||||||
|
|
||||||
CFLAGS += -DCONFIG_WIFI_DISPLAY
|
CFLAGS += -DCONFIG_WIFI_DISPLAY
|
||||||
CFLAGS += -DCONFIG_WPS_NFC
|
CFLAGS += -DCONFIG_WPS_NFC
|
||||||
|
|
|
@ -1,14 +1,11 @@
|
||||||
all: libradius.a
|
ALL=libradius.a
|
||||||
|
|
||||||
clean:
|
include ../lib.rules
|
||||||
rm -f *~ *.o *.d *.gcno *.gcda *.gcov libradius.a
|
|
||||||
|
|
||||||
install:
|
install:
|
||||||
@echo Nothing to be made.
|
@echo Nothing to be made.
|
||||||
|
|
||||||
|
|
||||||
include ../lib.rules
|
|
||||||
|
|
||||||
CFLAGS += -DCONFIG_IPV6
|
CFLAGS += -DCONFIG_IPV6
|
||||||
|
|
||||||
LIB_OBJS= \
|
LIB_OBJS= \
|
||||||
|
|
|
@ -1,12 +1,10 @@
|
||||||
all: librsn_supp.a
|
ALL=librsn_supp.a
|
||||||
|
|
||||||
clean:
|
include ../lib.rules
|
||||||
rm -f *~ *.o *.d *.gcno *.gcda *.gcov librsn_supp.a
|
|
||||||
|
|
||||||
install:
|
install:
|
||||||
@echo Nothing to be made.
|
@echo Nothing to be made.
|
||||||
|
|
||||||
include ../lib.rules
|
|
||||||
|
|
||||||
CFLAGS += -DCONFIG_IEEE80211R
|
CFLAGS += -DCONFIG_IEEE80211R
|
||||||
CFLAGS += -DCONFIG_TDLS
|
CFLAGS += -DCONFIG_TDLS
|
||||||
|
|
|
@ -1,14 +1,11 @@
|
||||||
all: libtls.a
|
ALL=libtls.a
|
||||||
|
|
||||||
clean:
|
include ../lib.rules
|
||||||
rm -f *~ *.o *.d libtls.a
|
|
||||||
|
|
||||||
install:
|
install:
|
||||||
@echo Nothing to be made.
|
@echo Nothing to be made.
|
||||||
|
|
||||||
|
|
||||||
include ../lib.rules
|
|
||||||
|
|
||||||
CFLAGS += -DCONFIG_INTERNAL_LIBTOMMATH
|
CFLAGS += -DCONFIG_INTERNAL_LIBTOMMATH
|
||||||
CFLAGS += -DCONFIG_CRYPTO_INTERNAL
|
CFLAGS += -DCONFIG_CRYPTO_INTERNAL
|
||||||
CFLAGS += -DCONFIG_TLSV11
|
CFLAGS += -DCONFIG_TLSV11
|
||||||
|
|
|
@ -1,14 +1,11 @@
|
||||||
all: libutils.a
|
ALL=libutils.a
|
||||||
|
|
||||||
clean:
|
include ../lib.rules
|
||||||
rm -f *~ *.o *.d *.gcno *.gcda *.gcov libutils.a
|
|
||||||
|
|
||||||
install:
|
install:
|
||||||
@echo Nothing to be made.
|
@echo Nothing to be made.
|
||||||
|
|
||||||
|
|
||||||
include ../lib.rules
|
|
||||||
|
|
||||||
#CFLAGS += -DWPA_TRACE
|
#CFLAGS += -DWPA_TRACE
|
||||||
CFLAGS += -DCONFIG_IPV6
|
CFLAGS += -DCONFIG_IPV6
|
||||||
CFLAGS += -DCONFIG_DEBUG_FILE
|
CFLAGS += -DCONFIG_DEBUG_FILE
|
||||||
|
|
|
@ -1,12 +1,10 @@
|
||||||
all: libwps.a
|
ALL=libwps.a
|
||||||
|
|
||||||
clean:
|
include ../lib.rules
|
||||||
rm -f *~ *.o *.d *.gcno *.gcda *.gcov libwps.a
|
|
||||||
|
|
||||||
install:
|
install:
|
||||||
@echo Nothing to be made.
|
@echo Nothing to be made.
|
||||||
|
|
||||||
include ../lib.rules
|
|
||||||
|
|
||||||
CFLAGS += -DCONFIG_P2P
|
CFLAGS += -DCONFIG_P2P
|
||||||
CFLAGS += -DCONFIG_WPS_OOB
|
CFLAGS += -DCONFIG_WPS_OOB
|
||||||
|
|
Loading…
Reference in a new issue