Last change
on this file since 166 was
165,
checked in by alain, 12 years ago
|
Introducing various modifications in kernel initialisation
|
File size:
498 bytes
|
Rev | Line | |
---|
[160] | 1 | APP_NAME=router |
---|
| 2 | |
---|
| 3 | USE+= stdio.o |
---|
[165] | 4 | USE+= mwmr_channel.o |
---|
[160] | 5 | |
---|
[162] | 6 | USES=$(patsubst %,$(BUILD_PATH)/$(LIB_NAME)/%,$(USE)) |
---|
[160] | 7 | |
---|
| 8 | OBJS= main.o |
---|
| 9 | |
---|
[161] | 10 | all: $(APP_NAME).elf |
---|
[160] | 11 | |
---|
[162] | 12 | BIN_NAME_PATH=$(ELF_PATH)$(APP_NAME).elf |
---|
[160] | 13 | |
---|
[161] | 14 | $(APP_NAME).elf: $(OBJS) $(APP_NAME).ld |
---|
[160] | 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: |
---|
[161] | 23 | rm -f *.o *.elf *.txt core *~ 2>$(TRASH) |
---|
[160] | 24 | rm $(BIN_NAME_PATH) 2>$(TRASH) |
---|
Note: See
TracBrowser
for help on using the repository browser.