aboutsummaryrefslogtreecommitdiffstats
path: root/demos/MSP430-MSP430x1611-GCC/Makefile
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2008-10-25 07:11:42 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2008-10-25 07:11:42 +0000
commit8317685beb67ed9341bc83d03153580b816f452e (patch)
treec36ccb954a2c75d2923a2b8f65d7db07845a0715 /demos/MSP430-MSP430x1611-GCC/Makefile
parent6bb6b521f59af1553cc16376670cde1df913c9a9 (diff)
downloadChibiOS-8317685beb67ed9341bc83d03153580b816f452e.tar.gz
ChibiOS-8317685beb67ed9341bc83d03153580b816f452e.tar.bz2
ChibiOS-8317685beb67ed9341bc83d03153580b816f452e.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@480 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos/MSP430-MSP430x1611-GCC/Makefile')
-rw-r--r--demos/MSP430-MSP430x1611-GCC/Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/demos/MSP430-MSP430x1611-GCC/Makefile b/demos/MSP430-MSP430x1611-GCC/Makefile
index 097300911..b42da1da3 100644
--- a/demos/MSP430-MSP430x1611-GCC/Makefile
+++ b/demos/MSP430-MSP430x1611-GCC/Makefile
@@ -113,6 +113,9 @@ CPFLAGS = $(MCFLAGS) $(OPT) $(WARN) -Wa,-alms=$(<:.c=.lst) $(DEFS)
LDFLAGS = $(MCFLAGS) -T$(LDSCRIPT) -Wl,-Map=$(PROJECT).map,--cref,--no-warn-mismatch $(LIBDIR)
ODFLAGS = -x --syms
+# Generate dependency information
+CPFLAGS += -MD -MP -MF .dep/$(@F).d
+
#
# Makefile rules
#
@@ -150,5 +153,11 @@ clean:
-rm -f $(SRC:.c=.lst)
-rm -f $(ASMSRC:.s=.s.bak)
-rm -f $(ASMSRC:.s=.lst)
+ -rm -fR .dep
+
+#
+# Include the dependency files, should be the last of the makefile
+#
+-include $(shell mkdir .dep 2>/dev/null) $(wildcard .dep/*)
# *** EOF ***