Last change
on this file since 468 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 | |
---|
7 | ifeq ($(ARCH_NAME),) |
---|
8 | $(error Please define in ARCH_NAME parameter in params-soft.mk!) |
---|
9 | endif |
---|
10 | |
---|
11 | OBJS = build/ksh.o |
---|
12 | |
---|
13 | INCLUDES = -I. \ |
---|
14 | -I$(LIBC_INCLUDE) \ |
---|
15 | -I$(LIBPTHREAD_INCLUDE) \ |
---|
16 | -I$(LIBALMOSMKH_INCLUDE) \ |
---|
17 | -I$(LIBSEMAPHORE_INCLUDE) \ |
---|
18 | -I$(SHARED_INCLUDE) |
---|
19 | |
---|
20 | compile: dirs build/ksh.elf |
---|
21 | |
---|
22 | build/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 | |
---|
27 | build/ksh.o : ksh.c |
---|
28 | $(CC) $(INCLUDES) $(CFLAGS) -c -o $@ $< |
---|
29 | $(DU) -D $@ > $@.txt |
---|
30 | |
---|
31 | dirs: |
---|
32 | @mkdir -p build/ |
---|
33 | |
---|
34 | clean: |
---|
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.