Added Makefile to build it for AmigaOS 4

This commit is contained in:
George Sokianos 2023-01-05 23:10:29 +00:00
parent 73dd2967c8
commit 3bfd3a9ef8
2 changed files with 36 additions and 0 deletions

3
.gitignore vendored
View File

@ -37,3 +37,6 @@
/tests/Makefile /tests/Makefile
/tests/Makefile.in /tests/Makefile.in
/tests/testSubDir/ /tests/testSubDir/
release
libhyphen.lha

33
Makefile.os4 Normal file
View File

@ -0,0 +1,33 @@
USE_CLIB2=YES
ifeq ($(USE_CLIB2), YES)
LIBC=clib2
else
LIBC=newlib
endif
all: build
init:
autoreconf -fvi
build: init
CC="ppc-amigaos-gcc" CFLAGS="-mcrt=${LIBC} -fPIC" CXXFLAGS="-mcrt=${LIBC} -fPIC" ./configure --host=ppc-amigaos --enable-shared=no && \
make -j$(shell nproc)
clean:
make -f Makefile clean
rm -rf autom4te.cache .deps
rm compile config.guess config.log config.status config.sub configure depcomp install-sh libtool ltmain.sh missing test-driver INSTALL Makefile Makefile.in *.m4
release:
mkdir -p release/local/common/include/hyphen
mkdir -p release/local/clib2/lib
mkdir -p release/local/newlib/lib
make -f Makefile.os4 USE_CLIB2=YES
cp ./.libs/libhyphen.a ./.libs/libhyphen.la release/local/clib2/lib/
cp ./*.h release/local/common/include/hyphen/
make -f Makefile.os4 clean
make -f Makefile.os4 USE_CLIB2=NO
cp ./.libs/libhyphen.a ./.libs/libhyphen.la release/local/newlib/lib/
lha -aeq libhyphen.lha release/