Last change
on this file since 443 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
|
Line | |
---|
1 | ######################################################################### |
---|
2 | # Makefile for the ALMOS-MKH "init" 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/init.o |
---|
12 | |
---|
13 | INCLUDES = -I. \ |
---|
14 | -I../.. \ |
---|
15 | -I$(LIBC_INCLUDE)/ \ |
---|
16 | -I$(LIBPTHREAD_INCLUDE) |
---|
17 | |
---|
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 |
---|
21 | $(DU) -D $@ > $@.txt |
---|
22 | |
---|
23 | build/init.o : init.c |
---|
24 | $(CC) $(INCLUDES) $(CFLAGS) -c -o $@ $< |
---|
25 | $(DU) -D $@ > $@.txt |
---|
26 | |
---|
27 | dirs: |
---|
28 | @mkdir -p build |
---|
29 | |
---|
30 | clean: |
---|
31 | rm -rf build/*.o build/*.elf build/*.txt |
---|
32 | |
---|
33 | .PHONY: dirs clean |
---|
34 | |
---|
Note: See
TracBrowser
for help on using the repository browser.