Rev | Line | |
---|
[417] | 1 | ############################################################################ |
---|
[445] | 2 | # Makefile for the "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 | |
---|
[445] | 13 | INCLUDES = -I. \ |
---|
| 14 | -I$(LIBC_INCLUDE) \ |
---|
| 15 | -I$(LIBPTHREAD_INCLUDE) \ |
---|
| 16 | -I$(LIBALMOSMKH_INCLUDE) \ |
---|
| 17 | -I$(SHARED_INCLUDE) |
---|
[417] | 18 | |
---|
[439] | 19 | compile: dirs build/pgcd.elf |
---|
[440] | 20 | |
---|
[439] | 21 | build/pgcd.elf : $(OBJS) pgcd.ld |
---|
[445] | 22 | $(LD) -o $@ -T pgcd.ld $(OBJS) -L$(LIBC) -L$(LIBALMOSMKH) -L$(LIBPTHREAD) -lc -lpthread -lalmosmkh -lpthread -lc |
---|
[417] | 23 | $(DU) -D $@ > $@.txt |
---|
| 24 | |
---|
[439] | 25 | build/pgcd.o : pgcd.c |
---|
[444] | 26 | $(CC) $(INCLUDES) $(CFLAGS) -c -o $@ $< |
---|
| 27 | $(DU) -D $@ > $@.txt |
---|
[417] | 28 | |
---|
[439] | 29 | dirs: |
---|
| 30 | @mkdir -p build/ |
---|
[417] | 31 | |
---|
[439] | 32 | clean: |
---|
[440] | 33 | rm -rf build/*.o build/*.elf build/*.txt |
---|
[417] | 34 | |
---|
[439] | 35 | .PHONY: dirs clean |
---|
[417] | 36 | |
---|
[439] | 37 | |
---|
Note: See
TracBrowser
for help on using the repository browser.