source: trunk/user/ksh/Makefile @ 528

Last change on this file since 528 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
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
[457]13INCLUDES = -I.                       \
14           -I$(LIBC_INCLUDE)         \
15           -I$(LIBPTHREAD_INCLUDE)   \
16           -I$(LIBALMOSMKH_INCLUDE)  \
17           -I$(LIBSEMAPHORE_INCLUDE) \
[445]18           -I$(SHARED_INCLUDE)
[407]19
[439]20compile: dirs build/ksh.elf
[445]21
[439]22build/ksh.elf : $(OBJS) ksh.ld
[457]23        $(LD) -o $@ -T ksh.ld $(OBJS) -L$(LIBC) -L$(LIBPTHREAD) -L$(LIBALMOSMKH) -L$(LIBSEMAPHORE) \
24    -lc -lpthread -lalmosmkh -lpthread -lsemaphore -lc
[407]25        $(DU) -D $@ > $@.txt
26
[439]27build/ksh.o : ksh.c
[407]28        $(CC) $(INCLUDES) $(CFLAGS) -c -o  $@ $<
29        $(DU) -D $@ > $@.txt
30
[439]31dirs:
32        @mkdir -p build/
[407]33
[439]34clean:
[440]35        rm -rf build/*.o build/*.elf build/*.txt
[407]36
[439]37.PHONY: dirs clean
[407]38
39
Note: See TracBrowser for help on using the repository browser.