2 # automake source for UDP Gateway Makefile
3 # Copyright (C) 2004 Jan Kratochvil <project-udpgate@jankratochvil.net>
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; exactly version 2 of June 1991 is required
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 include $(top_srcdir)/Makefile-head.am
26 ui-gnome-interface.c \
27 ui-gnome-interface.h \
28 ui-gnome-callbacks.h \
41 nodist_udpgate_SOURCES=bundle.c
51 # FIXME: GNU make(1) dependency by $(addprefix ...)
52 bundle_files=$(top_srcdir)/init.d/$(PACKAGE).init $(addprefix $(top_builddir)/$(POSUB)/,$(CATALOGS))
53 bundle.c: bundle.pl $(bundle_files)
54 $(PERL) bundle.pl $(bundle_files) >$@
80 -DSYSCONFDIR="$(sysconfdir)" \
81 -DCATALOGS="$(CATALOGS)"
84 udpgate-ui-gnome-interface.$(OBJEXT): ui-gnome-callbacks.h
86 if HAVE_GLADE_WRITESOURCE
87 # touch(1) as 'ui-gnome-callbacks.h' are not overwritten if not changed:
88 $(GLADE_OUT): $(GLADE_IN)
89 sh $(top_srcdir)/macros/glade-w.sh $<
90 @touch ui-gnome-callbacks.h
95 ui-gnome-callbacks.c \
99 udpgate_LDADD+=$(POPT_LIBS) $(INTLLIBS)
101 # FIXME: /usr/include/gtk-2.0/gtk/gtkitemfactory.h:51: warning: function declaration isn't a prototype
102 # /* We use () here to mean unspecified arguments. This is deprecated
103 # * as of C99, but we can't change it without breaking compatibility.
104 # * (Note that if we are included from a C++ program () will mean
105 # * (void) so an explicit cast will be needed.)
107 # typedef void (*GtkItemFactoryCallback) ();
108 # We cannot put '-Wno-strict-prototypes' as we get always overriden by $(CFLAGS) !
109 udpgate_CFLAGS+=$(GNOMEUI_CFLAGS)
110 udpgate_LDADD +=$(GNOMEUI_LIBS)
112 bin_PROGRAMS+=udpgate
114 EXTRA_DIST+=udpgate.pod.pl.in
115 CLEANFILES+=udpgate.pod udpgate.1
117 udpgate_man_cond=udpgate.1
119 man_MANS=$(udpgate_man_cond)