source: trunk/user/init/Makefile @ 442

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
RevLine 
[427]1#########################################################################
[439]2# Makefile for the ALMOS-MKH "init" application
[427]3#########################################################################
4
[439]5-include ../../params-soft.mk
[440]6
[439]7ifeq ($(ARCH_NAME),)
8$(error Please define in ARCH_NAME parameter in params-soft.mk!)
9endif
[427]10
[439]11OBJS = build/init.o
[427]12
[440]13INCLUDES = -I.                     \
14           -I../..                 \
15           -I$(LIBC_INCLUDE)/      \
16           -I$(LIBPTHREAD_INCLUDE)
[427]17
[439]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
[427]21        $(DU) -D $@ > $@.txt
22
[439]23build/init.o : init.c
[427]24        $(CC) $(INCLUDES) $(CFLAGS) -c -o  $@ $<
25        $(DU) -D $@ > $@.txt
26
[439]27dirs:
28        @mkdir -p build
[427]29
[439]30clean:
[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.