---
software/bios/Makefile | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/software/bios/Makefile b/software/bios/Makefile
index 132ff5d..4187d55 100644
--- a/software/bios/Makefile
+++ b/software/bios/Makefile
@@ -12,12 +12,12 @@ all: bios.bin bios-rescue.bin
chmod -x $@
$(MMDIR)/tools/mkmmimg $@ write
+# make sure the linker*.ld at the first of depends
bios.elf: linker.ld $(OBJECTS)
- $(LD) $(LDFLAGS) -T linker.ld -N -o $@ $(OBJECTS)
-L$(MMDIR)/software/libhpdmc -L$(MMDIR)/software/libbase
-L$(MMDIR)/software/libhal -L$(MMDIR)/software/libnet --start-group -lhpdmc
-lbase-light -lhal -lnet --end-group
- chmod -x $@
-
bios-rescue.elf: linker-rescue.ld $(OBJECTS)
- $(LD) $(LDFLAGS) -T linker-rescue.ld -N -o $@ $(OBJECTS)
-L$(MMDIR)/software/libhpdmc -L$(MMDIR)/software/libbase
-L$(MMDIR)/software/libhal -L$(MMDIR)/software/libnet --start-group -lhpdmc
-lbase-light -lhal -lnet --end-group
+
+%.elf:
+ $(LD) $(LDFLAGS) -T $< -N -o $@ $(OBJECTS) -L$(MMDIR)/software/libhpdmc
-L$(MMDIR)/software/libbase -L$(MMDIR)/software/libhal
-L$(MMDIR)/software/libnet --start-group -lhpdmc -lbase-light -lhal -lnet
--end-group
chmod -x $@
.PHONY: clean depend
--
1.7.0.4
_______________________________________________
http://lists.milkymist.org/listinfo.cgi/devel-milkymist.org
IRC: #milkymist@Freenode
Twitter: www.twitter.com/milkymistvj
Ideas? http://milkymist.uservoice.com