APP_NAME=fifo USE+= stdio.o USE+= mwmr.o USES=$(patsubst %,$(BUILD_PATH)%,$(USE)) OBJS= main.o all: $(APP_NAME).bin BIN_NAME_PATH=$(BIN_PATH)$(APP_NAME).bin $(APP_NAME).bin: $(OBJS) $(APP_NAME).ld $(LD) -o $(BIN_NAME_PATH) -T $(APP_NAME).ld $(OBJS) $(USES) $(DU) -D $(BIN_NAME_PATH) > $@.txt %.o: %.c $(CC) $(INCLUDE) $(CFLAGS) $($*.o_CFLAGS) -c -o $@ $< $(DU) -D $@ > $@.txt clean: rm -f *.o *.bin *.txt core *~ 2>$(TRASH) rm $(BIN_NAME_PATH) 2>$(TRASH)