Makefile now makes lpcrc for current plattform
authorTim Becker <tim.becker@kuriositaet.de>
Tue, 20 Sep 2011 12:57:46 +0000 (14:57 +0200)
committerTim Becker <tim.becker@kuriositaet.de>
Tue, 20 Sep 2011 12:57:46 +0000 (14:57 +0200)
Makefile
lpcrc [deleted file]

index 897ada3..b5a1d4c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -124,6 +124,8 @@ OBJCOPY = $(CROSS_COMPILE)objcopy
 OBJDUMP = $(CROSS_COMPILE)objdump
 OUTFILE = firmware
 LPCRC = ./lpcrc
+LPCRC_DIR = ./tools/lpcrc
+CP = cp
 
 ##########################################################################
 # GNU GCC compiler flags
@@ -167,7 +169,10 @@ all: firmware
 %.o : %.s
        $(AS) $(ASFLAGS) -o $@ $<
 
-firmware: $(OBJS) $(SYS_OBJS)
+$(LPCRC) :
+       $(MAKE) -C $(LPCRC_DIR) && $(CP) $(LPCRC_DIR)/lpcrc .
+       
+firmware: $(OBJS) $(SYS_OBJS) $(LPCRC)
        -@echo "MEMORY" > $(LD_TEMP)
        -@echo "{" >> $(LD_TEMP)
        -@echo "  flash(rx): ORIGIN = 0x00000000, LENGTH = $(FLASH)" >> $(LD_TEMP)
diff --git a/lpcrc b/lpcrc
deleted file mode 100755 (executable)
index a6c1aa4..0000000
Binary files a/lpcrc and /dev/null differ
This page took 0.023072 seconds and 4 git commands to generate.