source: trunk/user/ksh/Makefile @ 547

Last change on this file since 547 was 457, checked in by alain, 6 years ago

This version modifies the exec syscall and fixes a large number of small bugs.
The version number has been updated (0.1)

File size: 1007 bytes
Line 
1#########################################################################
2#     Makefile for the "ksh" 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/ksh.o
12
13INCLUDES = -I.                       \
14           -I$(LIBC_INCLUDE)         \
15           -I$(LIBPTHREAD_INCLUDE)   \
16           -I$(LIBALMOSMKH_INCLUDE)  \
17           -I$(LIBSEMAPHORE_INCLUDE) \
18           -I$(SHARED_INCLUDE)
19
20compile: dirs build/ksh.elf
21
22build/ksh.elf : $(OBJS) ksh.ld
23        $(LD) -o $@ -T ksh.ld $(OBJS) -L$(LIBC) -L$(LIBPTHREAD) -L$(LIBALMOSMKH) -L$(LIBSEMAPHORE) \
24    -lc -lpthread -lalmosmkh -lpthread -lsemaphore -lc
25        $(DU) -D $@ > $@.txt
26
27build/ksh.o : ksh.c
28        $(CC) $(INCLUDES) $(CFLAGS) -c -o  $@ $<
29        $(DU) -D $@ > $@.txt
30
31dirs:
32        @mkdir -p build/
33
34clean:
35        rm -rf build/*.o build/*.elf build/*.txt
36
37.PHONY: dirs clean
38
39
Note: See TracBrowser for help on using the repository browser.