Last change
on this file since 163 was
162,
checked in by karaoui, 13 years ago
|
Cleaning unused files
Simplifying Makefile
adding missing include
|
File size:
595 bytes
|
Rev | Line | |
---|
[160] | 1 | APP_NAME=numsplit |
---|
| 2 | |
---|
| 3 | USE+= stdio.o |
---|
| 4 | USE+= mwmr.o |
---|
| 5 | USE+= common.o |
---|
| 6 | |
---|
| 7 | OBJS+= consumer.o |
---|
| 8 | OBJS+= producer.o |
---|
| 9 | |
---|
[162] | 10 | USES=$(patsubst %,$(BUILD_PATH)/$(LIB_NAME)/%,$(USE)) |
---|
[160] | 11 | SRCS=$(patsubst %.o,%.c,$(OBJS)) |
---|
| 12 | |
---|
[161] | 13 | all: $(APP_NAME).elf |
---|
[160] | 14 | |
---|
| 15 | .PHONY: compile |
---|
| 16 | |
---|
[162] | 17 | BIN_NAME_PATH=$(ELF_PATH)$(APP_NAME).elf |
---|
[160] | 18 | |
---|
[161] | 19 | $(APP_NAME).elf: compile $(APP_NAME).ld |
---|
[160] | 20 | $(LD) -o $(BIN_NAME_PATH) -T $(APP_NAME).ld $(OBJS) $(USES) |
---|
| 21 | $(DU) -D $(BIN_NAME_PATH) > $@.txt |
---|
| 22 | |
---|
| 23 | compile: $(SRCS) |
---|
| 24 | $(CC) -I. $(INCLUDE) $(CFLAGS) $($*.o_CFLAGS) -c $(SRCS) |
---|
| 25 | $(DU) -D $(OBJS) > $@.txt |
---|
| 26 | |
---|
| 27 | clean: |
---|
[161] | 28 | rm -f *.o *.elf *.txt core *~ 2>$(TRASH) |
---|
[160] | 29 | rm $(BIN_NAME_PATH) 2>$(TRASH) |
---|
Note: See
TracBrowser
for help on using the repository browser.