#!/bin/bash
# Copyright (c) 2000-2012 Synology Inc. All rights reserved.

if ! checkPlatformFunction SYNO_FEA_ROUTER_COMMON; then
	SkipThisProject
	return
fi

case ${MakeClean} in
	[Yy][Ee][Ss])
		make -C ./miniupnpd -f Makefile.syno clean
		;;
esac

case ${CleanOnly} in
	[Yy][Ee][Ss])
		return
		;;
esac

export IPTC_LIBS=`pkg-config --libs libiptc`
export IPTC_INCL=`pkg-config --cflags libiptc`

make GLIBC=yes -C ./miniupnpd -f Makefile.syno ${MAKE_FLAGS}

