Last change
on this file since 175 was
175,
checked in by karaoui, 12 years ago
|
+ Adding the init attribute to the mwmr to specify the width of the mwmr channel
+ Fixing bugs in kernels_init
|
File size:
513 bytes
|
Rev | Line | |
---|
[160] | 1 | APP_NAME=router |
---|
| 2 | |
---|
| 3 | USE+= stdio.o |
---|
[175] | 4 | USE+= common.o |
---|
[165] | 5 | USE+= mwmr_channel.o |
---|
[160] | 6 | |
---|
[162] | 7 | USES=$(patsubst %,$(BUILD_PATH)/$(LIB_NAME)/%,$(USE)) |
---|
[160] | 8 | |
---|
| 9 | OBJS= main.o |
---|
| 10 | |
---|
[161] | 11 | all: $(APP_NAME).elf |
---|
[160] | 12 | |
---|
[162] | 13 | BIN_NAME_PATH=$(ELF_PATH)$(APP_NAME).elf |
---|
[160] | 14 | |
---|
[161] | 15 | $(APP_NAME).elf: $(OBJS) $(APP_NAME).ld |
---|
[160] | 16 | $(LD) -o $(BIN_NAME_PATH) -T $(APP_NAME).ld $(OBJS) $(USES) |
---|
| 17 | $(DU) -D $(BIN_NAME_PATH) > $@.txt |
---|
| 18 | |
---|
| 19 | %.o: %.c |
---|
| 20 | $(CC) $(INCLUDE) $(CFLAGS) $($*.o_CFLAGS) -c -o $@ $< |
---|
| 21 | $(DU) -D $@ > $@.txt |
---|
| 22 | |
---|
| 23 | clean: |
---|
[161] | 24 | rm -f *.o *.elf *.txt core *~ 2>$(TRASH) |
---|
[160] | 25 | rm $(BIN_NAME_PATH) 2>$(TRASH) |
---|
Note: See
TracBrowser
for help on using the repository browser.