Last change
on this file since 646 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
|
Rev | Line | |
---|
[439] | 1 | ############################################################################ |
---|
[445] | 2 | # Makefile for the "pthread" library. # |
---|
[439] | 3 | ############################################################################ |
---|
| 4 | |
---|
| 5 | -include ../../params-soft.mk |
---|
[445] | 6 | |
---|
[439] | 7 | ifeq ($(ARCH_NAME),) |
---|
| 8 | $(error Please define in ARCH_NAME parameter in params-soft.mk!) |
---|
| 9 | endif |
---|
| 10 | |
---|
[457] | 11 | OBJS = build/pthread.o \ |
---|
[445] | 12 | $(HAL_ARCH)/build/core/hal_user.o |
---|
[439] | 13 | |
---|
[445] | 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) |
---|
[439] | 21 | |
---|
[445] | 22 | libs : build/lib/libpthread.a headers |
---|
| 23 | |
---|
[439] | 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 | |
---|
[444] | 36 | headers: build |
---|
[457] | 37 | cp pthread.h build/include/. |
---|
[444] | 38 | |
---|
| 39 | |
---|
[445] | 40 | build/lib/libpthread.a: build $(OBJS) |
---|
| 41 | $(AR) rc $@ $(OBJS) |
---|
[440] | 42 | $(RANLIB) $@ |
---|
[439] | 43 | |
---|
[444] | 44 | .PHONY = build clean headers |
---|
[439] | 45 | |
---|
| 46 | |
---|
| 47 | clean: |
---|
[444] | 48 | rm -rf build/ |
---|
Note: See
TracBrowser
for help on using the repository browser.