Last change
on this file since 442 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:
840 bytes
|
Rev | Line | |
---|
[427] | 1 | ######################################################################### |
---|
[439] | 2 | # Makefile for the ALMOS-MKH "init" application |
---|
[427] | 3 | ######################################################################### |
---|
| 4 | |
---|
[439] | 5 | -include ../../params-soft.mk |
---|
[440] | 6 | |
---|
[439] | 7 | ifeq ($(ARCH_NAME),) |
---|
| 8 | $(error Please define in ARCH_NAME parameter in params-soft.mk!) |
---|
| 9 | endif |
---|
[427] | 10 | |
---|
[439] | 11 | OBJS = build/init.o |
---|
[427] | 12 | |
---|
[440] | 13 | INCLUDES = -I. \ |
---|
| 14 | -I../.. \ |
---|
| 15 | -I$(LIBC_INCLUDE)/ \ |
---|
| 16 | -I$(LIBPTHREAD_INCLUDE) |
---|
[427] | 17 | |
---|
[439] | 18 | compile : dirs build/init.elf |
---|
| 19 | build/init.elf : $(OBJS) init.ld |
---|
| 20 | $(LD) -o $@ -T init.ld $(OBJS) -nostdlib -L$(LIBC) -L$(LIBPTHREAD) -lc -lpthread |
---|
[427] | 21 | $(DU) -D $@ > $@.txt |
---|
| 22 | |
---|
[439] | 23 | build/init.o : init.c |
---|
[427] | 24 | $(CC) $(INCLUDES) $(CFLAGS) -c -o $@ $< |
---|
| 25 | $(DU) -D $@ > $@.txt |
---|
| 26 | |
---|
[439] | 27 | dirs: |
---|
| 28 | @mkdir -p build |
---|
[427] | 29 | |
---|
[439] | 30 | clean: |
---|
[440] | 31 | rm -rf build/*.o build/*.elf build/*.txt |
---|
[427] | 32 | |
---|
[439] | 33 | .PHONY: dirs clean |
---|
[427] | 34 | |
---|
Note: See
TracBrowser
for help on using the repository browser.