source: soft/giet_vm/apps/numsplit/Makefile @ 161

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

Deleting unused folders
All ELF file have the extension *.elf
Must objetc file are now dumped in the build directory

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