mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-28 10:18:21 -05:00
build: Add a common-clean target
Clean up in a more common fashion as well, initially for ../src/. Also add $(Q) to the clean target in src/ Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
06a6adb54e
commit
0430bc8267
@ -116,8 +116,7 @@ endif
|
|||||||
eap_example: $(OBJS_ex) $(LIBEAP)
|
eap_example: $(OBJS_ex) $(LIBEAP)
|
||||||
$(LDO) $(LDFLAGS) -o eap_example $(OBJS_ex) -L. -leap $(LIBS)
|
$(LDO) $(LDFLAGS) -o eap_example $(OBJS_ex) -L. -leap $(LIBS)
|
||||||
|
|
||||||
clean:
|
clean: common-clean
|
||||||
$(MAKE) -C ../src clean
|
rm -f core *~ *.o *.d libeap.a libeap.so
|
||||||
rm -f core *~ *.o *.d libeap.a libeap.so $(ALL)
|
|
||||||
|
|
||||||
-include $(OBJS:%.o=%.d)
|
-include $(OBJS:%.o=%.d)
|
||||||
|
@ -1362,9 +1362,8 @@ lcov-html:
|
|||||||
lcov -c -d .. > lcov.info
|
lcov -c -d .. > lcov.info
|
||||||
genhtml lcov.info --output-directory lcov-html
|
genhtml lcov.info --output-directory lcov-html
|
||||||
|
|
||||||
clean:
|
clean: common-clean
|
||||||
$(MAKE) -C ../src clean
|
rm -f core *~ *.o nt_password_hash hlr_auc_gw
|
||||||
rm -f core *~ *.o hostapd hostapd_cli nt_password_hash hlr_auc_gw
|
|
||||||
rm -f sae_pk_gen
|
rm -f sae_pk_gen
|
||||||
rm -f *.d *.gcno *.gcda *.gcov
|
rm -f *.d *.gcno *.gcda *.gcov
|
||||||
rm -f lcov.info
|
rm -f lcov.info
|
||||||
|
@ -75,8 +75,8 @@ hs20-osu-client: $(OBJS)
|
|||||||
$(Q)$(LDO) $(LDFLAGS) -o hs20-osu-client $(OBJS) $(LIBS)
|
$(Q)$(LDO) $(LDFLAGS) -o hs20-osu-client $(OBJS) $(LIBS)
|
||||||
@$(E) " LD " $@
|
@$(E) " LD " $@
|
||||||
|
|
||||||
clean:
|
clean: common-clean
|
||||||
rm -f core *~ *.o *.d hs20-osu-client
|
rm -f core *~ *.o *.d
|
||||||
rm -f ../../src/utils/*.o
|
rm -f ../../src/utils/*.o
|
||||||
rm -f ../../src/utils/*.d
|
rm -f ../../src/utils/*.d
|
||||||
rm -f ../../src/common/*.o
|
rm -f ../../src/common/*.o
|
||||||
|
@ -36,8 +36,8 @@ OBJS += ../../src/utils/xml_libxml2.o
|
|||||||
hs20_spp_server: $(OBJS)
|
hs20_spp_server: $(OBJS)
|
||||||
$(LDO) $(LDFLAGS) -o hs20_spp_server $(OBJS) $(LIBS)
|
$(LDO) $(LDFLAGS) -o hs20_spp_server $(OBJS) $(LIBS)
|
||||||
|
|
||||||
clean:
|
clean: common-clean
|
||||||
rm -f core *~ *.o *.d hs20_spp_server
|
rm -f core *~ *.o *.d
|
||||||
rm -f ../../src/utils/*.o
|
rm -f ../../src/utils/*.o
|
||||||
rm -f ../../src/utils/*.d
|
rm -f ../../src/utils/*.d
|
||||||
rm -f ../../src/crypto/*.o
|
rm -f ../../src/crypto/*.o
|
||||||
|
@ -27,8 +27,7 @@ OBJS_ex = radius_example.o
|
|||||||
radius_example: $(OBJS_ex) $(LIBS)
|
radius_example: $(OBJS_ex) $(LIBS)
|
||||||
$(LDO) $(LDFLAGS) -o radius_example $(OBJS_ex) $(LIBS) $(LLIBS)
|
$(LDO) $(LDFLAGS) -o radius_example $(OBJS_ex) $(LIBS) $(LLIBS)
|
||||||
|
|
||||||
clean:
|
clean: common-clean
|
||||||
$(MAKE) -C ../src clean
|
rm -f core *~ *.o *.d
|
||||||
rm -f core *~ *.o *.d $(ALL)
|
|
||||||
|
|
||||||
-include $(OBJS:%.o=%.d)
|
-include $(OBJS:%.o=%.d)
|
||||||
|
@ -5,8 +5,8 @@ all:
|
|||||||
for d in $(SUBDIRS); do [ -d $$d ] && $(MAKE) -C $$d; done
|
for d in $(SUBDIRS); do [ -d $$d ] && $(MAKE) -C $$d; done
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
for d in $(SUBDIRS); do [ -d $$d ] && $(MAKE) -C $$d clean; done
|
$(Q)for d in $(SUBDIRS); do [ -d $$d ] && $(MAKE) -C $$d clean; done
|
||||||
rm -f *~
|
$(Q)rm -f *~
|
||||||
|
|
||||||
install:
|
install:
|
||||||
for d in $(SUBDIRS); do [ -d $$d ] && $(MAKE) -C $$d install; done
|
for d in $(SUBDIRS); do [ -d $$d ] && $(MAKE) -C $$d install; done
|
||||||
|
@ -4,6 +4,9 @@ all: $(VERIFY) $(ALL) $(EXTRA_TARGETS)
|
|||||||
# disable built-in rules
|
# disable built-in rules
|
||||||
.SUFFIXES:
|
.SUFFIXES:
|
||||||
|
|
||||||
|
ROOTDIR := $(dir $(lastword $(MAKEFILE_LIST)))
|
||||||
|
ROOTDIR := $(dir $(ROOTDIR:%/=%))
|
||||||
|
|
||||||
ifndef CC
|
ifndef CC
|
||||||
CC=gcc
|
CC=gcc
|
||||||
endif
|
endif
|
||||||
@ -44,3 +47,8 @@ else
|
|||||||
$(Q)$(CC) -c -o $@ $(CFLAGS) $<
|
$(Q)$(CC) -c -o $@ $(CFLAGS) $<
|
||||||
@$(E) " CC " $<
|
@$(E) " CC " $<
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
.PHONY: common-clean
|
||||||
|
common-clean:
|
||||||
|
$(Q)$(MAKE) -C $(ROOTDIR)/src clean
|
||||||
|
$(Q)rm -f $(ALL)
|
||||||
|
@ -151,9 +151,8 @@ run-tests: $(ALL)
|
|||||||
@echo
|
@echo
|
||||||
@echo All tests completed successfully.
|
@echo All tests completed successfully.
|
||||||
|
|
||||||
clean:
|
clean: common-clean
|
||||||
$(MAKE) -C ../src clean
|
rm -f *~ *.o *.d
|
||||||
rm -f $(ALL) *~ *.o *.d
|
|
||||||
rm -f test-eapol
|
rm -f test-eapol
|
||||||
rm -f test-https
|
rm -f test-https
|
||||||
rm -f test-json
|
rm -f test-json
|
||||||
|
@ -81,8 +81,7 @@ wlantest_cli: $(OBJS_cli) $(OWN_LIBS)
|
|||||||
test_vectors: $(TOBJS) $(OWN_LIBS)
|
test_vectors: $(TOBJS) $(OWN_LIBS)
|
||||||
$(LDO) $(LDFLAGS) -o test_vectors $(TOBJS) $(OWN_LIBS) $(LIBS)
|
$(LDO) $(LDFLAGS) -o test_vectors $(TOBJS) $(OWN_LIBS) $(LIBS)
|
||||||
|
|
||||||
clean:
|
clean: common-clean
|
||||||
$(MAKE) -C ../src clean
|
rm -f core *~ *.o *.d
|
||||||
rm -f core *~ *.o *.d $(ALL)
|
|
||||||
|
|
||||||
-include $(OBJS:%.o=%.d)
|
-include $(OBJS:%.o=%.d)
|
||||||
|
@ -2004,11 +2004,11 @@ lcov-html: wpa_supplicant.gcda
|
|||||||
lcov -c -d .. > lcov.info
|
lcov -c -d .. > lcov.info
|
||||||
genhtml lcov.info --output-directory lcov-html
|
genhtml lcov.info --output-directory lcov-html
|
||||||
|
|
||||||
clean:
|
clean: common-clean
|
||||||
$(MAKE) -C ../src clean
|
$(MAKE) -C ../src clean
|
||||||
$(MAKE) -C dbus clean
|
$(MAKE) -C dbus clean
|
||||||
rm -f core *~ *.o *.d *.gcno *.gcda *.gcov
|
rm -f core *~ *.o *.d *.gcno *.gcda *.gcov
|
||||||
rm -f eap_*.so $(ALL) $(WINALL) eapol_test preauth_test
|
rm -f eap_*.so $(WINALL) eapol_test preauth_test
|
||||||
rm -f wpa_priv
|
rm -f wpa_priv
|
||||||
rm -f nfc_pw_token
|
rm -f nfc_pw_token
|
||||||
rm -f lcov.info
|
rm -f lcov.info
|
||||||
|
Loading…
Reference in New Issue
Block a user