X-Git-Url: http://git.jankratochvil.net/?a=blobdiff_plain;f=src%2FMakefile.am;h=fdadb7d76857220530df19b047aa6ed149fc6950;hb=5425eb2a5ef6df5787d8c2af58854620d8e7c6ef;hp=93b4ca472534e5d70dc6c756d8995b7c2378d24d;hpb=22f7a698423902635411381febc7f760a7e2229e;p=udpgate.git diff --git a/src/Makefile.am b/src/Makefile.am index 93b4ca4..fdadb7d 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,6 +1,6 @@ # $Id$ -# automake source for UDP forwarder Makefile -# Copyright (C) 2004 Jan Kratochvil +# 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 @@ -29,22 +29,64 @@ GLADE_OUT= \ ui-gnome-support.c \ ui-gnome-support.h -udpforward_SOURCES= \ +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 + +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 +endif + +udpgate_SOURCES= \ + configuration.c \ + configuration.h \ main.c \ main.h \ network.c \ network.h \ - ui-gnome.c \ - ui-gnome.h \ - $(GLADE_OUT) + packet.c \ + packet.h \ + startup-chkconfig.c \ + startup-chkconfig.h \ + startup.c \ + startup.h \ + ui-line.c \ + ui-line.h \ + $(GNOME_SRCS) \ + $(BUNDLE_SRCS) EXTRA_DIST+= \ $(GLADE_IN) -udpforward_CFLAGS= -udpforward_LDADD= +udpgate_CFLAGS= \ + -DSYSCONFDIR="$(sysconfdir)" \ + -DCATALOGS="$(CATALOGS)" +udpgate_LDADD= -udpforward-ui-gnome-interface.$(OBJEXT): ui-gnome-callbacks.h +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: @@ -59,7 +101,7 @@ CLEANFILES+= \ ui-gnome.glade.bak \ ui-gnome.gladep.bak -udpforward_LDADD+= $(POPT_LIBS) $(INTLLIBS) +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 @@ -69,14 +111,14 @@ udpforward_LDADD+= $(POPT_LIBS) $(INTLLIBS) # */ # typedef void (*GtkItemFactoryCallback) (); # We cannot put '-Wno-strict-prototypes' as we get always overriden by $(CFLAGS) ! -udpforward_CFLAGS+=$(GNOMEUI_CFLAGS) -udpforward_LDADD +=$(GNOMEUI_LIBS) +udpgate_CFLAGS+=$(GNOMEUI_CFLAGS) +udpgate_LDADD +=$(GNOMEUI_LIBS) -bin_PROGRAMS+=udpforward +bin_PROGRAMS+=udpgate -EXTRA_DIST+=udpforward.pod.pl.in -CLEANFILES+=udpforward.pod udpforward.1 +EXTRA_DIST+=udpgate.pod.pl.in +CLEANFILES+=udpgate.pod udpgate.1 if ENABLE_MAN_PAGES -udpforward_man_cond=udpforward.1 +udpgate_man_cond=udpgate.1 endif -man_MANS=$(udpforward_man_cond) +man_MANS=$(udpgate_man_cond)