diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2012-06-24 15:48:30 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2012-06-24 15:48:30 +0000 |
commit | 3f4efc6159cd08c445d58ae7e7a93d89b306d32d (patch) | |
tree | 9b3e2907f78953e854dfc28b87b0374c22515f29 /LUFA | |
parent | 8b985b44b524bd1981cd5cf0027f98c0d063f3a7 (diff) | |
download | lufa-3f4efc6159cd08c445d58ae7e7a93d89b306d32d.tar.gz lufa-3f4efc6159cd08c445d58ae7e7a93d89b306d32d.tar.bz2 lufa-3f4efc6159cd08c445d58ae7e7a93d89b306d32d.zip |
Make sure dependency files are generated for assembly files too in the BUILD build system module. Minor code cleanups.
Diffstat (limited to 'LUFA')
-rw-r--r-- | LUFA/Build/lufa.build.in | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/LUFA/Build/lufa.build.in b/LUFA/Build/lufa.build.in index 4719d7b7b..0e1a4501e 100644 --- a/LUFA/Build/lufa.build.in +++ b/LUFA/Build/lufa.build.in @@ -140,12 +140,12 @@ endif # Convert input source filenames into a list of required output object files OBJECT_FILES := $(addsuffix .o, $(basename $(SRC))) ifneq ($(OBJDIR),.) - $(shell mkdir $(OBJDIR) 2>&1 | /dev/null) + $(shell mkdir $(OBJDIR) 2>&1 > /dev/null) VPATH += $(dir $(SRC)) - OBJECT_FILES := $(addprefix $(patsubst %/,%,$(OBJDIR))/, $(notdir $(OBJECT_FILES))) endif +# Create a list of dependency files from the list of object files DEPENDENCY_FILES := $(OBJECT_FILES:%.o=%.d) # Create a list of common flags to pass to the compiler/linker/assembler @@ -237,7 +237,7 @@ $(OBJDIR)/%.o: %.cpp $(MAKEFILE_LIST) $(OBJDIR)/%.o: %.S $(MAKEFILE_LIST) @echo $(MSG_ASSEMBLE_CMD) Assembling \"$(notdir $<)\" - $(CROSS)-gcc -c $(BASE_CC_FLAGS) $(BASE_ASM_FLAGS) $(CC_FLAGS) $(ASM_FLAGS) $< -o $@ + $(CROSS)-gcc -c $(BASE_CC_FLAGS) $(BASE_ASM_FLAGS) $(CC_FLAGS) $(ASM_FLAGS) -MMD -MP -MF $(@:%.o=%.d) $< -o $@ .PRECIOUS : $(OBJECT_FILES) .SECONDARY : %.a |