36 lines
1.1 KiB
Makefile
36 lines
1.1 KiB
Makefile
|
|
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/
|