mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-06 07:53:43 +08:00
[conf] remove duplicates after setting all flags and sources
This commit is contained in:
@@ -33,6 +33,8 @@ ifneq ($(MAKECMDGOALS),clean)
|
||||
include $(PAPARAZZI_HOME)/var/$(AIRCRAFT)/Makefile.ac
|
||||
$(TARGET).srcs += $($(TARGET).EXTRA_SRCS)
|
||||
include ../../conf/Makefile.local
|
||||
$(TARGET).CFLAGS := $(sort $($(TARGET).CFLAGS))
|
||||
$(TARGET).srcs := $(sort $($(TARGET).srcs))
|
||||
|
||||
# check if ARCHDIR is set
|
||||
ifeq ($($(TARGET).ARCHDIR), )
|
||||
|
||||
@@ -87,7 +87,7 @@ let dump_module_section = fun xml f ->
|
||||
List.iter (fun target -> fprintf f "%s.CFLAGS += -I modules -I arch/$(ARCH)/modules\n" target) target_list;
|
||||
**)
|
||||
(** include modules directory for ALL targets and not just the defined ones **)
|
||||
fprintf f "$(TARGET).CFLAGS += -I modules -I arch/$(ARCH)/modules\n";
|
||||
fprintf f "$(TARGET).CFLAGS += -Imodules -Iarch/$(ARCH)/modules\n";
|
||||
List.iter (fun dir -> let dir_name = (String.uppercase dir)^"_DIR" in fprintf f "%s = modules/%s\n" dir_name dir) dir_list;
|
||||
(* parse each module *)
|
||||
List.iter (fun m ->
|
||||
|
||||
Reference in New Issue
Block a user