source: trunk/user/ksh/Makefile @ 596

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