Compare commits

...

2 Commits

Author SHA1 Message Date
George Sokianos 82ab955b04 Fix lha archive 2023-11-12 17:54:31 +00:00
George Sokianos 312a1482b1 Recompile for clib4 2023-11-01 20:02:49 +00:00
1 changed files with 16 additions and 10 deletions

View File

@ -1,10 +1,8 @@
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 +21,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/
lha -aeq libhyphen.lha release/
# 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 aq libhyphen.lha release/