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
|
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 | |
---|
| 11 | |
---|
| 12 | |
---|
| 13 | compiling: 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 | |
---|
| 21 | headers: |
---|
| 22 | echo "Hum ça va posser pb non ?" |
---|
| 23 | |
---|
| 24 | build/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 | |
---|
| 27 | build : |
---|
| 28 | @mkdir build |
---|
| 29 | |
---|
| 30 | |
---|
| 31 | .PHONY = clean compiling |
---|
| 32 | |
---|
| 33 | |
---|
| 34 | clean: |
---|
| 35 | rm -rf build/ |
---|
Note: See
TracBrowser
for help on using the repository browser.