# $Id$ # automake source for UDP Gateway Makefile # Copyright (C) 2004 Jan Kratochvil # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; exactly version 2 of June 1991 is required # # 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, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA include $(top_srcdir)/Makefile-head.am GLADE_IN= \ ui-gnome.glade \ ui-gnome.gladep GLADE_OUT= \ ui-gnome-interface.c \ ui-gnome-interface.h \ ui-gnome-callbacks.h \ ui-gnome-support.c \ ui-gnome-support.h udpgate_SOURCES= \ main.c \ main.h \ network.c \ network.h \ packet.c \ packet.h \ ui-gnome.c \ ui-gnome.h \ ui-line.c \ ui-line.h \ $(GLADE_OUT) EXTRA_DIST+= \ $(GLADE_IN) udpgate_CFLAGS= udpgate_LDADD= udpgate-ui-gnome-interface.$(OBJEXT): ui-gnome-callbacks.h if HAVE_GLADE_WRITESOURCE # touch(1) as 'ui-gnome-callbacks.h' are not overwritten if not changed: $(GLADE_OUT): $(GLADE_IN) sh $(top_srcdir)/macros/glade-w.sh $< @touch ui-gnome-callbacks.h endif CLEANFILES+= \ ui-gnome-callbacks.c \ ui-gnome.glade.bak \ ui-gnome.gladep.bak udpgate_LDADD+= $(POPT_LIBS) $(INTLLIBS) # FIXME: /usr/include/gtk-2.0/gtk/gtkitemfactory.h:51: warning: function declaration isn't a prototype # /* We use () here to mean unspecified arguments. This is deprecated # * as of C99, but we can't change it without breaking compatibility. # * (Note that if we are included from a C++ program () will mean # * (void) so an explicit cast will be needed.) # */ # typedef void (*GtkItemFactoryCallback) (); # We cannot put '-Wno-strict-prototypes' as we get always overriden by $(CFLAGS) ! udpgate_CFLAGS+=$(GNOMEUI_CFLAGS) udpgate_LDADD +=$(GNOMEUI_LIBS) bin_PROGRAMS+=udpgate EXTRA_DIST+=udpgate.pod.pl.in CLEANFILES+=udpgate.pod udpgate.1 if ENABLE_MAN_PAGES udpgate_man_cond=udpgate.1 endif man_MANS=$(udpgate_man_cond)