ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/Makefile.in
Revision: 1.13
Committed: Mon Mar 1 01:06:46 2004 UTC (20 years, 2 months ago) by pcg
Branch: MAIN
CVS Tags: rel-2_0
Changes since 1.12: +10 -8 lines
Log Message:
*** empty log message ***

File Contents

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