Last change
on this file since 336 was
241,
checked in by joannou, 12 years ago
|
- new application : Dhrystone
- added new files string.c and string.h in libs to implement strcpy() and strcmp() needed by dhrystone
- new xml mapping with 4 procs in one cluster, each one running dhrystone
|
File size:
514 bytes
|
Line | |
---|
1 | APP_NAME=dhrystone |
---|
2 | |
---|
3 | USE+= stdio.o |
---|
4 | #USE+= mwmr_channel.o |
---|
5 | |
---|
6 | USES=$(patsubst %,$(BUILD_PATH)/$(LIB_NAME)/%,$(USE)) |
---|
7 | |
---|
8 | OBJS= dhry_1.o dhry_2.o |
---|
9 | |
---|
10 | all: $(APP_NAME).elf |
---|
11 | |
---|
12 | BIN_NAME_PATH=$(BUILD_PATH)$(APP_NAME).elf |
---|
13 | |
---|
14 | $(APP_NAME).elf: $(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 | clean: |
---|
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.