9007261d39afd45c6b3191c14b3c4da365698c42
[udpgate.git] / src / Makefile.am
1 # $Id$
2 # automake source for UDP forwarder Makefile
3 # Copyright (C) 2004 Jan Kratochvil <project-udpforward@jankratochvil.net>
4
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
8
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.
13
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
17
18
19 include $(top_srcdir)/Makefile-head.am
20
21 GLADE_IN= \
22                 ui-gnome.glade \
23                 ui-gnome.gladep
24
25 GLADE_OUT= \
26                 ui-gnome-interface.c \
27                 ui-gnome-interface.h \
28                 ui-gnome-callbacks.h \
29                 ui-gnome-support.c \
30                 ui-gnome-support.h
31
32 udpforward_SOURCES= \
33                 main.c \
34                 main.h \
35                 ui-gnome.c \
36                 ui-gnome.h \
37                 $(GLADE_OUT)
38
39 EXTRA_DIST+= \
40                 $(GLADE_IN)
41
42 udpforward_CFLAGS=
43 udpforward_LDADD=
44
45 udpforward-ui-gnome-interface.$(OBJEXT): ui-gnome-callbacks.h
46
47 if HAVE_GLADE_WRITESOURCE
48 # touch(1) as 'ui-gnome-callbacks.h' are not overwritten if not changed:
49 $(GLADE_OUT): $(GLADE_IN)
50         sh $(top_srcdir)/macros/glade-w.sh $<
51         @touch ui-gnome-callbacks.h
52
53 endif
54
55 CLEANFILES+= \
56                 ui-gnome-callbacks.c \
57                 ui-gnome.glade.bak \
58                 ui-gnome.gladep.bak
59
60 udpforward_LDADD+= $(POPT_LIBS) $(INTLLIBS)
61
62 # FIXME: /usr/include/gtk-2.0/gtk/gtkitemfactory.h:51: warning: function declaration isn't a prototype
63 # /* We use () here to mean unspecified arguments. This is deprecated
64 #  * as of C99, but we can't change it without breaking compatibility.
65 #  * (Note that if we are included from a C++ program () will mean
66 #  * (void) so an explicit cast will be needed.)
67 #  */
68 # typedef void  (*GtkItemFactoryCallback)  ();
69 # We cannot put '-Wno-strict-prototypes' as we get always overriden by $(CFLAGS) !
70 udpforward_CFLAGS+=$(GNOMEUI_CFLAGS)
71 udpforward_LDADD +=$(GNOMEUI_LIBS)
72
73 bin_PROGRAMS+=udpforward
74
75 EXTRA_DIST+=udpforward.pod.pl.in
76 CLEANFILES+=udpforward.pod udpforward.1
77 if ENABLE_MAN_PAGES
78 udpforward_man_cond=udpforward.1
79 endif
80 man_MANS=$(udpforward_man_cond)