source: soft/giet_vm/apps/fifo/Makefile @ 160

Last change on this file since 160 was 160, checked in by karaoui, 13 years ago

giet-vm new version

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