ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/Makefile.in
(Generate patch)

Comparing rxvt-unicode/src/Makefile.in (file contents):
Revision 1.2 by pcg, Mon Nov 24 17:31:27 2003 UTC vs.
Revision 1.19 by root, Fri Aug 20 02:19:38 2004 UTC

1# $Id: Makefile.in,v 1.2 2003/11/24 17:31:27 pcg Exp $ 1# $Id: Makefile.in,v 1.19 2004/08/20 02:19:38 root Exp $
2@MCOMMON@ 2@MCOMMON@
3 3
4LINT = lint -DNARROWPROTO=1 $(XINC) -chapbxz 4LINT = lint -DNARROWPROTO=1 $(XINC) -chapbxz
5 5
6srcdir = @srcdir@ 6srcdir = @srcdir@
10top_builddir = .. 10top_builddir = ..
11basedir = .. 11basedir = ..
12thisdir = src 12thisdir = src
13MKDIR = @top_srcdir@/autoconf/mkinstalldirs 13MKDIR = @top_srcdir@/autoconf/mkinstalldirs
14 14
15SUPLIB = -lsupc++
16
17# for developers: the following debug options may be used 15# for developers: the following debug options may be used
18# -DDEBUG_CMD -DDEBUG_MAIN -DDEBUG_MENU -DDEBUG_MENUARROWS 16# -DDEBUG_CMD -DDEBUG_MAIN -DDEBUG_MENU -DDEBUG_MENUARROWS
19# -DDEBUG_MENUBAR_STACKING -DDEBUG_MENU_LAYOUT -DDEBUG_RESOURCES 17# -DDEBUG_MENUBAR_STACKING -DDEBUG_MENU_LAYOUT -DDEBUG_RESOURCES
20# -DDEBUG_SCREEN -DDEBUG_SEARCH_PATH -DDEBUG_SELECT -DDEBUG_SIZE 18# -DDEBUG_SEARCH_PATH -DDEBUG_SIZE -DDEBUG_TTY -DDEBUG_TTYMODE
21# -DDEBUG_TTY -DDEBUG_TTYMODE -DDEBUG_X
22DEBUG=-DDEBUG_STRICT @DEBUG@ 19DEBUG=-DDEBUG_STRICT @DEBUG@
23 20
24first_rule: all 21first_rule: all
25dummy: 22dummy:
26 23
27LIBSRCS = command.C defaultfont.C graphics.C grkelot.C init.C logging.C \ 24LIBSRCS = command.C rxvtfont.C init.C logging.C \
28 main.C menubar.C misc.C netdisp.C ptytty.C screen.C scrollbar.C \ 25 main.C menubar.C misc.C netdisp.C ptytty.C screen.C scrollbar.C \
29 scrollbar-rxvt.C scrollbar-next.C scrollbar-xterm.C strings.C \ 26 scrollbar-rxvt.C scrollbar-next.C scrollbar-xterm.C strings.C \
30 xdefaults.C xpm.C encoding.C rxvtcolor.C rxvtvec.C 27 xdefaults.C xpm.C encoding.C rxvttoolkit.C rxvtutil.C iom.C \
28 scrollbar-plain.C
31 29
32SRCS = rxvt.C $(LIBSRCS) 30SRCS = rxvt.C $(LIBSRCS)
33 31
34HDRS = command.h defaultfont.h feature.h grkelot.h init.h logging.h \ 32HDRS = command.h rxvtfont.h feature.h init.h logging.h \
35 menubar.h netdisp.h protos.h rxvt.h rxvtgrx.h version.h encoding.h rxvtvec.h 33 menubar.h netdisp.h rxvt.h rxvtgrx.h version.h encoding.h \
34 rxvtutil.h iom.h iom_conf.h
36 35
37EXTRAHDRS = rxvtlib.h rxvtdaemon.h 36EXTRAHDRS = rxvtlib.h rxvtdaemon.h
38 37
39OBJS = command.o defaultfont.o init.o graphics.o grkelot.o logging.o \ 38OBJS = command.o rxvtfont.o init.o logging.o \
40 main.o menubar.o misc.o netdisp.o ptytty.o screen.o \ 39 main.o menubar.o misc.o netdisp.o ptytty.o screen.o \
41 scrollbar.o scrollbar-next.o scrollbar-rxvt.o scrollbar-xterm.o \ 40 scrollbar.o scrollbar-next.o scrollbar-rxvt.o scrollbar-xterm.o scrollbar-plain.o \
42 strings.o xdefaults.o xpm.o rxvt.o encoding.o rxvtcolor.o rxvtvec.o 41 strings.o xdefaults.o xpm.o rxvt.o encoding.o rxvttoolkit.o rxvtutil.o iom.o
43LIBOBJS = command.lo defaultfont.lo init.lo graphics.lo grkelot.lo logging.lo \ 42LIBOBJS = command.lo rxvtfont.lo init.lo logging.lo \
44 main.lo menubar.lo misc.lo netdisp.lo ptytty.lo screen.lo \ 43 main.lo menubar.lo misc.lo netdisp.lo ptytty.lo screen.lo \
45 scrollbar.lo scrollbar-next.lo scrollbar-rxvt.lo scrollbar-xterm.lo \ 44 scrollbar.lo scrollbar-next.lo scrollbar-rxvt.lo scrollbar-xterm.lo scrollbar-plain.lo \
46 strings.lo xdefaults.lo xpm.lo encoding.lo rxvt.lo rxvtcolor.lo rxvtvec.lo 45 strings.lo xdefaults.lo xpm.lo encoding.lo rxvt.lo rxvttoolkit.lo rxvtutil.lo iom.lo
47 46
48LIBVERSION = @LIBVERSION@ 47LIBVERSION = @LIBVERSION@
49INSTALL_LIBRXVT = @INSTALL_LIBRXVT@ 48INSTALL_LIBRXVT = @INSTALL_LIBRXVT@
50 49
51RXVT_BASENAME=`$(ECHO) $(RXVTNAME)|$(SED) 's/$(EXEEXT)$$//'|$(SED) '$(transform)'` 50RXVT_BASENAME=`$(ECHO) $(RXVTNAME)|$(SED) 's/$(EXEEXT)$$//'|$(SED) '$(transform)'`
52RXVT_BINNAME=$(DESTDIR)$(bindir)/$(RXVT_BASENAME)$(EXEEXT) 51RXVT_BINNAME=$(DESTDIR)$(bindir)/$(RXVT_BASENAME)$(EXEEXT)
53RXVT_VERNAME=$(DESTDIR)$(bindir)/$(RXVT_BASENAME)-$(VERSION)$(EXEEXT) 52RXVTC_BINNAME=$(DESTDIR)$(bindir)/$(RXVT_BASENAME)c$(EXEEXT)
53RXVTD_BINNAME=$(DESTDIR)$(bindir)/$(RXVT_BASENAME)d$(EXEEXT)
54RXVT_OLDNAME=$(DESTDIR)$(bindir)/$(RXVT_BASENAME)-old$(EXEEXT) 54RXVT_OLDNAME=$(DESTDIR)$(bindir)/$(RXVT_BASENAME)-old$(EXEEXT)
55 55
56EXTPROS = command.extpro defaultfont.extpro graphics.extpro grkelot.extpro \ 56INTPROS = rxvtfont.intpro logging.intpro main.intpro misc.intpro \
57 init.extpro logging.extpro main.extpro menubar.extpro misc.extpro \ 57 ptytty.intpro xpm.intpro
58 netdisp.extpro ptytty.extpro screen.extpro scrollbar.extpro \
59 scrollbar-rxvt.extpro scrollbar-next.extpro scrollbar-xterm.extpro \
60 strings.extpro xdefaults.extpro xpm.extpro
61 58
62INTPROS = command.intpro defaultfont.intpro graphics.intpro grkelot.intpro \
63 init.intpro logging.intpro main.intpro menubar.intpro misc.intpro \
64 netdisp.intpro ptytty.intpro screen.intpro scrollbar.intpro \
65 scrollbar-rxvt.intpro scrollbar-next.intpro scrollbar-xterm.intpro \
66 strings.intpro xdefaults.intpro xpm.intpro
67
68DEPS = rxvt.h rxvtlib.h ${basedir}/config.h feature.h .protos 59DEPS = rxvt.h rxvtlib.h ${basedir}/config.h feature.h rxvttoolkit.h
69 60
70# 61#
71# Distribution variables 62# Distribution variables
72# 63#
73 64
74DIST = $(HDRS) $(SRCS) Makefile.in gcc-Wall rxvtlib.h.in .indent.pro \ 65DIST = $(HDRS) $(SRCS) Makefile.in gcc-Wall rxvtlib.h.in $(INTPROS)
75 makeintprotos-awk makeextprotos-awk $(INTPROS) $(EXTPROS) .protos
76 66
77.SUFFIXES: .C .o .extpro .intpro .lo 67.SUFFIXES: .C .o .intpro .lo
78 68
79#------------------------------------------------------------------------- 69#-------------------------------------------------------------------------
80# inference rules 70# inference rules
81.C.o: 71.C.o:
82 $(COMPILE) -c $< 72 $(COMPILE) -c $<
94 @$(RMF) $@.tmp 84 @$(RMF) $@.tmp
95 @$(AWK) -f $(srcdir)/makeintprotos-awk $< > $@.tmp 85 @$(AWK) -f $(srcdir)/makeintprotos-awk $< > $@.tmp
96 @if $(CMP) -s $@ $@.tmp ; then : ; else $(ECHO) "$(AWK) -f $(srcdir)/makeintprotos-awk $< > $@"; $(CP) $@.tmp $@; fi 86 @if $(CMP) -s $@ $@.tmp ; then : ; else $(ECHO) "$(AWK) -f $(srcdir)/makeintprotos-awk $< > $@"; $(CP) $@.tmp $@; fi
97 @$(RMF) $@.tmp 87 @$(RMF) $@.tmp
98 88
99.C.extpro:
100 @$(RMF) $@.tmp
101 @$(AWK) -f $(srcdir)/makeextprotos-awk $< > $@.tmp
102 @if $(CMP) -s $@ $@.tmp ; then : ; else $(ECHO) "$(AWK) -f $(srcdir)/makeextprotos-awk $< > $@"; $(CP) $@.tmp $@; fi
103 @$(RMF) $@.tmp
104#------------------------------------------------------------------------- 89#-------------------------------------------------------------------------
90
105all: allbin 91all: allbin
106 92
107rxvt: version.h rxvt.o librxvt.la 93rxvt: version.h rxvt.o librxvt.la
108 $(LIBTOOL) --mode=link $(LINK) rxvt.o librxvt.la $(LIBS) $(XLIB) $(DLIB) $(SUPLIB) -o $@ 94 $(LIBTOOL) --mode=link $(LINK) rxvt.o librxvt.la $(LIBS) $(XLIB) $(DLIB) -o $@
109 95
110rxvtd: version.h rxvtd.o librxvt.la iom.o rxvtdaemon.o 96rxvtd: version.h rxvtd.o librxvt.la rxvtdaemon.o
111 $(LIBTOOL) --mode=link $(LINK) rxvtd.o rxvtdaemon.o iom.o librxvt.la $(LIBS) $(XLIB) $(DLIB) $(SUPLIB) -o $@ 97 $(LIBTOOL) --mode=link $(LINK) rxvtd.o rxvtdaemon.o librxvt.la $(LIBS) $(XLIB) $(DLIB) -o $@
112 98
113rxvtc: version.h rxvtc.o rxvtdaemon.o 99rxvtc: version.h rxvtc.o rxvtdaemon.o
114 $(LIBTOOL) --mode=link $(LINK) rxvtc.o rxvtdaemon.o $(LIBS) $(DLIB) $(SUPLIB) -o $@ 100 $(LIBTOOL) --mode=link $(LINK) rxvtc.o rxvtdaemon.o $(LIBS) $(DLIB) -o $@
115
116.protos: $(EXTPROS)
117 @$(RMF) .protos
118 date >.protos
119 101
120librxvt.la: $(LIBOBJS) 102librxvt.la: $(LIBOBJS)
121 $(LIBTOOL) --mode=link $(LINK) -rpath $(libdir) -version-info $(LIBVERSION) $(LIBOBJS) $(LIBS) $(SUPLIB) -o $@ 103 $(LIBTOOL) --mode=link $(LINK) -rpath $(libdir) -version-info $(LIBVERSION) $(LIBOBJS) $(LIBS) -o $@
104
122#------------------------------------------------------------------------- 105#-------------------------------------------------------------------------
106
123tags: $(SRCS) $(HDRS) $(EXTRAHDRS) 107tags: $(SRCS) $(HDRS) $(EXTRAHDRS)
124 ctags $(SRCS) $(HDRS) $(EXTRAHDRS) 108 ctags $(SRCS) $(HDRS) $(EXTRAHDRS)
125 109
126allbin: .protos rxvt rxvtd rxvtc 110allbin: rxvt rxvtd rxvtc
127 111
128alldoc: 112alldoc:
129 113
130clean: 114clean:
131 $(RMF) rxvt core a.out *.o *.lo *.bak *~ *.intpro *.extpro .libs/* librxvt.la tmpproto .protos *.tmp 115 $(RMF) rxvt rxvtc rxvtd core a.out *.o *.lo *.bak *~ *.intpro .libs/* librxvt.la tmpproto *.tmp
132 116
133realclean: clean 117realclean: clean
134 $(RMF) tags librxvt.h 118 $(RMF) tags librxvt.h
135 119
136cleandir: realclean 120cleandir: realclean
145 $(ECHO) "$(LIBTOOL) --mode=install $(INSTALL_DATA) rxvtlib.h $(DESTDIR)$(includedir)/rxvtlib.h"; \ 129 $(ECHO) "$(LIBTOOL) --mode=install $(INSTALL_DATA) rxvtlib.h $(DESTDIR)$(includedir)/rxvtlib.h"; \
146 $(LIBTOOL) --mode=install $(INSTALL_DATA) rxvtlib.h $(DESTDIR)$(includedir)/rxvtlib.h; \ 130 $(LIBTOOL) --mode=install $(INSTALL_DATA) rxvtlib.h $(DESTDIR)$(includedir)/rxvtlib.h; \
147 $(ECHO) "$(LIBTOOL) --mode=install $(INSTALL_PROGRAM) librxvt.la $(DESTDIR)$(libdir)/librxvt.la"; \ 131 $(ECHO) "$(LIBTOOL) --mode=install $(INSTALL_PROGRAM) librxvt.la $(DESTDIR)$(libdir)/librxvt.la"; \
148 $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) librxvt.la $(DESTDIR)$(libdir)/librxvt.la; \ 132 $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) librxvt.la $(DESTDIR)$(libdir)/librxvt.la; \
149 fi 133 fi
150 @if test -f $(RXVT_BINNAME); then \
151 $(ECHO) "$(RMF) $(RXVT_OLDNAME)"; \
152 $(RMF) $(RXVT_OLDNAME); \ 134 $(RMF) $(RXVT_BINNAME)
153 $(ECHO) "$(MV) $(RXVT_BINNAME) $(RXVT_OLDNAME)"; \ 135 $(RMF) $(RXVTC_BINNAME)
154 $(MV) $(RXVT_BINNAME) $(RXVT_OLDNAME); \ 136 $(RMF) $(RXVTD_BINNAME)
155 fi
156 @$(ECHO) "$(LIBTOOL) --mode=install $(INSTALL_PROGRAM) rxvt $(RXVT_VERNAME)"
157 @$(LIBTOOL) --mode=install $(INSTALL_PROGRAM) rxvt $(RXVT_VERNAME) 137 $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) rxvt $(RXVT_BINNAME)
158 @$(ECHO) "$(LN) $(RXVT_VERNAME) $(RXVT_BINNAME)" 138 $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) rxvtc $(RXVTC_BINNAME)
159 @$(LN) $(RXVT_VERNAME) $(RXVT_BINNAME) 139 $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) rxvtd $(RXVTD_BINNAME)
160 140
161uninstall: 141uninstall:
162 @$(ECHO) $(RMF) $(RXVT_VERNAME) 142 @$(ECHO) $(RMF) $(RXVT_VERNAME)
163 @$(RMF) $(RXVT_VERNAME) 143 @$(RMF) $(RXVT_VERNAME)
164 @$(ECHO) "$(LIBTOOL) --mode=uninstall $(RMF) $(RXVT_BINNAME)" 144 @$(ECHO) "$(LIBTOOL) --mode=uninstall $(RMF) $(RXVT_BINNAME)"
171 fi 151 fi
172 152
173distdirs: 153distdirs:
174 mkdir $(basedir)/../$(VERNAME)/$(thisdir) 154 mkdir $(basedir)/../$(VERNAME)/$(thisdir)
175 155
176distcopy: .protos $(INTPROS) 156distcopy: $(INTPROS)
177 $(CP) -p $(DIST) $(basedir)/../$(VERNAME)/$(thisdir) 157 $(CP) -p $(DIST) $(basedir)/../$(VERNAME)/$(thisdir)
178 158
179# ----------------------------------------------------------------------- 159# -----------------------------------------------------------------------
180# DO NOT DELETE: nice dependency list follows 160# DO NOT DELETE: nice dependency list follows
181# 161#
182 162
183defaultfont.h: encoding.h rxvtvec.h 163rxvtfont.h: encoding.h rxvtutil.h
184rxvtlib.h: rxvtcolor.h defaultfont.h 164rxvtlib.h: rxvttoolkit.h rxvtfont.h
165rxvtdaemon.o: rxvtdaemon.C $(DEPS) rxvtdaemon.h
166rxvtd.o: rxvtd.C $(DEPS) rxvtdaemon.h rxvtutil.h
167rxvtc.o: rxvtc.C $(DEPS) rxvtdaemon.h rxvtutil.h
185 168
186command.o: command.C $(DEPS) command.intpro command.h version.h 169command.o: command.C $(DEPS) command.h version.h
187defaultfont.o: defaultfont.C $(DEPS) defaultfont.intpro defaultfont.h 170rxvtfont.o: rxvtfont.C $(DEPS) rxvtfont.h
188graphics.o: graphics.C $(DEPS) graphics.intpro
189grkelot.o: grkelot.C $(DEPS) grkelot.intpro grkelot.h
190init.o: init.C $(DEPS) init.intpro init.h defaultfont.h 171init.o: init.C $(DEPS) init.h rxvtfont.h
191logging.o: logging.C $(DEPS) logging.intpro logging.h 172logging.o: logging.C $(DEPS) logging.intpro logging.h
192main.o: main.C $(DEPS) main.intpro 173main.o: main.C $(DEPS) main.intpro
193menubar.o: menubar.C $(DEPS) menubar.intpro menubar.h version.h 174menubar.o: menubar.C $(DEPS) menubar.h version.h
194misc.o: misc.C $(DEPS) misc.intpro 175misc.o: misc.C $(DEPS) misc.intpro
195netdisp.o: netdisp.C $(DEPS) netdisp.intpro netdisp.h 176netdisp.o: netdisp.C $(DEPS) netdisp.h
196ptytty.o: ptytty.C $(DEPS) ptytty.intpro 177ptytty.o: ptytty.C $(DEPS) ptytty.intpro
197rxvt.o: rxvt.C $(DEPS) 178rxvt.o: rxvt.C $(DEPS)
198rxvtd.o: rxvtd.C $(DEPS) rxvtdaemon.h
199screen.o: screen.C $(DEPS) screen.intpro defaultfont.h 179screen.o: screen.C $(DEPS) rxvtfont.h
200scrollbar.o: scrollbar.C $(DEPS) scrollbar.intpro 180scrollbar.o: scrollbar.C $(DEPS)
201scrollbar-rxvt.o: scrollbar-rxvt.C $(DEPS) scrollbar-rxvt.intpro 181scrollbar-rxvt.o: scrollbar-rxvt.C $(DEPS)
202scrollbar-next.o: scrollbar-next.C $(DEPS) scrollbar-next.intpro 182scrollbar-next.o: scrollbar-next.C $(DEPS)
203scrollbar-xterm.o: scrollbar-xterm.C $(DEPS) scrollbar-xterm.intpro 183scrollbar-xterm.o: scrollbar-xterm.C $(DEPS)
184scrollbar-plain.o: scrollbar-plain.C $(DEPS)
204strings.o: strings.C $(DEPS) strings.intpro 185strings.o: strings.C $(DEPS)
205xdefaults.o: xdefaults.C $(DEPS) xdefaults.intpro version.h 186xdefaults.o: xdefaults.C $(DEPS) version.h
206xpm.o: xpm.C $(DEPS) xpm.intpro 187xpm.o: xpm.C $(DEPS) xpm.intpro
207encoding.o: encoding.C $(DEPS) encoding.h 188encoding.o: encoding.C $(DEPS) encoding.h
208rxvtcolor.o: rxvtcolor.C $(DEPS) 189rxvttoolkit.o: rxvttoolkit.C $(DEPS)
190iom.o: iom.C $(DEPS) iom.h
209 191
210command.lo: command.C $(DEPS) command.intpro command.h version.h 192command.lo: command.C $(DEPS) version.h
211defaultfont.lo: defaultfont.C $(DEPS) defaultfont.intpro defaultfont.h encoding.h 193rxvtfont.lo: rxvtfont.C $(DEPS) rxvtfont.h encoding.h
212graphics.lo: graphics.C $(DEPS) graphics.intpro defaultfont.h
213grkelot.lo: grkelot.C $(DEPS) grkelot.intpro grkelot.h
214init.lo: init.C $(DEPS) init.intpro init.h 194init.lo: init.C $(DEPS) init.intpro init.h
215logging.lo: logging.C $(DEPS) logging.intpro logging.h 195logging.lo: logging.C $(DEPS) logging.intpro logging.h
216main.lo: main.C $(DEPS) main.intpro 196main.lo: main.C $(DEPS) main.intpro
217menubar.lo: menubar.C $(DEPS) menubar.intpro menubar.h version.h 197menubar.lo: menubar.C $(DEPS) version.h
218misc.lo: misc.C $(DEPS) misc.intpro 198misc.lo: misc.C $(DEPS) misc.intpro
219netdisp.lo: netdisp.C $(DEPS) netdisp.intpro netdisp.h 199netdisp.lo: netdisp.C $(DEPS) netdisp.h
220ptytty.lo: ptytty.C $(DEPS) ptytty.intpro 200ptytty.lo: ptytty.C $(DEPS) ptytty.intpro
221rxvt.lo: rxvt.C $(DEPS) 201rxvt.lo: rxvt.C $(DEPS)
222screen.lo: screen.C $(DEPS) screen.intpro defaultfont.h 202screen.lo: screen.C $(DEPS) rxvtfont.h
223scrollbar.lo: scrollbar.C $(DEPS) scrollbar.intpro 203scrollbar.lo: scrollbar.C $(DEPS)
224scrollbar-rxvt.lo: scrollbar-rxvt.C $(DEPS) scrollbar-rxvt.intpro 204scrollbar-rxvt.lo: scrollbar-rxvt.C $(DEPS)
225scrollbar-next.lo: scrollbar-next.C $(DEPS) scrollbar-next.intpro 205scrollbar-next.lo: scrollbar-next.C $(DEPS)
226scrollbar-xterm.lo: scrollbar-xterm.C $(DEPS) scrollbar-xterm.intpro 206scrollbar-xterm.lo: scrollbar-xterm.C $(DEPS)
207scrollbar-plain.lo: scrollbar-plain.C $(DEPS)
227strings.lo: strings.C $(DEPS) strings.intpro 208strings.lo: strings.C $(DEPS)
228xdefaults.lo: xdefaults.C $(DEPS) xdefaults.intpro version.h 209xdefaults.lo: xdefaults.C $(DEPS) version.h
229xpm.lo: xpm.C $(DEPS) xpm.intpro 210xpm.lo: xpm.C $(DEPS) xpm.intpro
230encoding.lo: encoding.C $(DEPS) encoding.h 211encoding.lo: encoding.C $(DEPS) encoding.h
231rxvtcolor.lo: rxvtcolor.C $(DEPS) 212rxvttoolkit.lo: rxvttoolkit.C $(DEPS)
232
233iom.o: iom.C iom.h 213iom.lo: iom.C $(DEPS) iom.h
234rxvtdaemon.o: rxvtdaemon.C rxvtdaemon.h
235 214
215

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines