Last change
on this file since 440 was
440,
checked in by alain, 7 years ago
|
1/ Fix a bug in the Multithreaded "sort" applicationr:
The pthread_create() arguments must be declared as global variables.
2/ The exit syscall can be called by any thread of a process..
|
File size:
741 bytes
|
Rev | Line | |
---|
[407] | 1 | ######################################################################### |
---|
[439] | 2 | # Makefile for the ALMOS-MKH "ksh" application |
---|
[407] | 3 | ######################################################################### |
---|
[230] | 4 | |
---|
[439] | 5 | -include ../../params-soft.mk |
---|
| 6 | ifeq ($(ARCH_NAME),) |
---|
| 7 | $(error Please define in ARCH_NAME parameter in params-soft.mk!) |
---|
| 8 | endif |
---|
[246] | 9 | |
---|
[439] | 10 | OBJS = build/ksh.o |
---|
[230] | 11 | |
---|
[439] | 12 | INCLUDES = -I. -I$(LIBC_INCLUDE) -I$(LIBPTHREAD_INCLUDE) |
---|
[407] | 13 | |
---|
[439] | 14 | compile: dirs build/ksh.elf |
---|
| 15 | build/ksh.elf : $(OBJS) ksh.ld |
---|
| 16 | $(LD) -o $@ -T ksh.ld $(OBJS) -nostdlib -L$(LIBC) -L$(LIBPTHREAD) -lc -lpthread |
---|
[407] | 17 | $(DU) -D $@ > $@.txt |
---|
| 18 | |
---|
[439] | 19 | build/ksh.o : ksh.c |
---|
[407] | 20 | $(CC) $(INCLUDES) $(CFLAGS) -c -o $@ $< |
---|
| 21 | $(DU) -D $@ > $@.txt |
---|
| 22 | |
---|
[439] | 23 | dirs: |
---|
| 24 | @mkdir -p build/ |
---|
[407] | 25 | |
---|
[439] | 26 | clean: |
---|
[440] | 27 | rm -rf build/*.o build/*.elf build/*.txt |
---|
[407] | 28 | |
---|
[439] | 29 | .PHONY: dirs clean |
---|
[407] | 30 | |
---|
| 31 | |
---|
Note: See
TracBrowser
for help on using the repository browser.