Ignore:
Timestamp:
May 29, 2018, 9:27:23 AM (7 years ago)
Author:
alain
Message:

Restructure the mini_libc.

Location:
trunk/libs/libpthread
Files:
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/libs/libpthread/Makefile

    r444 r445  
    11############################################################################
    2 #                    Makefile for the ALMOS-MKH "mini-pthread"             #
     2#               Makefile for the "pthread" library.                        #
    33############################################################################
    44
    55-include ../../params-soft.mk
     6
    67ifeq ($(ARCH_NAME),)
    78$(error Please define in ARCH_NAME parameter in params-soft.mk!)
     
    910
    1011SRCS = pthread.c
    11 OBJS = $(addprefix build/, $(SRCS:.c=.o))
    12 #       $(HAL_ARCH)/build/core/hal_user.o
    1312
    14 INCLUDES = -I. -I$(HAL)/generic -I$(LIBC_INCLUDE) -I$(LIBALMOSMKH_INCLUDE) -I$(SHARED_INCLUDE)
     13OBJS = $(addprefix build/, $(SRCS:.c=.o)) \
     14       $(HAL_ARCH)/build/core/hal_user.o
    1515
    16 libs : build/lib/libpthread.a headers
     16INCLUDES = -I.                     \
     17           -I$(LIBC_PATH)          \
     18           -I$(LIBALMOSMKH_PATH)   \
     19           -I$(SHARED_INCLUDE)     \
     20           -I$(HAL)/generic        \
     21           -I$(HAL_ARCH)/core      \
     22           -I$(KERNEL)
     23
     24libs : build/lib/libpthread.a  headers
    1725
    1826build :
     
    2432        $(MAKE) -C $(HAL_ARCH)
    2533
    26 ../mini-libc/build/%.o:
    27         $(MAKE) -C ../libc -f Makefile.tsar
    28 
    2934build/%.o : %.c %.h
    3035        $(CC) $(INCLUDES) $(CFLAGS) -c -o  $@ $<
     
    3237
    3338headers: build
    34         cp $(SRCS:.c=.h) build/include/.
     39        cp $(SRCS:.c=.h)  build/include/.
    3540
    3641
    37 build/lib/libpthread.a: build $(OBJS)
    38         $(AR) rc $@ $(OBJS) #$(OBJS_LIBC)
     42build/lib/libpthread.a: build  $(OBJS)
     43        $(AR) rc $@ $(OBJS)
    3944        $(RANLIB) $@
    4045
Note: See TracChangeset for help on using the changeset viewer.