Commit 5be1a8f8 authored by Christian Eichler's avatar Christian Eichler
Browse files

Makefile: Rename test.o to gene.o; Print proper warning if file is missing

parent 3243eb11
......@@ -73,16 +73,19 @@ all: $(OBJS) xmc xmccomm
src/System_$(UC).o: $(CMSIS_SRC)
$(CC) -c $(CFLAGS) $< -o $@
$(error File gene.o is missing, use to generate this file)
%.o: %.c
@echo CC $<
@$(CC) -c $(CFLAGS) $< -o $@
xmc.axf: $(OBJS)
xmc.axf: $(OBJS) gene.o
mkdir -p bin
@echo AS startup_XMC4500.S
@$(SYSCC) -c XMC/CMSIS/Infineon/XMC4500_series/Source/GCC/startup_XMC4500.S -o bin/startup_XMC4500.o
@echo LD $<
@$(CC) -T $(LINKER_FILE) $(LFLAGS) -o bin/$(TARGET).axf $(OBJS) bin/startup_XMC4500.o test.o $(LIBS)
@$(CC) -T $(LINKER_FILE) $(LFLAGS) -o bin/$(TARGET).axf $(OBJS) bin/startup_XMC4500.o gene.o $(LIBS)
xmc: xmc.axf
$(CP) $(CPFLAGS) bin/xmc.axf bin/xmc.bin
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment