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

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

updating libs.

File size: 436 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) -I. -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.