diff options
author | Daniel Borkmann <dborkman@redhat.com> | 2013-07-24 14:17:19 +0200 |
---|---|---|
committer | Daniel Borkmann <dborkman@redhat.com> | 2013-07-24 14:20:03 +0200 |
commit | 90cc1f2632be0c45f8aa19d07e5af6e817cc791b (patch) | |
tree | 4da1e1bc6fc7698e4892a49ebda5621c4d09e4f8 /Extra | |
parent | 305ca18ac251f4e58cbff2fcc588c36c54cfeb63 (diff) |
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 <dborkman@redhat.com>
Diffstat (limited to 'Extra')
-rw-r--r-- | Extra | 32 |
1 files changed, 32 insertions, 0 deletions
@@ -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)) |