Release: 1.0.3 -> 1.0.4cvs
[udpgate.git] / src / Makefile.am
index afc9da3..d092dfb 100644 (file)
@@ -34,6 +34,38 @@ GNOME_SRCS= \
                ui-gnome.c \
                ui-gnome.h \
                $(GLADE_OUT)
+gnome_fonts= \
+               l048013t.pfa
+gnome_cflags=-DGNOME_FONTS="$(gnome_fonts)"
+# FIXME: GNU make(1) dependency by $(addprefix ...)
+gnome_bundle_files= \
+               $(addprefix $(top_srcdir)/fonts/,$(gnome_fonts))
+endif
+
+if ENABLE_BUNDLE
+BUNDLE_SRCS= \
+               bundle.c \
+               bundle.h \
+               bundle-util.c \
+               bundle-util.h
+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) \
+               $(gnome_bundle_files)
+bundle.c: bundle.pl $(bundle_files)
+       $(PERL) bundle.pl $(bundle_files) >$@
+
+$(po_files):
+       $(MAKE) -C $(top_builddir)/$(POSUB)
+
 endif
 
 udpgate_SOURCES= \
@@ -45,14 +77,31 @@ udpgate_SOURCES= \
                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)
+               $(GNOME_SRCS) \
+               $(BUNDLE_SRCS)
 
 EXTRA_DIST+= \
                $(GLADE_IN)
 
-udpgate_CFLAGS=
+udpgate_CFLAGS= \
+               -DSYSCONFDIR="$(sysconfdir)" \
+               -DLOCALSTATEDIR="$(localstatedir)" \
+               -DCATALOGS="$(CATALOGS)" \
+               $(gnome_cflags)
 udpgate_LDADD=
 
 udpgate-ui-gnome-interface.$(OBJEXT): ui-gnome-callbacks.h