# # Copyright (c) 2004 Andrey Simonenko # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # # @(#)$Id: Makefile,v 1.4 2006/04/26 20:43:43 simon Exp $ # SHLIB_NAME= ipa_ip6fw.so SONAME= ipa_ip6fw.so SRCS= version.h ipa_ip6fw.c kip6fw.c CLEANFILES= version.h .depend WARNS?= 6 version.h: Version echo "#define IPA_IP6FW_VERSION \"`cat Version`\"" > ${.TARGET} PREFIX?= /usr/local LOCALINCLUDE?= ${PREFIX}/include LIBDIR= ${PREFIX}/lib MANDIR= ${PREFIX}/man/man .ifdef WITH_PTHREAD CFLAGS+= -DWITH_PTHREAD .endif CFLAGS+= -I${LOCALINCLUDE} DEBUG_FLAGS?= -g MAN= man/ipa_ip6fw.8 .ifmake dist-bzip2 PACKAGE_DIR=ipa_ip6fw-`cat Version` .endif dist-bzip2: rm -f version.h ${PACKAGE_DIR}.tar.bz2 mkdir ${PACKAGE_DIR} mkdir ${PACKAGE_DIR}/man mkdir ${PACKAGE_DIR}/man/ru.KOI8-R cp HISTORY LICENSE README INSTALL Makefile Version *.c *.h ${PACKAGE_DIR} cp man/Makefile man/ipa_ip6fw.8 ${PACKAGE_DIR}/man cp man/ru.KOI8-R/ipa_ip6fw.8 ${PACKAGE_DIR}/man/ru.KOI8-R tar -cf ${PACKAGE_DIR}.tar ${PACKAGE_DIR} bzip2 ${PACKAGE_DIR}.tar rm -r ${PACKAGE_DIR} .include