source: trunk/third/rep-gtk/Makefile.in @ 18408

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