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

Restructure the mini_libc.

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

Legend:

Unmodified
Added
Removed
  • trunk/libs/libalmosmkh/Makefile

    r444 r445  
    11############################################################################
    2 #                  Makefile for the ALMOS-MKH "mini-libc"                  #
     2#                  Makefile for the ALMOS-MKH specific library             #
    33############################################################################
    44
    55-include ../../params-soft.mk
     6
    67ifeq ($(ARCH_NAME),)
    78$(error Please define in ARCH_NAME parameter in params-soft.mk!)
    89endif
    910
    10 SRCS = almos-mkh.c almos-mkh-memory.c
     11SRCS = almosmkh.c
    1112
    1213OBJS = $(addprefix build/, $(SRCS:.c=.o)) \
    1314       $(HAL_ARCH)/build/core/hal_user.o
    1415
    15 INCLUDES = -I. -I$(HAL)/generic -I$(LIBC_INCLUDE) -I$(SHARED_INCLUDE) -I$(LIBPTHREAD_INCLUDE)
     16INCLUDES = -I.                     \
     17           -I$(LIBC_PATH)          \
     18           -I$(LIBPTHREAD_PATH)    \
     19           -I$(SHARED_INCLUDE)     \
     20           -I$(HAL)/generic        \
     21           -I$(HAL_ARCH)/core      \
     22           -I$(KERNEL)
    1623
    17 libs : build/lib/libalmos-mkh.a build/include/almos-mkh.h
     24libs : build/lib/libalmosmkh.a  headers
    1825
    1926build :
     
    2532        $(MAKE) -C $(HAL_ARCH)
    2633
    27 
    28 build/%.o : %.c
     34build/%.o : %.c %.h
    2935        $(CC) $(INCLUDES) $(CFLAGS) -c -o  $@ $<
    3036        $(DU) -D $@ > $@.txt
    3137
    3238headers: build
    33         cp almos-mkh.h build/include/.
    34 build/lib/libalmos-mkh.a: build $(OBJS)
     39        cp $(SRCS:.c=.h)  build/include/.
     40
     41build/lib/libalmosmkh.a: build  $(OBJS)
    3542        $(AR) rc $@ $(OBJS)
    36         ranlib $@
     43        $(RANLIB) $@
    3744
    38 .PHONY = build clean
    39 
     45.PHONY = build clean headers
    4046
    4147clean:
Note: See TracChangeset for help on using the changeset viewer.