Last change
on this file since 591 was
588,
checked in by alain, 6 years ago
|
Introduce a signal based synchro between INIT and KSH processes
to sequencialize multiple KSH[i] processes creation.
|
File size:
1.0 KB
|
Rev | Line | |
---|
[407] | 1 | ######################################################################### |
---|
[445] | 2 | # Makefile for the "ksh" application # |
---|
[407] | 3 | ######################################################################### |
---|
[230] | 4 | |
---|
[439] | 5 | -include ../../params-soft.mk |
---|
[445] | 6 | |
---|
[439] | 7 | ifeq ($(ARCH_NAME),) |
---|
| 8 | $(error Please define in ARCH_NAME parameter in params-soft.mk!) |
---|
| 9 | endif |
---|
[246] | 10 | |
---|
[439] | 11 | OBJS = build/ksh.o |
---|
[230] | 12 | |
---|
[457] | 13 | INCLUDES = -I. \ |
---|
| 14 | -I$(LIBC_INCLUDE) \ |
---|
| 15 | -I$(LIBPTHREAD_INCLUDE) \ |
---|
| 16 | -I$(LIBALMOSMKH_INCLUDE) \ |
---|
| 17 | -I$(LIBSEMAPHORE_INCLUDE) \ |
---|
[588] | 18 | -I$(SHARED_INCLUDE) \ |
---|
| 19 | -I$(HAL_INCLUDE) |
---|
[407] | 20 | |
---|
[439] | 21 | compile: dirs build/ksh.elf |
---|
[445] | 22 | |
---|
[439] | 23 | build/ksh.elf : $(OBJS) ksh.ld |
---|
[457] | 24 | $(LD) -o $@ -T ksh.ld $(OBJS) -L$(LIBC) -L$(LIBPTHREAD) -L$(LIBALMOSMKH) -L$(LIBSEMAPHORE) \ |
---|
| 25 | -lc -lpthread -lalmosmkh -lpthread -lsemaphore -lc |
---|
[407] | 26 | $(DU) -D $@ > $@.txt |
---|
| 27 | |
---|
[439] | 28 | build/ksh.o : ksh.c |
---|
[407] | 29 | $(CC) $(INCLUDES) $(CFLAGS) -c -o $@ $< |
---|
| 30 | $(DU) -D $@ > $@.txt |
---|
| 31 | |
---|
[439] | 32 | dirs: |
---|
| 33 | @mkdir -p build/ |
---|
[407] | 34 | |
---|
[439] | 35 | clean: |
---|
[440] | 36 | rm -rf build/*.o build/*.elf build/*.txt |
---|
[407] | 37 | |
---|
[439] | 38 | .PHONY: dirs clean |
---|
[407] | 39 | |
---|
| 40 | |
---|
Note: See
TracBrowser
for help on using the repository browser.