source: trunk/libs/libalmos-mkh/Makefile @ 444

Last change on this file since 444 was 444, checked in by satin@…, 6 years ago

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

File size: 1005 bytes
Line 
1############################################################################
2#                  Makefile for the ALMOS-MKH "mini-libc"                  #
3############################################################################
4
5-include ../../params-soft.mk
6ifeq ($(ARCH_NAME),)
7$(error Please define in ARCH_NAME parameter in params-soft.mk!)
8endif
9
10SRCS = almos-mkh.c almos-mkh-memory.c
11
12OBJS = $(addprefix build/, $(SRCS:.c=.o)) \
13       $(HAL_ARCH)/build/core/hal_user.o
14
15INCLUDES = -I. -I$(HAL)/generic -I$(LIBC_INCLUDE) -I$(SHARED_INCLUDE) -I$(LIBPTHREAD_INCLUDE)
16
17libs : build/lib/libalmos-mkh.a build/include/almos-mkh.h
18
19build :
20        @mkdir build
21        @mkdir build/lib
22        @mkdir build/include
23
24$(HAL_ARCH)/build/core/hal_user.o :
25        $(MAKE) -C $(HAL_ARCH)
26
27
28build/%.o : %.c
29        $(CC) $(INCLUDES) $(CFLAGS) -c -o  $@ $<
30        $(DU) -D $@ > $@.txt
31
32headers: build
33        cp almos-mkh.h build/include/.
34build/lib/libalmos-mkh.a: build $(OBJS)
35        $(AR) rc $@ $(OBJS)
36        ranlib $@
37
38.PHONY = build clean
39
40
41clean:
42        rm -rf build/
Note: See TracBrowser for help on using the repository browser.