source: trunk/libs/libpthread/Makefile @ 489

Last change on this file since 489 was 457, checked in by alain, 6 years ago

This version modifies the exec syscall and fixes a large number of small bugs.
The version number has been updated (0.1)

File size: 1.1 KB
Line 
1############################################################################
2#               Makefile for the "pthread" library.                        #
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/pthread.o                    \
12       $(HAL_ARCH)/build/core/hal_user.o
13
14INCLUDES = -I.                     \
15           -I$(LIBC_PATH)          \
16           -I$(LIBALMOSMKH_PATH)   \
17           -I$(SHARED_INCLUDE)     \
18           -I$(HAL)/generic        \
19           -I$(HAL_ARCH)/core      \
20           -I$(KERNEL) 
21
22libs : build/lib/libpthread.a  headers
23
24build :
25        @mkdir build
26        @mkdir build/lib
27        @mkdir build/include
28
29$(HAL_ARCH)/build/core/hal_user.o :
30        $(MAKE) -C $(HAL_ARCH)
31
32build/%.o : %.c %.h
33        $(CC) $(INCLUDES) $(CFLAGS) -c -o  $@ $<
34        $(DU) -D $@ > $@.txt
35
36headers: build
37        cp pthread.h  build/include/.
38
39
40build/lib/libpthread.a: build  $(OBJS)
41        $(AR) rc $@ $(OBJS) 
42        $(RANLIB) $@
43
44.PHONY = build clean headers
45
46
47clean:
48        rm -rf build/
Note: See TracBrowser for help on using the repository browser.