# $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 if HAVE_GNOME GNOME_SRCS= \ ui-gnome.c \ ui-gnome.h \ $(GLADE_OUT) endif if ENABLE_BUNDLE BUNDLE_SRCS= \ bundle.c \ bundle.h \ bundle-util.c \ bundle-util.h \ no-gmodule.c endif EXTRA_DIST+= \ bundle.pl if HAVE_PERL # FIXME: GNU make(1) dependency by $(addprefix ...) po_files=$(addprefix $(top_builddir)/$(POSUB)/,$(CATALOGS)) bundle_files=$(top_srcdir)/init.d/$(PACKAGE).init $(po_files) bundle.c: bundle.pl $(bundle_files) $(PERL) bundle.pl $(bundle_files) >$@ $(po_files): $(MAKE) -C $(top_builddir)/$(POSUB) endif udpgate_SOURCES= \ configuration.c \ configuration.h \ main.c \ main.h \ network.c \ network.h \ packet.c \ packet.h \ pathname.c \ pathname.h \ startup-lsb.c \ startup-lsb.h \ startup-chkconfig.c \ startup-chkconfig.h \ startup-debian.c \ startup-debian.h \ startup.c \ startup.h \ static-startup.c \ static-startup.h \ ui-line.c \ ui-line.h \ $(GNOME_SRCS) \ $(BUNDLE_SRCS) EXTRA_DIST+= \ $(GLADE_IN) udpgate_CFLAGS= \ -DSYSCONFDIR="$(sysconfdir)" \ -DLOCALSTATEDIR="$(localstatedir)" \ -DCATALOGS="$(CATALOGS)" 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)