Changeset 444 for trunk/libs/mini-libpthread
- Timestamp:
- May 16, 2018, 8:31:35 PM (7 years ago)
- Location:
- trunk/libs/mini-libpthread
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libs/mini-libpthread/Makefile
r440 r444 9 9 10 10 SRCS = pthread.c 11 OBJS = $(addprefix build/, $(SRCS:.c=.o)) \ 12 $(HAL_ARCH)/build/core/hal_user.o 13 OBJS_LIBC = ../mini-libc/build/malloc.o ../mini-libc/build/stdlib.o ../mini-libc/build/stdio.o 11 OBJS = $(addprefix build/, $(SRCS:.c=.o)) 12 # $(HAL_ARCH)/build/core/hal_user.o 14 13 15 INCLUDES = -I. -I$( KERNEL)/syscalls -I$(HAL)/generic -I../mini-libc14 INCLUDES = -I. -I$(HAL)/generic -I$(LIBC_INCLUDE) -I$(LIBALMOSMKH_INCLUDE) -I$(SHARED_INCLUDE) 16 15 17 libs : build/lib/libpthread.a 16 libs : build/lib/libpthread.a headers 18 17 19 18 build : … … 32 31 $(DU) -D $@ > $@.txt 33 32 33 headers: build 34 cp $(SRCS:.c=.h) build/include/. 35 36 34 37 build/lib/libpthread.a: build $(OBJS) 35 $(AR) rc $@ $(OBJS) $(OBJS_LIBC)38 $(AR) rc $@ $(OBJS) #$(OBJS_LIBC) 36 39 $(RANLIB) $@ 37 cp $(SRCS:.c=.h) $(HAL)/generic/hal_user.h $(KERNEL)/syscalls/shared_syscalls.h build/include/.38 40 39 .PHONY = build clean 41 .PHONY = build clean headers 40 42 41 43 42 44 clean: 43 rm - f build/*.o build/*.txt build/include/* build/lib/*45 rm -rf build/ -
trunk/libs/mini-libpthread/pthread.c
r440 r444 22 22 */ 23 23 24 #include <shared_syscalls.h>25 24 #include <hal_user.h> 26 25 #include <stdio.h> 27 26 #include <stdlib.h> 28 #include <malloc.h>29 27 #include <pthread.h> 28 #include <assert.h> 29 #include <almos-mkh.h> 30 #include <syscalls_numbers.h> 30 31 31 32 #define PTHREAD_MUTEX_DEBUG 0 -
trunk/libs/mini-libpthread/pthread.h
r439 r444 25 25 #define _PTHREAD_H_ 26 26 27 #include <shared_syscalls.h> 27 #include <almos-mkh/pthread.h> 28 28 29 29 30 ////////////////////////////////////////////////////////////////////////////////////////////// … … 77 78 int pthread_exit( void * exit_value ); 78 79 80 81 82 // TODO n'existe pas dans pthread 79 83 /********************************************************************************************* 80 84 * This function calls the scheduler for the core running the calling thread. … … 247 251 248 252 249 #endif // _ STDIO_H_253 #endif // _PTHREAD_H_
Note: See TracChangeset
for help on using the changeset viewer.