source: trunk/user/pgcd/Makefile @ 444

Last change on this file since 444 was 444, checked in by satin@…, 6 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 849 bytes
Line 
1############################################################################
2# Makefile for the ALMOS-MKH "pgcd" application
3############################################################################
4
5-include ../../params-soft.mk
6
7ifeq ($(ARCH_NAME),)
8$(error Please define in ARCH_NAME parameter in params-soft.mk!)
9endif
10
11OBJS = build/pgcd.o
12
13INCLUDES = -I. -I$(LIBC_INCLUDE) -I$(LIBALMOSMKH_INCLUDE) -I$(SHARED_INCLUDE) -I$(LIBPTHREAD_INCLUDE)
14
15compile: dirs build/pgcd.elf
16
17build/pgcd.elf : $(OBJS) pgcd.ld
18        $(LD) -o $@ -T pgcd.ld $(OBJS) -nostdlib -L$(LIBC) -L$(LIBALMOSMKH) -L$(LIBPTHREAD) -lalmos-mkh -lc -lalmos-mkh -lpthread -lc
19        $(DU) -D $@ > $@.txt
20
21build/pgcd.o : pgcd.c
22        $(CC) $(INCLUDES) $(CFLAGS) -c -o  $@ $<
23        $(DU) -D $@ > $@.txt
24
25dirs:
26        @mkdir -p build/
27
28clean:
29        rm -rf build/*.o  build/*.elf  build/*.txt
30
31.PHONY: dirs clean
32
33
Note: See TracBrowser for help on using the repository browser.