diff --git a/.gitignore b/.gitignore index 8c089da4..184410ea 100644 --- a/.gitignore +++ b/.gitignore @@ -54,3 +54,6 @@ _VC_ROOT/ .depend.MSVC *.pyd *.egg-info/ + +release +libnghttp2.lha \ No newline at end of file diff --git a/Makefile.os4 b/Makefile.os4 new file mode 100644 index 00000000..d87a5b35 --- /dev/null +++ b/Makefile.os4 @@ -0,0 +1,36 @@ + +USE_CLIB2=YES +ifeq ($(USE_CLIB2), YES) +LIBC=clib2 +else +LIBC=newlib +endif + +all: build + +init: + git submodule update --init + autoreconf -i + automake + autoconf + +build: init + CC="ppc-amigaos-gcc" CFLAGS="-mcrt=${LIBC} -fPIC" LDFLAGS="-mcrt=${LIBC}" CXXFLAGS="-mcrt=${LIBC} -fPIC" ./configure --host=ppc-amigaos && \ + make -j$(shell nproc) + +clean: + make -f Makefile clean + rm -rf autom4te.cache + rm compile config.guess config.h config.h.in config.log config.status config.sub configure depcomp install-sh libtool ltmain.sh missing stamp-h1 test-driver INSTALL Makefile Makefile.in *.m4 + +release: + mkdir -p release/local/common/include/nghttp2 + mkdir -p release/local/clib2/lib + mkdir -p release/local/newlib/lib + make -f Makefile.os4 USE_CLIB2=YES + cp ./lib/.libs/libnghttp2.a ./lib/.libs/libnghttp2.la release/local/clib2/lib/ + cp ./lib/includes/nghttp2/* release/local/common/include/nghttp2/ + make -f Makefile.os4 clean + make -f Makefile.os4 USE_CLIB2=NO + cp ./lib/.libs/libnghttp2.a ./lib/.libs/libnghttp2.la ./lib/.libs/libnghttp2.so release/local/newlib/lib/ + lha -aeq libnghttp2.lha release/ \ No newline at end of file