]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - board/cray/L1/Makefile
* Patch by Dave Ellis, 22 May 2003:
[karo-tx-uboot.git] / board / cray / L1 / Makefile
index 4c09eddd91be85bcbfd37228a8457fa87b14161a..e7dc0a8df37b7e4920360ae4c97f60246daebaf3 100644 (file)
@@ -25,21 +25,21 @@ include $(TOPDIR)/config.mk
 
 LIB    = lib$(BOARD).a
 
-OBJS   = $(BOARD).o flash.o bootscript.o
+OBJS   = $(BOARD).o flash.o
 SOBJS  = init.o 
 
-$(LIB):        $(OBJS) $(SOBJS)
+# HACK: depend needs bootscript.c, which needs tools/mkimage, which is not
+# built in the depend stage.  So... put bootscript.o here, not in OBJS
+$(LIB):        $(OBJS) $(SOBJS) bootscript.o
        $(AR) crv $@ $^
 
 clean:
-       rm -f $(SOBJS) $(OBJS) bootscript.c bootscript.image
+       rm -f $(SOBJS) $(OBJS) bootscript.c bootscript.image bootscript.o
 
 distclean:     clean
        rm -f $(LIB) core *.bak .depend
 
-$(BOARD).o: $(BOARD).c bootscript.o
-
-bootscript.o: bootscript.c
+$(BOARD).o : $(BOARD).c bootscript.o
 
 bootscript.c: bootscript.image
        od -t x1 -v -A x $^ | awk -f x2c.awk > $@