# tcpreen source directory Makefile
# $Id: Makefile.am,v 1.29 2004/07/06 17:06:33 rdenisc Exp $

# ***********************************************************************
# *  Copyright (C) 2002-2004 Remi Denis-Courmont.                       *
# *  This program is free software; you can redistribute and/or modify  *
# *  it under the terms of the GNU General Public License as published  *
# *  by the Free Software Foundation; version 2 of the license.         *
# *                                                                     *
# *  This program is distributed in the hope that it will be useful,    *
# *  but WITHOUT ANY WARRANTY; without even the implied warranty of     *
# *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.               *
# *  See the GNU General Public License for more details.               *
# *                                                                     *
# *  You should have received a copy of the GNU General Public License  *
# *  along with this program; if not, you can get it from:              *
# *  http://www.gnu.org/copyleft/gpl.html                               *
# ***********************************************************************
    
top_srcdir = @top_srcdir@
datadir = @datadir@
localedir = $(datadir)/locale
AM_CPPFLAGS = -DLOCALEDIR=\"$(localedir)\" -D_GNU_SOURCE \
		-I$(top_srcdir)/include -I$(top_srcdir) \
		-I$(top_srcdir)/logs

bin_PROGRAMS = tcpreen
#FIXME: don't rebuild every time
BUILT_SOURCES = host.h
CLEANFILES = $(BUILT_SOURCES)

host.h: Makefile
	{ \
		echo '#define PACKAGE_HOST "$(host)"' ; \
		echo '#define PACKAGE_BUILD "$(build)"' ; \
	} > $@

# tcpreen
tcpreen_SOURCES = tcpreen.cpp tcpreen.h bridge.cpp bridge.h \
		  main.cpp proto.h proto.cpp format.h format.cpp
tcpreen_LDADD = @LIBINTL@ ../libsolve/libsolve.a ../logs/liblogs.a

if WINSOCK
tcpreen_SOURCES += winstub.c
endif



syntax highlighted by Code2HTML, v. 0.9.1