source: trunk/libs/newlib/Makefile @ 455

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

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

File size: 1.2 KB
RevLine 
[444]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
10
11
12
13compiling: build build/Makefile
14        echo $(HAL_ARCH)
15        cd build && SHARED_INCLUDE=$(SHARED_INCLUDE) HAL=$(HAL) HAL_ARCH=$(HAL_ARCH) make
16        cd build && make install
17        cd $(LIBC_INCLUDE) && rm pthread.h && rm sys/_pthreadtypes.h && sed -i "s&#include <sys/_pthreadtypes.h>&&" sys/types.h && sed -i "s/^int pthread.*//" sys/signal.h
18        $(AR) rc $(LIBC)/libc.a $(HAL_ARCH)/build/core/hal_user.o
19        ranlib $(LIBC)/libc.a
20
21headers:
22        echo "Hum ça va posser pb non ?"
23
24build/Makefile: build #configure
25        - test ! -f build/Makefile && cd build && LIBALMOSMKH_INCLUDE=$(LIBALMOSMKH_INCLUDE) SHARED_INCLUDE=$(SHARED_INCLUDE) HAL=$(HAL) HAL_ARCH=$(HAL_ARCH) ../src/newlib/configure --host=$(ARCH_NEWLIB)-almosmkh --prefix=`pwd` --with-newlib --disable-multilib --disable-newlib-io-float
26
27build :
28        @mkdir build
29
30
31.PHONY = clean compiling
32
33
34clean:
35        rm -rf build/
Note: See TracBrowser for help on using the repository browser.