diff options
author | Johannes Berg <johannes.berg@intel.com> | 2020-09-18 09:49:48 (GMT) |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2020-10-10 09:47:29 (GMT) |
commit | a41a29192e5d196444fc8859100762b04ff0d1c2 (patch) | |
tree | a2a2db5d4851410132adbd9b467e1c2ea8bf033e /hostapd/Makefile | |
parent | 21cc50a43442b8f5540d71bfed8c1baf83f1dbc5 (diff) | |
download | hostap-a41a29192e5d196444fc8859100762b04ff0d1c2.zip hostap-a41a29192e5d196444fc8859100762b04ff0d1c2.tar.gz hostap-a41a29192e5d196444fc8859100762b04ff0d1c2.tar.bz2 |
build: Pull common fragments into a build.rules file
Some things are used by most of the binaries, pull them
into a common rule fragment that we can use properly.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'hostapd/Makefile')
-rw-r--r-- | hostapd/Makefile | 34 |
1 files changed, 3 insertions, 31 deletions
diff --git a/hostapd/Makefile b/hostapd/Makefile index 1400002..5c830fb 100644 --- a/hostapd/Makefile +++ b/hostapd/Makefile @@ -1,10 +1,7 @@ -ifndef CC -CC=gcc -endif +ALL=hostapd hostapd_cli +VERIFY=verify_config -ifndef CFLAGS -CFLAGS = -MMD -O2 -Wall -g -endif +include ../src/build.rules ifdef LIBS # If LIBS is set with some global build system defaults, clone those for @@ -1264,31 +1261,6 @@ ifdef CONFIG_NO_TKIP CFLAGS += -DCONFIG_NO_TKIP endif -ALL=hostapd hostapd_cli - -all: verify_config $(ALL) - -Q=@ -E=echo -ifeq ($(V), 1) -Q= -E=true -endif -ifeq ($(QUIET), 1) -Q=@ -E=true -endif - -ifdef CONFIG_CODE_COVERAGE -%.o: %.c - @$(E) " CC " $< - $(Q)cd $(dir $@); $(CC) -c -o $(notdir $@) $(CFLAGS) $(notdir $<) -else -%.o: %.c - $(Q)$(CC) -c -o $@ $(CFLAGS) $< - @$(E) " CC " $< -endif - verify_config: @if [ ! -r .config ]; then \ echo 'Building hostapd requires a configuration file'; \ |