source: trunk/libs/mini-libpthread/Makefile @ 444

Last change on this file since 444 was 444, checked in by satin@…, 7 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 1.0 KB
Line 
1############################################################################
2#                    Makefile for the ALMOS-MKH "mini-pthread"             #
3############################################################################
4
5-include ../../params-soft.mk
6ifeq ($(ARCH_NAME),)
7$(error Please define in ARCH_NAME parameter in params-soft.mk!)
8endif
9
10SRCS = pthread.c
11OBJS = $(addprefix build/, $(SRCS:.c=.o))
12#       $(HAL_ARCH)/build/core/hal_user.o
13
14INCLUDES = -I. -I$(HAL)/generic -I$(LIBC_INCLUDE) -I$(LIBALMOSMKH_INCLUDE) -I$(SHARED_INCLUDE)
15
16libs : build/lib/libpthread.a headers
17
18build :
19        @mkdir build
20        @mkdir build/lib
21        @mkdir build/include
22
23$(HAL_ARCH)/build/core/hal_user.o :
24        $(MAKE) -C $(HAL_ARCH)
25
26../mini-libc/build/%.o:
27        $(MAKE) -C ../libc -f Makefile.tsar
28
29build/%.o : %.c %.h
30        $(CC) $(INCLUDES) $(CFLAGS) -c -o  $@ $<
31        $(DU) -D $@ > $@.txt
32
33headers: build
34        cp $(SRCS:.c=.h) build/include/.
35
36
37build/lib/libpthread.a: build $(OBJS)
38        $(AR) rc $@ $(OBJS) #$(OBJS_LIBC)
39        $(RANLIB) $@
40
41.PHONY = build clean headers
42
43
44clean:
45        rm -rf build/
Note: See TracBrowser for help on using the repository browser.