source: trunk/user/init/Makefile @ 441

Last change on this file since 441 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
7ifeq ($(ARCH_NAME),)
8$(error Please define in ARCH_NAME parameter in params-soft.mk!)
9endif
10
11OBJS = build/init.o
12
13INCLUDES = -I.                     \
14           -I../..                 \
15           -I$(LIBC_INCLUDE)/      \
16           -I$(LIBPTHREAD_INCLUDE)
17
18compile : dirs build/init.elf
19build/init.elf : $(OBJS) init.ld
20        $(LD) -o $@ -T init.ld $(OBJS) -nostdlib -L$(LIBC) -L$(LIBPTHREAD) -lc -lpthread
21        $(DU) -D $@ > $@.txt
22
23build/init.o : init.c
24        $(CC) $(INCLUDES) $(CFLAGS) -c -o  $@ $<
25        $(DU) -D $@ > $@.txt
26
27dirs:
28        @mkdir -p build
29
30clean:
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.