[15285] | 1 | # Makefile.in -- input for rep-gtk Makefile |
---|
| 2 | # Copyright (C) 1998 John Harper <john@dcs.warwick.ac.uk> |
---|
[18408] | 3 | # $Id: Makefile.in,v 1.5 2003-01-05 00:31:59 ghudson Exp $ |
---|
[15285] | 4 | |
---|
| 5 | SGTK_SRCS = rep-types.c |
---|
| 6 | SGTK_OBJS = $(SGTK_SRCS:.c=.lo) |
---|
| 7 | |
---|
[18408] | 8 | SRCS = rep-gtk.c gtk-support.c gtk-compat.c glib-glue.c gdk-glue.c gtk-glue.c gdk-pixbuf-glue.c |
---|
[15285] | 9 | OBJS = $(SRCS:.c=.lo) |
---|
| 10 | |
---|
| 11 | LIBGLADE_SRCS = libglade-support.c libglade-glue.c |
---|
| 12 | LIBGLADE_OBJS = libglade-support.lo libglade-glue.lo |
---|
| 13 | GNOME_LIBGLADE_OBJS = libglade-gnome-support.lo libglade-glue.lo |
---|
| 14 | |
---|
| 15 | GNOMELIB_SRCS = gnomelib-support.c gnomelib-glue.c |
---|
| 16 | GNOMELIB_OBJS = $(GNOMELIB_SRCS:.c=.lo) |
---|
| 17 | |
---|
| 18 | GNOMEUI_SRCS = gnomeui-support.c gnomeui-glue.c |
---|
| 19 | GNOMEUI_OBJS = $(GNOMEUI_SRCS:.c=.lo) |
---|
| 20 | |
---|
| 21 | GNOME_CANVAS_SRCS = gnome-canvas-support.c gnome-canvas-glue.c |
---|
| 22 | GNOME_CANVAS_OBJS = $(GNOME_CANVAS_SRCS:.c=.lo) |
---|
| 23 | |
---|
| 24 | OUT = @OUT@ |
---|
| 25 | OUT_DESTS = $(foreach x, $(OUT), gui/$(x)) |
---|
| 26 | |
---|
| 27 | version=@version@ |
---|
| 28 | host_type=@host@ |
---|
| 29 | SHELL=/bin/sh |
---|
| 30 | |
---|
| 31 | repexecdir=@REP_EXECDIR@ |
---|
| 32 | include $(repexecdir)/rules.mk |
---|
| 33 | |
---|
| 34 | CC=@CC@ |
---|
| 35 | CPPFLAGS=@CPPFLAGS@ |
---|
| 36 | CFLAGS=@CFLAGS@ |
---|
| 37 | LDFLAGS=@LDFLAGS@ |
---|
| 38 | override CPPFLAGS += -DHAVE_CONFIG_H -I. |
---|
[18408] | 39 | override CFLAGS += @GLIB_CFLAGS@ @GTK_CFLAGS@ @REP_CFLAGS@ @LIBGLADE_CFLAGS@ @GNOME_CFLAGS@ @GNOMEUI_CFLAGS@ @GNOME_CANVAS_CFLAGS@ @GDK_PIXBUF_CFLAGS@ |
---|
[15285] | 40 | REP_SGTK_LIBS=@GLIB_LIBS@ @LIBS@ |
---|
| 41 | REP_GTK_LIBS=@GTK_LIBS@ @LIBS@ |
---|
| 42 | REP_LIBGLADE_LIBS=@LIBGLADE_LIBS@ @LIBS@ |
---|
| 43 | REP_GNOMELIB_LIBS=@GNOME_LIBS@ @LIBS@ |
---|
| 44 | REP_GNOMEUI_LIBS=@GNOMEUI_LIBS@ @LIBS@ |
---|
[18408] | 45 | REP_GNOME_CANVAS_LIBS=@GNOME_CANVAS_LIBS@ @LIBS@ |
---|
[15285] | 46 | |
---|
| 47 | INSTALL=@INSTALL@ |
---|
| 48 | INSTALL_DATA=@INSTALL_DATA@ |
---|
| 49 | INSTALL_PROGRAM=@INSTALL_PROGRAM@ |
---|
| 50 | |
---|
| 51 | DESTDIR= |
---|
[17377] | 52 | installdir=$(repexecdir) |
---|
[15285] | 53 | |
---|
| 54 | top_srcdir=@top_srcdir@ |
---|
| 55 | top_builddir=. |
---|
| 56 | VPATH=@top_srcdir@:. |
---|
| 57 | |
---|
| 58 | .PHONY: clean realclean install |
---|
| 59 | |
---|
| 60 | all : build_dirs $(OUT) |
---|
| 61 | |
---|
[18408] | 62 | gtk-2/types.la : $(SGTK_OBJS) |
---|
[15285] | 63 | $(rep_DL_LD) $(CPPFLAGS) $(CFLAGS) -o $@ $^ $(LDFLAGS) $(REP_SGTK_LIBS) |
---|
| 64 | |
---|
[18408] | 65 | gtk-2/gtk.la : $(OBJS) |
---|
[15285] | 66 | $(rep_DL_LD) $(CPPFLAGS) $(CFLAGS) -o $@ $^ $(LDFLAGS) $(REP_GTK_LIBS) |
---|
| 67 | |
---|
[18408] | 68 | gtk-2/libglade.la : $(LIBGLADE_OBJS) |
---|
[15285] | 69 | $(rep_DL_LD) $(CPPFLAGS) $(CFLAGS) -o $@ $^ $(LDFLAGS) $(REP_LIBGLADE_LIBS) |
---|
| 70 | |
---|
[18408] | 71 | gtk-2/gnome-lib.la : $(GNOMELIB_OBJS) |
---|
[15285] | 72 | $(rep_DL_LD) $(CPPFLAGS) $(CFLAGS) -o $@ $^ $(LDFLAGS) $(REP_GNOMELIB_LIBS) |
---|
| 73 | |
---|
[18408] | 74 | gtk-2/gnome-ui.la : $(GNOMEUI_OBJS) |
---|
[15285] | 75 | $(rep_DL_LD) $(CPPFLAGS) $(CFLAGS) -o $@ $^ $(LDFLAGS) $(REP_GNOMEUI_LIBS) |
---|
| 76 | |
---|
[18408] | 77 | gtk-2/gnome-canvas.la : $(GNOME_CANVAS_OBJS) |
---|
| 78 | $(rep_DL_LD) $(CPPFLAGS) $(CFLAGS) -o $@ $^ $(LDFLAGS) $(REP_GNOME_CANVAS_LIBS) |
---|
[15285] | 79 | |
---|
| 80 | %-glue.c : %.defs build-gtk.jlc |
---|
| 81 | rep build-gtk.jlc -f build-gtk-batch $< $@ |
---|
| 82 | |
---|
| 83 | build-gtk.jlc : build-gtk.jl |
---|
| 84 | rep compiler -f compile-batch $< |
---|
| 85 | |
---|
| 86 | libglade-gnome-support.lo : libglade-support.c |
---|
| 87 | $(rep_LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) \ |
---|
| 88 | @GNOME_LIBGLADE_CFLAGS@ -DGLADE_GNOME=1 $< -o $@ |
---|
| 89 | |
---|
[18408] | 90 | install : all installdirs |
---|
[15285] | 91 | set -e; for f in $(OUT); do \ |
---|
[18408] | 92 | $(rep_DL_INSTALL) $$f $(DESTDIR)$(installdir)/gui/gtk-2; \ |
---|
[15285] | 93 | done |
---|
| 94 | set -e; for f in $(OUT_DESTS); do \ |
---|
| 95 | case $$f in \ |
---|
[18408] | 96 | gui/gtk-2/gtk.la|gui/gtk-2/gnome-lib.la) \ |
---|
| 97 | printf "\nrep_requires='gui.gtk-2.types'\n" >>$(DESTDIR)$(installdir)/$$f ;; \ |
---|
| 98 | gui/gkt-2/libglade.la|gui/gtk-2/gnome-ui.la|gui/gtk-2/gdk-pixbuf.la) \ |
---|
| 99 | printf "\nrep_requires='gui.gtk-2.gtk'\n" >>$(DESTDIR)$(installdir)/$$f ;; \ |
---|
| 100 | gui/gtk-2/gnome-canvas*.la) \ |
---|
| 101 | printf "\nrep_requires='gui.gtk-2.gnome-ui'\n" >>$(DESTDIR)$(installdir)/$$f ;; \ |
---|
[15285] | 102 | esac; \ |
---|
| 103 | done |
---|
| 104 | for f in $(OUT_DESTS); do \ |
---|
| 105 | printf "\nrep_open_globally=yes\n" >>$(DESTDIR)$(installdir)/$$f; \ |
---|
| 106 | done |
---|
| 107 | $(rep_INSTALL_ALIASES) -c . $(DESTDIR)$(installdir) |
---|
| 108 | |
---|
| 109 | installdirs : $(top_srcdir)/mkinstalldirs |
---|
[18408] | 110 | $(SHELL) $(top_srcdir)/mkinstalldirs $(DESTDIR)$(installdir)/gui/gtk-2 |
---|
[15285] | 111 | |
---|
| 112 | uninstall : |
---|
| 113 | $(rep_DL_UNINSTALL) $(DESTDIR)$(installdir)/$(OUT) |
---|
| 114 | |
---|
| 115 | clean : |
---|
| 116 | rm -f *-glue.c *~ core *.jlc *.o *.lo *.la |
---|
[18408] | 117 | rm -rf gtk-2 |
---|
[15285] | 118 | |
---|
| 119 | realclean : clean |
---|
| 120 | rm -f Makefile config.cache config.log config.status config.h |
---|
| 121 | rm -f rep-gtk.spec |
---|
| 122 | |
---|
| 123 | cvsclean : realclean |
---|
| 124 | rm -f aclocal.m4 configure |
---|
| 125 | |
---|
[18408] | 126 | build_dirs : gtk-2 |
---|
[15285] | 127 | |
---|
[18408] | 128 | gtk-2 : |
---|
| 129 | mkdir gtk-2 |
---|
[15285] | 130 | |
---|
[18408] | 131 | # hand-needed dependences |
---|
| 132 | gtk-glue.c : gtk.defs gtktext.defs build-gtk.jlc |
---|