From 617eec4d65c3528f625bd43f80523ea7d3fb565e Mon Sep 17 00:00:00 2001 From: stac Date: Wed, 23 Feb 2011 04:18:43 +0000 Subject: [PATCH] makefile: split out fw and bl targets and add cleans New targets: - all_fw : builds all embedded application firmware - all_fw_clean : cleans all embedded firmware - all_bl : builds all bootloaders - all_bl_clean : cleans all bootloaders git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2850 ebee16cc-31ac-478f-84a7-5cbb03baadba --- Makefile | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 12f88b50d..2ac31d436 100644 --- a/Makefile +++ b/Makefile @@ -246,8 +246,20 @@ uavobjects_clean: # ############################## -.PHONY: all_flight -all_flight: openpilot_elf bl_openpilot_elf ahrs_elf bl_ahrs_elf coptercontrol_elf bl_coptercontrol_elf pipxtreme_elf bl_pipxtreme_elf +FW_TARGETS := openpilot ahrs coptercontrol pipxtreme +BL_TARGETS := $(addprefix bl_, $(FW_TARGETS)) + +.PHONY: all_fw all_fw_clean +all_fw: $(addsuffix _elf, $(FW_TARGETS)) +all_fw_clean: $(addsuffix _clean, $(FW_TARGETS)) + +.PHONY: all_bw all_bw_clean +all_bl: $(addsuffix _elf, $(BL_TARGETS)) +all_bl_clean: $(addsuffix _clean, $(BL_TARGETS)) + +.PHONY: all_flight all_flight_clean +all_flight: all_fw all_bl +all_flight_clean: all_fw_clean all_bl_clean .PHONY: openpilot openpilot: openpilot_elf