summaryrefslogtreecommitdiff
path: root/software
diff options
context:
space:
mode:
authorChristian Pointner <equinox@mur.at>2014-03-15 19:19:37 +0000
committerChristian Pointner <equinox@mur.at>2014-03-15 19:19:37 +0000
commit8954882697e341320c8fb12085ec6529cb0dd359 (patch)
treeb030cedb7a1c18ec375c632cfd950c6ab22b476f /software
parentset line with and spacing (diff)
updated avr utils
git-svn-id: https://svn.spreadspace.org/mur.sat@880 7de4ea59-55d0-425e-a1af-a3118ea81d4c
Diffstat (limited to 'software')
-rw-r--r--software/avr.include.mk10
1 files changed, 5 insertions, 5 deletions
diff --git a/software/avr.include.mk b/software/avr.include.mk
index 1a53329..92f9537 100644
--- a/software/avr.include.mk
+++ b/software/avr.include.mk
@@ -53,7 +53,7 @@ clean-external: $(EXTERNAL_LIBS:%=clean-%)
export
build-lufa: liblufa.a
-liblufa.a:
+liblufa.a: Makefile
@echo "building external LUFA lib ($(LUFA_PATH))"
make -f ../avr.lufa.mk liblufa.a
make -f ../avr.lufa.mk clean
@@ -65,13 +65,13 @@ clean-lufa:
## project-specific objects
-lib-%.d: $(LIB_DIR)/%.c
+lib-%.d: $(LIB_DIR)/%.c Makefile
@set -e; rm -f $@; \
$(CC) -MM $(CFLAGS) $< > $@.$$$$; \
sed 's,\($*\)\.o[ :]*,lib-\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$; echo '(re)building $@'
-%.d: %.c
+%.d: %.c Makefile
@set -e; rm -f $@; \
$(CC) -MM $(CFLAGS) $< > $@.$$$$; \
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
@@ -82,10 +82,10 @@ ifneq ($(MAKECMDGOALS),distclean)
-include $(DEP_LIB)
endif
-lib-%.o: $(LIB_DIR)/%.c
+lib-%.o: $(LIB_DIR)/%.c Makefile
$(CC) $(CFLAGS) -c $< -o $@
-%.o: %.c
+%.o: %.c Makefile
$(CC) $(CFLAGS) -c $< -o $@
$(ELFFILE): $(OBJ) $(OBJ_LIB) $(EXTERNAL_LIBS:%=lib%.a)