From 90cc1f2632be0c45f8aa19d07e5af6e817cc791b Mon Sep 17 00:00:00 2001 From: Daniel Borkmann Date: Wed, 24 Jul 2013 14:17:19 +0200 Subject: build: split build system into smaller manageable pieces Split the build system into smaller manageable pieces, grouped by context. In that sense, we can keep the most important information within the Makefile itself, and group out misc bits and pieces that we just include into it. E.g. 'Cmds' contains all defined commands that we call from other locations, 'Template' contains the generic build template for all tools, 'Extra' has pieces that need special treatment for the tools to build and 'Misc' contains help and release code. This makes it more manageable on the long run. While at it, I also simplified some code and removed all Wflags expect "-Wall" as we want to convert into "-Wall -Wextra -W" anyway. Signed-off-by: Daniel Borkmann --- Extra | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 Extra (limited to 'Extra') diff --git a/Extra b/Extra new file mode 100644 index 0000000..759b144 --- /dev/null +++ b/Extra @@ -0,0 +1,32 @@ +# Targets that need extra treatment for now + +curvetun: LDFLAGS += -L ${NACL_LIB_DIR} +mausezahn: CFLAGS = $(mausezahn-eflags) + +bpfc_clean_custom: + $(Q)$(call RM,$(BUILD_DIR)/*.h $(BUILD_DIR)/*.c) + +trafgen_clean_custom: + $(Q)$(call RM,$(BUILD_DIR)/*.h $(BUILD_DIR)/*.c) + +netsniff-ng_install_custom flowtop_install_custom: + $(Q)$(foreach file,$(NCONF_FILES),$(call INST,$(file),$(ETCDIRE));) + +trafgen_install_custom: + $(Q)$(call INST,trafgen_stddef.h,$(ETCDIRE)) + $(Q)mv $(ETCDIRE)/trafgen_stddef.h $(ETCDIRE)/stddef.h + +astraceroute_install_custom: + $(Q)$(call INST,geoip.conf,$(ETCDIRE)) + +netsniff-ng_uninstall_custom flowtop_uninstall_custom: + $(Q)$(foreach file,$(NCONF_FILES),$(call RM,$(ETCDIRE)/$(file));) + $(Q)$(call RMDIR,$(ETCDIRE)) + +trafgen_uninstall_custom: + $(Q)$(call RM,$(ETCDIRE)/stddef.h) + $(Q)$(call RMDIR,$(ETCDIRE)) + +astraceroute_uninstall_custom: + $(Q)$(call RM,$(ETCDIRE)/geoip.conf) + $(Q)$(call RMDIR,$(ETCDIRE)) -- cgit v1.2.3-54-g00ecf