From 92d3ef3d195f4f122d8b17fe636ad8a30039d1bf Mon Sep 17 00:00:00 2001 From: George Sokianos Date: Wed, 11 Jan 2023 00:23:36 +0000 Subject: [PATCH] Changes in the Makefile.os4 to fully compile --- Makefile.os4 | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/Makefile.os4 b/Makefile.os4 index 15f4a3e..2aab157 100644 --- a/Makefile.os4 +++ b/Makefile.os4 @@ -9,26 +9,27 @@ endif all: build init: - git submodule update --init +# git submodule update --init + sh ./autogen.sh autoreconf --install --force --symlink build: init - CC="ppc-amigaos-gcc" CFLAGS="-mcrt=${LIBC} -fPIC" CXXFLAGS="-mcrt=${LIBC} -fPIC" LDFlags="-mcrt=${LIBC}" LIBS=" -lpthread -athread=native" ./configure --host=ppc-amigaos --enable-shared=no --enable-builtin --disable-runtime && \ + CC="ppc-amigaos-gcc" CFLAGS="-mcrt=${LIBC} -fPIC" CXXFLAGS="-mcrt=${LIBC} -fPIC" LDFlags="-mcrt=${LIBC}" LIBS="-lpthread -athread=native" ./configure --host=ppc-amigaos --enable-shared=no --enable-builtin --disable-runtime && \ 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 + @rm config.log config.status configure libtool 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/ +release: + @mkdir -p release/local/common/include + @mkdir -p release/local/clib2/lib +# @mkdir -p release/local/newlib/lib + @make -f Makefile.os4 USE_CLIB2=YES + @cp ./src/.libs/libpsl.a ./src/.libs/libpsl.lai ./src/libpsl.la release/local/clib2/lib/ + @cp ./include/libpsl.h release/local/common/include/ +# @make -f Makefile.os4 clean +# @make -f Makefile.os4 USE_CLIB2=NO +# @cp ./src/.libs/libpsl.a ./src/.libs/libpsl.lai ./src/libpsl.la release/local/newlib/lib/ + @lha -aeq libpsl.lha release/