source: soft/giet_vm/apps/display/Makefile @ 173

Last change on this file since 173 was 168, checked in by alain, 12 years ago

Introducing application "display" to test the IOC and FBF components.

File size: 479 bytes
RevLine 
[168]1APP_NAME=display
2
3USE+= stdio.o
4
5USES=$(patsubst %,$(BUILD_PATH)/$(LIB_NAME)/%,$(USE))
6
7OBJS= main.o
8
9all: $(APP_NAME).elf
10
11BIN_NAME_PATH=$(ELF_PATH)$(APP_NAME).elf
12
13$(APP_NAME).elf: $(OBJS) $(APP_NAME).ld
14        $(LD) -o $(BIN_NAME_PATH) -T $(APP_NAME).ld $(OBJS) $(USES)
15        $(DU) -D $(BIN_NAME_PATH) > $@.txt
16
17%.o: %.c
18        $(CC)  $(INCLUDE) $(CFLAGS) $($*.o_CFLAGS) -c -o  $@ $<
19        $(DU) -D  $@ >  $@.txt
20
21
22clean:
23        rm -f *.o *.elf *.txt core *~ 2>$(TRASH)
24        rm $(BIN_NAME_PATH) 2>$(TRASH)
Note: See TracBrowser for help on using the repository browser.