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