Compare commits
2 Commits
Author | SHA1 | Date |
---|---|---|
George Sokianos | 82ab955b04 | |
George Sokianos | 312a1482b1 |
26
Makefile.os4
26
Makefile.os4
|
@ -1,10 +1,8 @@
|
||||||
|
# Set the lic to be used with the LIBC argument
|
||||||
USE_CLIB2=YES
|
# possible values newlib, clib2, clib4
|
||||||
ifeq ($(USE_CLIB2), YES)
|
# make -f Makefile.os4 LIBC=clib4
|
||||||
LIBC=clib2
|
#
|
||||||
else
|
LIBC?=newlib
|
||||||
LIBC=newlib
|
|
||||||
endif
|
|
||||||
|
|
||||||
all: build
|
all: build
|
||||||
|
|
||||||
|
@ -23,11 +21,19 @@ clean:
|
||||||
release:
|
release:
|
||||||
mkdir -p release/local/common/include/hyphen
|
mkdir -p release/local/common/include/hyphen
|
||||||
mkdir -p release/local/clib2/lib
|
mkdir -p release/local/clib2/lib
|
||||||
|
mkdir -p release/local/clib4/lib
|
||||||
mkdir -p release/local/newlib/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 ./.libs/libhyphen.a ./.libs/libhyphen.la release/local/clib2/lib/
|
||||||
cp ./*.h release/local/common/include/hyphen/
|
cp ./*.h release/local/common/include/hyphen/
|
||||||
|
# build the newlib version
|
||||||
make -f Makefile.os4 clean
|
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/
|
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/
|
||||||
|
|
Loading…
Reference in New Issue