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