Ignore:
Timestamp:
May 16, 2018, 8:31:35 PM (7 years ago)
Author:
satin@…
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libs/mini-libpthread/Makefile

    r440 r444  
    99
    1010SRCS = 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
     11OBJS = $(addprefix build/, $(SRCS:.c=.o))
     12#       $(HAL_ARCH)/build/core/hal_user.o
    1413
    15 INCLUDES = -I. -I$(KERNEL)/syscalls -I$(HAL)/generic -I../mini-libc
     14INCLUDES = -I. -I$(HAL)/generic -I$(LIBC_INCLUDE) -I$(LIBALMOSMKH_INCLUDE) -I$(SHARED_INCLUDE)
    1615
    17 libs : build/lib/libpthread.a
     16libs : build/lib/libpthread.a headers
    1817
    1918build :
     
    3231        $(DU) -D $@ > $@.txt
    3332
     33headers: build
     34        cp $(SRCS:.c=.h) build/include/.
     35
     36
    3437build/lib/libpthread.a: build $(OBJS)
    35         $(AR) rc $@ $(OBJS) $(OBJS_LIBC)
     38        $(AR) rc $@ $(OBJS) #$(OBJS_LIBC)
    3639        $(RANLIB) $@
    37         cp $(SRCS:.c=.h) $(HAL)/generic/hal_user.h $(KERNEL)/syscalls/shared_syscalls.h build/include/.
    3840
    39 .PHONY = build clean
     41.PHONY = build clean headers
    4042
    4143
    4244clean:
    43         rm -f build/*.o build/*.txt build/include/* build/lib/*
     45        rm -rf build/
Note: See TracChangeset for help on using the changeset viewer.