Last change
on this file since 439 was
439,
checked in by satin@…, 7 years ago
|
Introduice new distributed Makefile architecture.
Remove deprecated sys/ directory
|
File size:
717 bytes
|
Rev | Line | |
---|
[417] | 1 | ############################################################################ |
---|
[439] | 2 | # Makefile for the ALMOS-MKH "pgcd" application |
---|
[417] | 3 | ############################################################################ |
---|
| 4 | |
---|
[439] | 5 | -include ../../params-soft.mk |
---|
| 6 | ifeq ($(ARCH_NAME),) |
---|
| 7 | $(error Please define in ARCH_NAME parameter in params-soft.mk!) |
---|
| 8 | endif |
---|
[417] | 9 | |
---|
[439] | 10 | OBJS = build/pgcd.o |
---|
[417] | 11 | |
---|
[439] | 12 | INCLUDES = -I. -I$(LIBC_INCLUDE) |
---|
[417] | 13 | |
---|
[439] | 14 | compile: dirs build/pgcd.elf |
---|
| 15 | build/pgcd.elf : $(OBJS) pgcd.ld |
---|
| 16 | $(LD) -o $@ -T pgcd.ld $(OBJS) -nostdlib -L$(LIBC) -lc |
---|
[417] | 17 | $(DU) -D $@ > $@.txt |
---|
| 18 | |
---|
[439] | 19 | build/pgcd.o : pgcd.c |
---|
| 20 | $(CC) $(INCLUDES) -L$(LIBC) $(CFLAGS) -c -o $@ $< |
---|
[417] | 21 | $(DU) -D $@ > $@.txt |
---|
| 22 | |
---|
[439] | 23 | dirs: |
---|
| 24 | @mkdir -p build/ |
---|
[417] | 25 | |
---|
[439] | 26 | clean: |
---|
| 27 | rm -rf build/*.o build/*.elf build/*.o.txt |
---|
[417] | 28 | |
---|
[439] | 29 | .PHONY: dirs clean |
---|
[417] | 30 | |
---|
[439] | 31 | |
---|
Note: See
TracBrowser
for help on using the repository browser.