Recompile for clib4

This commit is contained in:
George Sokianos 2023-11-01 20:02:49 +00:00
parent 3bfd3a9ef8
commit 312a1482b1
1 changed files with 21 additions and 8 deletions

View File

@ -1,10 +1,15 @@
USE_CLIB2=YES
ifeq ($(USE_CLIB2), YES)
LIBC=clib2
else
LIBC=newlib
endif
# USE_CLIB2=YES
# ifeq ($(USE_CLIB2), YES)
# LIBC=clib2
# else
# LIBC=newlib
# endif
# Set the lic to be used with the LIBC argument
# possible values newlib, clib2, clib4
# make -f Makefile.os4 LIBC=clib4
#
LIBC?=newlib
all: build
@ -23,11 +28,19 @@ clean:
release:
mkdir -p release/local/common/include/hyphen
mkdir -p release/local/clib2/lib
mkdir -p release/local/clib4/lib
mkdir -p release/local/newlib/lib
make -f Makefile.os4 USE_CLIB2=YES
# build the clib2 version
make -f Makefile.os4 LIBC=clib2
cp ./.libs/libhyphen.a ./.libs/libhyphen.la release/local/clib2/lib/
cp ./*.h release/local/common/include/hyphen/
# build the newlib version
make -f Makefile.os4 clean
make -f Makefile.os4 USE_CLIB2=NO
make -f Makefile.os4 LIBC=newlib
cp ./.libs/libhyphen.a ./.libs/libhyphen.la release/local/newlib/lib/
# build the clib4 version
make -f Makefile.os4 clean
make -f Makefile.os4 LIBC=clib4
cp ./.libs/libhyphen.a ./.libs/libhyphen.la release/local/clib4/lib/
# create the release archive
lha -aeq libhyphen.lha release/