source: trunk/user/ksh/Makefile @ 445

Last change on this file since 445 was 445, checked in by alain, 4 years ago

Restructure the mini_libc.

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