mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-12-02 10:24:11 +01:00
OP makefile, traces under dos did not work well
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@785 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
parent
e73d90fbde
commit
23b2771602
@ -534,7 +534,7 @@ else
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
${OUTDIR}/InitMods.c: Makefile
|
${OUTDIR}/InitMods.c: Makefile
|
||||||
@echo ${quote}${MSG_MODINIT}${quote}
|
@echo ${MSG_MODINIT}
|
||||||
@echo ${quote}// Autogenerated file${quote} > ${OUTDIR}/InitMods.c
|
@echo ${quote}// Autogenerated file${quote} > ${OUTDIR}/InitMods.c
|
||||||
@echo ${quote}${foreach MOD, ${MODNAMES}, extern unsigned int ${MOD}Initialize(void);}${quote} >> ${OUTDIR}/InitMods.c
|
@echo ${quote}${foreach MOD, ${MODNAMES}, extern unsigned int ${MOD}Initialize(void);}${quote} >> ${OUTDIR}/InitMods.c
|
||||||
@echo ${quote}void InitModules() {${quote} >> ${OUTDIR}/InitMods.c
|
@echo ${quote}void InitModules() {${quote} >> ${OUTDIR}/InitMods.c
|
||||||
@ -617,7 +617,7 @@ endif
|
|||||||
define ASSEMBLE_TEMPLATE
|
define ASSEMBLE_TEMPLATE
|
||||||
$(OUTDIR)/$(notdir $(basename $(1))).o : $(1)
|
$(OUTDIR)/$(notdir $(basename $(1))).o : $(1)
|
||||||
## @echo
|
## @echo
|
||||||
@echo $(MSG_ASSEMBLING) $$< ${quote}->${quote} $$@
|
@echo $(MSG_ASSEMBLING) $$< to $$@
|
||||||
$(CC) -c $(THUMB) $$(ASFLAGS) $$< -o $$@
|
$(CC) -c $(THUMB) $$(ASFLAGS) $$< -o $$@
|
||||||
endef
|
endef
|
||||||
$(foreach src, $(ASRC), $(eval $(call ASSEMBLE_TEMPLATE, $(src))))
|
$(foreach src, $(ASRC), $(eval $(call ASSEMBLE_TEMPLATE, $(src))))
|
||||||
@ -626,7 +626,7 @@ $(foreach src, $(ASRC), $(eval $(call ASSEMBLE_TEMPLATE, $(src))))
|
|||||||
define ASSEMBLE_ARM_TEMPLATE
|
define ASSEMBLE_ARM_TEMPLATE
|
||||||
$(OUTDIR)/$(notdir $(basename $(1))).o : $(1)
|
$(OUTDIR)/$(notdir $(basename $(1))).o : $(1)
|
||||||
## @echo
|
## @echo
|
||||||
@echo $(MSG_ASSEMBLING_ARM) $$< ${quote}->${quote} $$@
|
@echo $(MSG_ASSEMBLING_ARM) $$< to $$@
|
||||||
$(CC) -c $$(ASFLAGS) $$< -o $$@
|
$(CC) -c $$(ASFLAGS) $$< -o $$@
|
||||||
endef
|
endef
|
||||||
$(foreach src, $(ASRCARM), $(eval $(call ASSEMBLE_ARM_TEMPLATE, $(src))))
|
$(foreach src, $(ASRCARM), $(eval $(call ASSEMBLE_ARM_TEMPLATE, $(src))))
|
||||||
@ -636,7 +636,7 @@ $(foreach src, $(ASRCARM), $(eval $(call ASSEMBLE_ARM_TEMPLATE, $(src))))
|
|||||||
define COMPILE_C_TEMPLATE
|
define COMPILE_C_TEMPLATE
|
||||||
$(OUTDIR)/$(notdir $(basename $(1))).o : $(1)
|
$(OUTDIR)/$(notdir $(basename $(1))).o : $(1)
|
||||||
## @echo
|
## @echo
|
||||||
@echo $(MSG_COMPILING) $$< ${quote}->${quote} $$@
|
@echo $(MSG_COMPILING) $$< to $$@
|
||||||
$(CC) -c $(THUMB) $$(CFLAGS) $$(CONLYFLAGS) $$< -o $$@
|
$(CC) -c $(THUMB) $$(CFLAGS) $$(CONLYFLAGS) $$< -o $$@
|
||||||
endef
|
endef
|
||||||
$(foreach src, $(SRC), $(eval $(call COMPILE_C_TEMPLATE, $(src))))
|
$(foreach src, $(SRC), $(eval $(call COMPILE_C_TEMPLATE, $(src))))
|
||||||
@ -645,7 +645,7 @@ $(foreach src, $(SRC), $(eval $(call COMPILE_C_TEMPLATE, $(src))))
|
|||||||
define COMPILE_C_ARM_TEMPLATE
|
define COMPILE_C_ARM_TEMPLATE
|
||||||
$(OUTDIR)/$(notdir $(basename $(1))).o : $(1)
|
$(OUTDIR)/$(notdir $(basename $(1))).o : $(1)
|
||||||
## @echo
|
## @echo
|
||||||
@echo $(MSG_COMPILING_ARM) $$< ${quote}->${quote} $$@
|
@echo $(MSG_COMPILING_ARM) $$< to $$@
|
||||||
$(CC) -c $$(CFLAGS) $$(CONLYFLAGS) $$< -o $$@
|
$(CC) -c $$(CFLAGS) $$(CONLYFLAGS) $$< -o $$@
|
||||||
endef
|
endef
|
||||||
$(foreach src, $(SRCARM), $(eval $(call COMPILE_C_ARM_TEMPLATE, $(src))))
|
$(foreach src, $(SRCARM), $(eval $(call COMPILE_C_ARM_TEMPLATE, $(src))))
|
||||||
@ -655,7 +655,7 @@ $(foreach src, $(SRCARM), $(eval $(call COMPILE_C_ARM_TEMPLATE, $(src))))
|
|||||||
define COMPILE_CPP_TEMPLATE
|
define COMPILE_CPP_TEMPLATE
|
||||||
$(OUTDIR)/$(notdir $(basename $(1))).o : $(1)
|
$(OUTDIR)/$(notdir $(basename $(1))).o : $(1)
|
||||||
## @echo
|
## @echo
|
||||||
@echo $(MSG_COMPILINGCPP) $$< ${quote}->${quote} $$@
|
@echo $(MSG_COMPILINGCPP) $$< to $$@
|
||||||
$(CC) -c $(THUMB) $$(CFLAGS) $$(CPPFLAGS) $$< -o $$@
|
$(CC) -c $(THUMB) $$(CFLAGS) $$(CPPFLAGS) $$< -o $$@
|
||||||
endef
|
endef
|
||||||
$(foreach src, $(CPPSRC), $(eval $(call COMPILE_CPP_TEMPLATE, $(src))))
|
$(foreach src, $(CPPSRC), $(eval $(call COMPILE_CPP_TEMPLATE, $(src))))
|
||||||
@ -664,7 +664,7 @@ $(foreach src, $(CPPSRC), $(eval $(call COMPILE_CPP_TEMPLATE, $(src))))
|
|||||||
define COMPILE_CPP_ARM_TEMPLATE
|
define COMPILE_CPP_ARM_TEMPLATE
|
||||||
$(OUTDIR)/$(notdir $(basename $(1))).o : $(1)
|
$(OUTDIR)/$(notdir $(basename $(1))).o : $(1)
|
||||||
## @echo
|
## @echo
|
||||||
@echo $(MSG_COMPILINGCPP_ARM) $$< ${quote}->${quote} $$@
|
@echo $(MSG_COMPILINGCPP_ARM) $$< to $$@
|
||||||
$(CC) -c $$(CFLAGS) $$(CPPFLAGS) $$< -o $$@
|
$(CC) -c $$(CFLAGS) $$(CPPFLAGS) $$< -o $$@
|
||||||
endef
|
endef
|
||||||
$(foreach src, $(CPPSRCARM), $(eval $(call COMPILE_CPP_ARM_TEMPLATE, $(src))))
|
$(foreach src, $(CPPSRCARM), $(eval $(call COMPILE_CPP_ARM_TEMPLATE, $(src))))
|
||||||
|
Loading…
Reference in New Issue
Block a user