1 |
pcg |
1.14 |
# $Id: Makefile.in,v 1.13 2004/03/01 01:06:46 pcg Exp $ |
2 |
pcg |
1.1 |
@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 |
pcg |
1.12 |
LIBSRCS = command.C defaultfont.C init.C logging.C \ |
26 |
pcg |
1.1 |
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 |
pcg |
1.10 |
xdefaults.C xpm.C encoding.C rxvtcolor.C rxvtstl.C iom.C \ |
29 |
|
|
scrollbar-plain.C |
30 |
pcg |
1.1 |
|
31 |
|
|
SRCS = rxvt.C $(LIBSRCS) |
32 |
|
|
|
33 |
pcg |
1.12 |
HDRS = command.h defaultfont.h feature.h init.h logging.h \ |
34 |
pcg |
1.3 |
menubar.h netdisp.h protos.h rxvt.h rxvtgrx.h version.h encoding.h \ |
35 |
pcg |
1.8 |
rxvtstl.h iom.h iom_conf.h |
36 |
pcg |
1.1 |
|
37 |
|
|
EXTRAHDRS = rxvtlib.h rxvtdaemon.h |
38 |
|
|
|
39 |
pcg |
1.12 |
OBJS = command.o defaultfont.o init.o logging.o \ |
40 |
pcg |
1.1 |
main.o menubar.o misc.o netdisp.o ptytty.o screen.o \ |
41 |
pcg |
1.10 |
scrollbar.o scrollbar-next.o scrollbar-rxvt.o scrollbar-xterm.o scrollbar-plain.o \ |
42 |
pcg |
1.8 |
strings.o xdefaults.o xpm.o rxvt.o encoding.o rxvtcolor.o rxvtstl.o iom.o |
43 |
pcg |
1.12 |
LIBOBJS = command.lo defaultfont.lo init.lo logging.lo \ |
44 |
pcg |
1.1 |
main.lo menubar.lo misc.lo netdisp.lo ptytty.lo screen.lo \ |
45 |
pcg |
1.10 |
scrollbar.lo scrollbar-next.lo scrollbar-rxvt.lo scrollbar-xterm.lo scrollbar-plain.lo \ |
46 |
pcg |
1.8 |
strings.lo xdefaults.lo xpm.lo encoding.lo rxvt.lo rxvtcolor.lo rxvtstl.lo iom.lo |
47 |
pcg |
1.1 |
|
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 |
pcg |
1.5 |
RXVTC_BINNAME=$(DESTDIR)$(bindir)/$(RXVT_BASENAME)c$(EXEEXT) |
54 |
|
|
RXVTD_BINNAME=$(DESTDIR)$(bindir)/$(RXVT_BASENAME)d$(EXEEXT) |
55 |
pcg |
1.1 |
RXVT_OLDNAME=$(DESTDIR)$(bindir)/$(RXVT_BASENAME)-old$(EXEEXT) |
56 |
|
|
|
57 |
pcg |
1.12 |
EXTPROS = command.extpro defaultfont.extpro \ |
58 |
pcg |
1.1 |
init.extpro logging.extpro main.extpro menubar.extpro misc.extpro \ |
59 |
|
|
netdisp.extpro ptytty.extpro screen.extpro scrollbar.extpro \ |
60 |
pcg |
1.10 |
scrollbar-rxvt.extpro scrollbar-next.extpro scrollbar-xterm.extpro scrollbar-plain.intpro \ |
61 |
pcg |
1.1 |
strings.extpro xdefaults.extpro xpm.extpro |
62 |
|
|
|
63 |
pcg |
1.12 |
INTPROS = command.intpro defaultfont.intpro \ |
64 |
pcg |
1.1 |
init.intpro logging.intpro main.intpro menubar.intpro misc.intpro \ |
65 |
|
|
netdisp.intpro ptytty.intpro screen.intpro scrollbar.intpro \ |
66 |
pcg |
1.10 |
scrollbar-rxvt.intpro scrollbar-next.intpro scrollbar-xterm.intpro scrollbar-plain.intpro \ |
67 |
pcg |
1.1 |
strings.intpro xdefaults.intpro xpm.intpro |
68 |
|
|
|
69 |
pcg |
1.11 |
DEPS = rxvt.h rxvtlib.h ${basedir}/config.h feature.h rxvtcolor.h .protos |
70 |
pcg |
1.1 |
|
71 |
|
|
# |
72 |
|
|
# Distribution variables |
73 |
|
|
# |
74 |
|
|
|
75 |
|
|
DIST = $(HDRS) $(SRCS) Makefile.in gcc-Wall rxvtlib.h.in .indent.pro \ |
76 |
|
|
makeintprotos-awk makeextprotos-awk $(INTPROS) $(EXTPROS) .protos |
77 |
|
|
|
78 |
|
|
.SUFFIXES: .C .o .extpro .intpro .lo |
79 |
|
|
|
80 |
|
|
#------------------------------------------------------------------------- |
81 |
|
|
# inference rules |
82 |
|
|
.C.o: |
83 |
|
|
$(COMPILE) -c $< |
84 |
|
|
|
85 |
|
|
.C.lo: |
86 |
|
|
$(LIBTOOL) --mode=compile $(COMPILE) -c $< |
87 |
|
|
|
88 |
|
|
.s.lo: |
89 |
|
|
$(LIBTOOL) --mode=compile $(COMPILE) -c $< |
90 |
|
|
|
91 |
|
|
.S.lo: |
92 |
|
|
$(LIBTOOL) --mode=compile $(COMPILE) -c $< |
93 |
|
|
|
94 |
|
|
.C.intpro: |
95 |
|
|
@$(RMF) $@.tmp |
96 |
|
|
@$(AWK) -f $(srcdir)/makeintprotos-awk $< > $@.tmp |
97 |
|
|
@if $(CMP) -s $@ $@.tmp ; then : ; else $(ECHO) "$(AWK) -f $(srcdir)/makeintprotos-awk $< > $@"; $(CP) $@.tmp $@; fi |
98 |
|
|
@$(RMF) $@.tmp |
99 |
|
|
|
100 |
|
|
.C.extpro: |
101 |
|
|
@$(RMF) $@.tmp |
102 |
|
|
@$(AWK) -f $(srcdir)/makeextprotos-awk $< > $@.tmp |
103 |
|
|
@if $(CMP) -s $@ $@.tmp ; then : ; else $(ECHO) "$(AWK) -f $(srcdir)/makeextprotos-awk $< > $@"; $(CP) $@.tmp $@; fi |
104 |
|
|
@$(RMF) $@.tmp |
105 |
pcg |
1.13 |
|
106 |
pcg |
1.1 |
#------------------------------------------------------------------------- |
107 |
pcg |
1.13 |
|
108 |
pcg |
1.1 |
all: allbin |
109 |
|
|
|
110 |
|
|
rxvt: version.h rxvt.o librxvt.la |
111 |
pcg |
1.13 |
$(LIBTOOL) --mode=link $(LINK) rxvt.o librxvt.la $(LIBS) $(XLIB) $(DLIB) -o $@ |
112 |
pcg |
1.1 |
|
113 |
pcg |
1.3 |
rxvtd: version.h rxvtd.o librxvt.la rxvtdaemon.o |
114 |
pcg |
1.13 |
$(LIBTOOL) --mode=link $(LINK) rxvtd.o rxvtdaemon.o librxvt.la $(LIBS) $(XLIB) $(DLIB) -o $@ |
115 |
pcg |
1.1 |
|
116 |
|
|
rxvtc: version.h rxvtc.o rxvtdaemon.o |
117 |
pcg |
1.13 |
$(LIBTOOL) --mode=link $(LINK) rxvtc.o rxvtdaemon.o $(LIBS) $(DLIB) -o $@ |
118 |
pcg |
1.1 |
|
119 |
|
|
.protos: $(EXTPROS) |
120 |
|
|
@$(RMF) .protos |
121 |
|
|
date >.protos |
122 |
|
|
|
123 |
|
|
librxvt.la: $(LIBOBJS) |
124 |
pcg |
1.13 |
$(LIBTOOL) --mode=link $(LINK) -rpath $(libdir) -version-info $(LIBVERSION) $(LIBOBJS) $(LIBS) -o $@ |
125 |
|
|
|
126 |
pcg |
1.1 |
#------------------------------------------------------------------------- |
127 |
pcg |
1.13 |
|
128 |
pcg |
1.1 |
tags: $(SRCS) $(HDRS) $(EXTRAHDRS) |
129 |
|
|
ctags $(SRCS) $(HDRS) $(EXTRAHDRS) |
130 |
|
|
|
131 |
|
|
allbin: .protos rxvt rxvtd rxvtc |
132 |
|
|
|
133 |
|
|
alldoc: |
134 |
|
|
|
135 |
|
|
clean: |
136 |
pcg |
1.6 |
$(RMF) rxvt rxvtc rxvtd core a.out *.o *.lo *.bak *~ *.intpro *.extpro .libs/* librxvt.la tmpproto .protos *.tmp |
137 |
pcg |
1.1 |
|
138 |
|
|
realclean: clean |
139 |
|
|
$(RMF) tags librxvt.h |
140 |
|
|
|
141 |
|
|
cleandir: realclean |
142 |
|
|
|
143 |
|
|
distclean: realclean |
144 |
|
|
if test $(srcdir) = .; then $(MAKE) realclean; fi |
145 |
|
|
(cd $(srcdir); $(RMF) Makefile) |
146 |
|
|
|
147 |
|
|
install: allbin alldoc |
148 |
|
|
$(MKDIR) $(DESTDIR)$(includedir) $(DESTDIR)$(libdir) $(DESTDIR)$(bindir) |
149 |
|
|
@if test x$(INSTALL_LIBRXVT) = xyes; then \ |
150 |
|
|
$(ECHO) "$(LIBTOOL) --mode=install $(INSTALL_DATA) rxvtlib.h $(DESTDIR)$(includedir)/rxvtlib.h"; \ |
151 |
|
|
$(LIBTOOL) --mode=install $(INSTALL_DATA) rxvtlib.h $(DESTDIR)$(includedir)/rxvtlib.h; \ |
152 |
|
|
$(ECHO) "$(LIBTOOL) --mode=install $(INSTALL_PROGRAM) librxvt.la $(DESTDIR)$(libdir)/librxvt.la"; \ |
153 |
|
|
$(LIBTOOL) --mode=install $(INSTALL_PROGRAM) librxvt.la $(DESTDIR)$(libdir)/librxvt.la; \ |
154 |
|
|
fi |
155 |
pcg |
1.5 |
$(RMF) $(RXVT_BINNAME) |
156 |
|
|
$(RMF) $(RXVTC_BINNAME) |
157 |
|
|
$(RMF) $(RXVTD_BINNAME) |
158 |
pcg |
1.14 |
$(LIBTOOL) --mode=install $(INSTALL_PROGRAM) rxvt $(RXVT_BINNAME) |
159 |
|
|
$(LIBTOOL) --mode=install $(INSTALL_PROGRAM) rxvtc $(RXVTC_BINNAME) |
160 |
|
|
$(LIBTOOL) --mode=install $(INSTALL_PROGRAM) rxvtd $(RXVTD_BINNAME) |
161 |
pcg |
1.1 |
|
162 |
|
|
uninstall: |
163 |
|
|
@$(ECHO) $(RMF) $(RXVT_VERNAME) |
164 |
|
|
@$(RMF) $(RXVT_VERNAME) |
165 |
|
|
@$(ECHO) "$(LIBTOOL) --mode=uninstall $(RMF) $(RXVT_BINNAME)" |
166 |
|
|
@$(LIBTOOL) --mode=uninstall $(RMF) $(RXVT_BINNAME) |
167 |
|
|
@if test x$(INSTALL_LIBRXVT) = xyes; then \ |
168 |
|
|
$(ECHO) "$(LIBTOOL) --mode=uninstall $(RMF) $(DESTDIR)$(libdir)/librxvt.la"; \ |
169 |
|
|
$(LIBTOOL) --mode=uninstall $(RMF) $(DESTDIR)$(libdir)/librxvt.la; \ |
170 |
|
|
$(ECHO) "$(LIBTOOL) --mode=uninstall $(RMF) $(DESTDIR)$(includedir)/rxvtlib.h"; \ |
171 |
|
|
$(LIBTOOL) --mode=uninstall $(RMF) $(DESTDIR)$(includedir)/rxvtlib.h; \ |
172 |
|
|
fi |
173 |
|
|
|
174 |
|
|
distdirs: |
175 |
|
|
mkdir $(basedir)/../$(VERNAME)/$(thisdir) |
176 |
|
|
|
177 |
|
|
distcopy: .protos $(INTPROS) |
178 |
|
|
$(CP) -p $(DIST) $(basedir)/../$(VERNAME)/$(thisdir) |
179 |
|
|
|
180 |
|
|
# ----------------------------------------------------------------------- |
181 |
|
|
# DO NOT DELETE: nice dependency list follows |
182 |
|
|
# |
183 |
|
|
|
184 |
pcg |
1.8 |
defaultfont.h: encoding.h rxvtstl.h |
185 |
pcg |
1.1 |
rxvtlib.h: rxvtcolor.h defaultfont.h |
186 |
pcg |
1.13 |
rxvtdaemon.o: rxvtdaemon.C $(DEPS) rxvtdaemon.h |
187 |
pcg |
1.8 |
rxvtd.o: rxvtd.C $(DEPS) rxvtdaemon.h rxvtstl.h |
188 |
|
|
rxvtc.o: rxvtc.C $(DEPS) rxvtdaemon.h rxvtstl.h |
189 |
pcg |
1.1 |
|
190 |
|
|
command.o: command.C $(DEPS) command.intpro command.h version.h |
191 |
|
|
defaultfont.o: defaultfont.C $(DEPS) defaultfont.intpro defaultfont.h |
192 |
|
|
init.o: init.C $(DEPS) init.intpro init.h defaultfont.h |
193 |
|
|
logging.o: logging.C $(DEPS) logging.intpro logging.h |
194 |
|
|
main.o: main.C $(DEPS) main.intpro |
195 |
|
|
menubar.o: menubar.C $(DEPS) menubar.intpro menubar.h version.h |
196 |
|
|
misc.o: misc.C $(DEPS) misc.intpro |
197 |
|
|
netdisp.o: netdisp.C $(DEPS) netdisp.intpro netdisp.h |
198 |
|
|
ptytty.o: ptytty.C $(DEPS) ptytty.intpro |
199 |
|
|
rxvt.o: rxvt.C $(DEPS) |
200 |
|
|
screen.o: screen.C $(DEPS) screen.intpro defaultfont.h |
201 |
|
|
scrollbar.o: scrollbar.C $(DEPS) scrollbar.intpro |
202 |
|
|
scrollbar-rxvt.o: scrollbar-rxvt.C $(DEPS) scrollbar-rxvt.intpro |
203 |
|
|
scrollbar-next.o: scrollbar-next.C $(DEPS) scrollbar-next.intpro |
204 |
|
|
scrollbar-xterm.o: scrollbar-xterm.C $(DEPS) scrollbar-xterm.intpro |
205 |
pcg |
1.10 |
scrollbar-plain.o: scrollbar-plain.C $(DEPS) scrollbar-plain.intpro |
206 |
pcg |
1.1 |
strings.o: strings.C $(DEPS) strings.intpro |
207 |
|
|
xdefaults.o: xdefaults.C $(DEPS) xdefaults.intpro version.h |
208 |
|
|
xpm.o: xpm.C $(DEPS) xpm.intpro |
209 |
|
|
encoding.o: encoding.C $(DEPS) encoding.h |
210 |
|
|
rxvtcolor.o: rxvtcolor.C $(DEPS) |
211 |
pcg |
1.4 |
iom.o: iom.C $(DEPS) iom.h |
212 |
pcg |
1.1 |
|
213 |
|
|
command.lo: command.C $(DEPS) command.intpro command.h version.h |
214 |
|
|
defaultfont.lo: defaultfont.C $(DEPS) defaultfont.intpro defaultfont.h encoding.h |
215 |
|
|
init.lo: init.C $(DEPS) init.intpro init.h |
216 |
|
|
logging.lo: logging.C $(DEPS) logging.intpro logging.h |
217 |
|
|
main.lo: main.C $(DEPS) main.intpro |
218 |
|
|
menubar.lo: menubar.C $(DEPS) menubar.intpro menubar.h version.h |
219 |
|
|
misc.lo: misc.C $(DEPS) misc.intpro |
220 |
|
|
netdisp.lo: netdisp.C $(DEPS) netdisp.intpro netdisp.h |
221 |
|
|
ptytty.lo: ptytty.C $(DEPS) ptytty.intpro |
222 |
|
|
rxvt.lo: rxvt.C $(DEPS) |
223 |
|
|
screen.lo: screen.C $(DEPS) screen.intpro defaultfont.h |
224 |
|
|
scrollbar.lo: scrollbar.C $(DEPS) scrollbar.intpro |
225 |
|
|
scrollbar-rxvt.lo: scrollbar-rxvt.C $(DEPS) scrollbar-rxvt.intpro |
226 |
|
|
scrollbar-next.lo: scrollbar-next.C $(DEPS) scrollbar-next.intpro |
227 |
|
|
scrollbar-xterm.lo: scrollbar-xterm.C $(DEPS) scrollbar-xterm.intpro |
228 |
pcg |
1.10 |
scrollbar-plain.lo: scrollbar-plain.C $(DEPS) scrollbar-plain.intpro |
229 |
pcg |
1.1 |
strings.lo: strings.C $(DEPS) strings.intpro |
230 |
|
|
xdefaults.lo: xdefaults.C $(DEPS) xdefaults.intpro version.h |
231 |
|
|
xpm.lo: xpm.C $(DEPS) xpm.intpro |
232 |
|
|
encoding.lo: encoding.C $(DEPS) encoding.h |
233 |
|
|
rxvtcolor.lo: rxvtcolor.C $(DEPS) |
234 |
pcg |
1.4 |
iom.lo: iom.C $(DEPS) iom.h |
235 |
pcg |
1.1 |
|
236 |
|
|
|