source: trunk/user/ksh/Makefile

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

Fix a big bug in ksh: wrong handling of illegal command, blocking ksh.

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