Added OS4 makefile
This commit is contained in:
parent
c47cf796fc
commit
9098ed0e31
|
@ -0,0 +1,34 @@
|
||||||
|
|
||||||
|
USE_CLIB2=YES
|
||||||
|
ifeq ($(USE_CLIB2), YES)
|
||||||
|
LIBC=clib2
|
||||||
|
else
|
||||||
|
LIBC=newlib
|
||||||
|
endif
|
||||||
|
|
||||||
|
all: build
|
||||||
|
|
||||||
|
init:
|
||||||
|
git submodule update --init
|
||||||
|
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 && \
|
||||||
|
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/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/
|
Loading…
Reference in New Issue