#!/bin/sh

source ../Config.sh

PP_PUBLIC_INCLUDES="jconfig.h jmorecfg.h jpeglib.h jerror.h"

pp_build_local () {
    # force configure
    if [ "$PP_FORCE_FULL_BUILD" = "1" ]; then
	rm -f Makefile
    fi

    # configure
    if [ ! -f Makefile ]; then
	echo "Running configure ..."
	./configure \
		--host="${HOST_SYSTEM}" \
		--prefix=/
    fi

    # make / install
    echo "Running make ..."
    make install-lib
}

pp_do "$@"
