Line | |
---|
1 | USES=$(patsubst %,$(BUILD_PATH)/$(LIB_DIR)/%,$(USE)) |
---|
2 | |
---|
3 | all: $(APP_NAME).elf |
---|
4 | |
---|
5 | BIN_NAME_PATH=$(ELF_PATH)$(APP_NAME).elf |
---|
6 | |
---|
7 | $(APP_NAME).elf: $(OBJS) $(APP_NAME).ld |
---|
8 | $(LD) -o $(BIN_NAME_PATH) -T $(APP_NAME).ld $(OBJS) $(USES) |
---|
9 | $(DU) -D $(BIN_NAME_PATH) > $(BIN_NAME_PATH).txt |
---|
10 | |
---|
11 | %.o: %.c |
---|
12 | $(CC) $(APP_INCLUDE) $(CFLAGS) -I. -c -o $@ $< |
---|
13 | $(DU) -D $@ > $@.txt |
---|
14 | |
---|
15 | clean: |
---|
16 | rm -f *.o *.elf *.txt core *~ 2>$(TRASH) |
---|
17 | rm $(BIN_NAME_PATH) 2>$(TRASH) |
---|
Note: See
TracBrowser
for help on using the repository browser.