40 lines
1.3 KiB
Makefile
40 lines
1.3 KiB
Makefile
# 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
|
|
|
|
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/clib4/lib
|
|
mkdir -p release/local/newlib/lib
|
|
# 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 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 aq libhyphen.lha release/
|