APP -> MODULE

remove as many duplicate slashes, etc. as seems practical
This commit is contained in:
px4dev
2013-02-23 22:01:00 -08:00
parent 8d7621079a
commit d24599931a
11 changed files with 303 additions and 291 deletions
+4 -3
View File
@@ -2,7 +2,7 @@
# Definitions for a generic GNU ARM-EABI toolchain
#
$(info %% TOOLCHAIN gnu-arm-eabi)
#$(info TOOLCHAIN gnu-arm-eabi)
CROSSDEV = arm-none-eabi-
@@ -134,7 +134,8 @@ DEP_INCLUDES = $(subst .o,.d,$(OBJS))
# compile C source $1 to object $2
# as a side-effect, generate a dependency file
define COMPILE
@echo "CC: $1"
@echo "CC <- $1"
@echo "CC -> $2"
@mkdir -p $(dir $2)
$(Q) $(CC) -MD -c $(CFLAGS) $(abspath $1) -o $2
endef
@@ -172,7 +173,7 @@ endef
define LINK
@echo "LINK: $1"
@mkdir -p $(dir $1)
$(Q) $(LD) $(LDFLAGS) -o $1 $2 --start-group $(LIBS) $(EXTRA_LIBS) $(LIBGCC) --end-group
$(Q) $(LD) $(LDFLAGS) -o $1 --start-group $2 $(LIBS) $(EXTRA_LIBS) $(LIBGCC) --end-group
endef
# convert $1 from a linked object to a raw binary