diff --git a/hostapd/Makefile b/hostapd/Makefile index a1fba3e07..84d33aaa4 100644 --- a/hostapd/Makefile +++ b/hostapd/Makefile @@ -615,6 +615,17 @@ ALL=hostapd hostapd_cli all: verify_config $(ALL) +Q=@ +E=echo +ifeq ($(V), 1) +Q= +E=true +endif + +%.o: %.c + $(Q)$(CC) -c -o $@ $(CFLAGS) $< + @$(E) " CC " $< + verify_config: @if [ ! -r .config ]; then \ echo 'Building hostapd requires a configuration file'; \ diff --git a/wpa_supplicant/Makefile b/wpa_supplicant/Makefile index 86e09b306..ed50a6d36 100644 --- a/wpa_supplicant/Makefile +++ b/wpa_supplicant/Makefile @@ -1253,6 +1253,16 @@ eap_ikev2.so: ../src/eap_peer/eap_ikev2.c ../src/eap_peer/ikev2.c ../src/eap_com $(CC) -o $@ $(CFLAGS) -shared -rdynamic -fPIC $< \ -D$(*F:eap_%=eap_peer_%)_register=eap_peer_method_dynamic_init +Q=@ +E=echo +ifeq ($(V), 1) +Q= +E=true +endif + +%.o: %.c + $(Q)$(CC) -c -o $@ $(CFLAGS) $< + @$(E) " CC " $< wpa_supplicant.exe: wpa_supplicant mv -f $< $@