source: soft/giet_vm/apps/compile.mk @ 177

Last change on this file since 177 was 177, checked in by karaoui, 12 years ago

Modification in makefiles structure

File size: 432 bytes
Line 
1USES=$(patsubst %,$(BUILD_PATH)/$(LIB_DIR)/%,$(USE))
2
3all: $(APP_NAME).elf
4
5BIN_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) -c -o  $@ $<
13        $(DU) -D  $@ >  $@.txt
14
15clean:
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.