summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2012-05-28 19:29:06 +0000
committerChristian Pointner <equinox@spreadspace.org>2012-05-28 19:29:06 +0000
commitdf106b30fcce173efc89859bfd9cda7078bcb6f8 (patch)
tree6cf20af931609de5480f726136fd3add3e51c803
parentadded USBtoSerial Example Project to avr utils (diff)
improved external lib
git-svn-id: https://svn.spreadspace.org/avr/trunk@39 aa12f405-d877-488e-9caf-2d797e2a1cc7
-rw-r--r--include.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/include.mk b/include.mk
index 6933a06..783aed2 100644
--- a/include.mk
+++ b/include.mk
@@ -61,7 +61,7 @@ liblufa.a:
clean-lufa:
@echo "cleaning external LUFA lib ($(LUFA_PATH))"
make -f ../lufa.mk clean
- @rm -f liblufa.a
+ rm -f liblufa.a
## project-specific objects
@@ -88,7 +88,7 @@ lib-%.o: $(LIB_DIR)/%.c
%.o: %.c
$(CC) $(CFLAGS) -c $< -o $@
-$(ELFFILE): $(OBJ) $(OBJ_LIB)
+$(ELFFILE): $(OBJ) $(OBJ_LIB) $(EXTERNAL_LIBS:%=lib%.a)
$(CC) $(LDFLAGS) $(OBJ) $(OBJ_LIB) $(EXTERNAL_LIBS:%=-l%) -o $@
$(HEXFILE): $(ELFFILE)