source: trunk/user/ksh/Makefile @ 444

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

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

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