Last change
on this file since 619 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 | |
---|
7 | ifeq ($(ARCH_NAME),) |
---|
8 | $(error Please define in ARCH_NAME parameter in params-soft.mk!) |
---|
9 | endif |
---|
10 | |
---|
11 | OBJS = build/pthread.o \ |
---|
12 | $(HAL_ARCH)/build/core/hal_user.o |
---|
13 | |
---|
14 | INCLUDES = -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 | |
---|
22 | libs : build/lib/libpthread.a headers |
---|
23 | |
---|
24 | build : |
---|
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 | |
---|
32 | build/%.o : %.c %.h |
---|
33 | $(CC) $(INCLUDES) $(CFLAGS) -c -o $@ $< |
---|
34 | $(DU) -D $@ > $@.txt |
---|
35 | |
---|
36 | headers: build |
---|
37 | cp pthread.h build/include/. |
---|
38 | |
---|
39 | |
---|
40 | build/lib/libpthread.a: build $(OBJS) |
---|
41 | $(AR) rc $@ $(OBJS) |
---|
42 | $(RANLIB) $@ |
---|
43 | |
---|
44 | .PHONY = build clean headers |
---|
45 | |
---|
46 | |
---|
47 | clean: |
---|
48 | rm -rf build/ |
---|
Note: See
TracBrowser
for help on using the repository browser.