1 |
DATE=@DATE@ |
2 |
VERSION=@VERSION@ |
3 |
RXVTNAME=@RXVTNAME@ |
4 |
SHELL = /bin/sh |
5 |
prefix = @prefix@ |
6 |
exec_prefix = @exec_prefix@ |
7 |
bindir = @bindir@ |
8 |
libdir = @libdir@ |
9 |
includedir = @includedir@ |
10 |
CC = @CC@ |
11 |
CXX = @CXX@ |
12 |
CPP = @CPP@ |
13 |
PERL = @PERL@ |
14 |
INSTALL = @INSTALL@ |
15 |
INSTALL_PROGRAM = @INSTALL@ -m 755 |
16 |
INSTALL_DATA = @INSTALL@ -m 644 |
17 |
CXXFLAGS = @CXXFLAGS@ |
18 |
CPPFLAGS = @CPPFLAGS@ |
19 |
LDFLAGS = @LDFLAGS@ |
20 |
DEFS = @DEFS@ |
21 |
LIBS = @LIBS@ |
22 |
XINC = @X_CFLAGS@ @AFTERIMAGE_CFLAGS@ |
23 |
XLIB = @X_LIBS@ @AFTERIMAGE_LIBS@ -lX11 @X_EXTRA_LIBS@ |
24 |
COMPILE = $(CXX) -I.. -I$(srcdir) -I. -I$(srcdir)/../libev $(DEFS) $(CPPFLAGS) $(CXXFLAGS) $(XINC) |
25 |
LINK = @LINKER@ $(LDFLAGS) |
26 |
EXEEXT = @EXEEXT@ |
27 |
|
28 |
srcdir = @srcdir@ |
29 |
VPATH = @srcdir@ |
30 |
|
31 |
first_rule: all |
32 |
dummy: |
33 |
|
34 |
COMMON = \ |
35 |
background.o command.o rxvtfont.o init.o logging.o main.o misc.o \ |
36 |
ptytty.o proxy.o screen.o scrollbar.o scrollbar-next.o scrollbar-rxvt.o \ |
37 |
scrollbar-xterm.o scrollbar-plain.o xdefaults.o encoding.o \ |
38 |
rxvttoolkit.o rxvtutil.o keyboard.o \ |
39 |
fdpass.o ev_cpp.o @PERL_O@ |
40 |
|
41 |
COMMON_DAEMON = rxvtdaemon.o |
42 |
|
43 |
RXVT_BASENAME=`echo $(RXVTNAME)|sed 's/$(EXEEXT)$$//'|sed '$(transform)'` |
44 |
RXVT_BINNAME=$(DESTDIR)$(bindir)/$(RXVT_BASENAME)$(EXEEXT) |
45 |
RXVTC_BINNAME=$(DESTDIR)$(bindir)/$(RXVT_BASENAME)c$(EXEEXT) |
46 |
RXVTD_BINNAME=$(DESTDIR)$(bindir)/$(RXVT_BASENAME)d$(EXEEXT) |
47 |
|
48 |
# |
49 |
# Distribution variables |
50 |
# |
51 |
|
52 |
.SUFFIXES: .C .c .o |
53 |
|
54 |
#------------------------------------------------------------------------- |
55 |
# inference rules |
56 |
.C.o: |
57 |
$(COMPILE) -c $< |
58 |
|
59 |
#------------------------------------------------------------------------- |
60 |
|
61 |
all: allbin |
62 |
|
63 |
rxvt: rxvt.o $(COMMON) |
64 |
$(LINK) -o $@ rxvt.o $(COMMON) $(LIBS) $(XLIB) @PERLLIB@ |
65 |
|
66 |
rxvtd: rxvtd.o $(COMMON) $(COMMON_DAEMON) |
67 |
$(LINK) -o $@ rxvtd.o $(COMMON) $(COMMON_DAEMON) $(LIBS) $(XLIB) @PERLLIB@ |
68 |
|
69 |
rxvtc: rxvtc.o $(COMMON_DAEMON) fdpass.o |
70 |
$(LINK) -o $@ rxvtc.o $(COMMON_DAEMON) fdpass.o $(LIBS) |
71 |
|
72 |
#------------------------------------------------------------------------- |
73 |
|
74 |
#EXUBERANT_OPTS = -I NOTHROW |
75 |
|
76 |
tags: *.[Ch] |
77 |
ctags $(EXUBERANT_OPTS) *.[Ch] |
78 |
|
79 |
TAGS: *.[Ch] |
80 |
etags $(EXUBERANT_OPTS) *.[Ch] |
81 |
|
82 |
allbin: rxvt rxvtd rxvtc |
83 |
|
84 |
alldoc: |
85 |
|
86 |
clean: |
87 |
rm -f rxvt rxvtc rxvtd perlxsi.c rxvtperl.C |
88 |
rm -f *.o |
89 |
|
90 |
distclean: clean |
91 |
rm -f Makefile |
92 |
|
93 |
realclean: distclean |
94 |
rm -f tags TAGS |
95 |
|
96 |
cleandir: realclean |
97 |
|
98 |
install-perl: |
99 |
@IF_PERL@ $(INSTALL) -d $(DESTDIR)$(libdir) |
100 |
@IF_PERL@ $(INSTALL) -d $(DESTDIR)$(libdir)/urxvt |
101 |
@IF_PERL@ $(INSTALL) -d $(DESTDIR)$(libdir)/urxvt/perl |
102 |
@IF_PERL@ $(INSTALL_DATA) $(srcdir)/urxvt.pm $(DESTDIR)$(libdir)/urxvt/urxvt.pm |
103 |
@IF_PERL@ for ext in $(srcdir)/perl/*; do test -f "$$ext" && $(INSTALL_DATA) "$$ext" $(DESTDIR)$(libdir)/urxvt/perl/; done |
104 |
|
105 |
install-bin: allbin |
106 |
$(INSTALL) -d $(DESTDIR)$(bindir) |
107 |
$(INSTALL_PROGRAM) rxvt $(RXVT_BINNAME) |
108 |
$(INSTALL_PROGRAM) rxvtc $(RXVTC_BINNAME) |
109 |
$(INSTALL_PROGRAM) rxvtd $(RXVTD_BINNAME) |
110 |
|
111 |
install: install-bin install-perl |
112 |
|
113 |
perlxsi.c: Makefile |
114 |
$(PERL) -MExtUtils::Embed -e xsinit -- -std urxvt |
115 |
|
116 |
rxvtperl.C: rxvtperl.xs iom_perl.h iom_perl.xs typemap typemap.iom |
117 |
PERL="$(PERL)" $(PERL) @PERLPRIVLIBEXP@/ExtUtils/xsubpp -C++ -typemap @PERLPRIVLIBEXP@/ExtUtils/typemap -typemap typemap.iom -typemap typemap -prototypes $(srcdir)/rxvtperl.xs >$@ |
118 |
|
119 |
rxvtperl.o: rxvtperl.C perlxsi.c |
120 |
$(COMPILE) @PERLFLAGS@ -DLIBDIR="\"$(libdir)/urxvt\"" -c $< |
121 |
|
122 |
depend: |
123 |
makedepend -f Makefile.in -I. -I.. -I../libev -Y *.C >/dev/null 2>&1 |
124 |
|
125 |
# DO NOT DELETE: nice dependency list follows |
126 |
|
127 |
background.o: ../config.h rxvt.h feature.h encoding.h rxvtutil.h rxvtfont.h |
128 |
background.o: rxvttoolkit.h ev_cpp.h ../config.h ../libev/ev++.h |
129 |
background.o: ../libev/ev.h callback.h scrollbar.h salloc.h libptytty.h |
130 |
background.o: rxvtperl.h hookinc.h background.h rsinc.h optinc.h |
131 |
command.o: ../config.h rxvt.h feature.h encoding.h rxvtutil.h rxvtfont.h |
132 |
command.o: rxvttoolkit.h ev_cpp.h ../config.h ../libev/ev++.h ../libev/ev.h |
133 |
command.o: callback.h scrollbar.h salloc.h libptytty.h rxvtperl.h hookinc.h |
134 |
command.o: background.h rsinc.h optinc.h version.h command.h keyboard.h |
135 |
encoding.o: ../config.h encoding.h table/iso8859_1.h table/iso8859_15.h |
136 |
encoding.o: table/iso8859_2.h table/iso8859_3.h table/iso8859_4.h |
137 |
encoding.o: table/iso8859_5.h table/iso8859_6.h table/iso8859_7.h |
138 |
encoding.o: table/iso8859_8.h table/iso8859_9.h table/iso8859_10.h |
139 |
encoding.o: table/iso8859_11.h table/iso8859_13.h table/iso8859_14.h |
140 |
encoding.o: table/iso8859_16.h table/koi8_r.h table/koi8_u.h |
141 |
encoding.o: table/ksc5601_1987_0.h table/big5.h table/gbk_0.h |
142 |
encoding.o: table/gb2312_1980_0.h table/cns11643_1992_1.h |
143 |
encoding.o: table/cns11643_1992_2.h table/cns11643_1992_3.h |
144 |
encoding.o: table/cns11643_1992_4.h table/cns11643_1992_5.h |
145 |
encoding.o: table/cns11643_1992_6.h table/cns11643_1992_7.h |
146 |
encoding.o: table/cns11643_1992_f.h table/big5_ext.h table/big5_plus.h |
147 |
encoding.o: table/viscii.h table/jis0201_1976_0.h table/jis0208_1990_0.h |
148 |
encoding.o: table/jis0212_1990_0.h table/jis0213_1.h table/jis0213_2.h |
149 |
encoding.o: table/compose.h table/category.h |
150 |
ev_cpp.o: ev_cpp.h ../config.h ../libev/ev++.h ../libev/ev.h ../libev/ev.c |
151 |
ev_cpp.o: ../libev/ev_vars.h ../libev/ev_epoll.c ../libev/ev_select.c |
152 |
fdpass.o: ../config.h libptytty.h |
153 |
init.o: ../config.h rxvt.h feature.h encoding.h rxvtutil.h rxvtfont.h |
154 |
init.o: rxvttoolkit.h ev_cpp.h ../config.h ../libev/ev++.h ../libev/ev.h |
155 |
init.o: callback.h scrollbar.h salloc.h libptytty.h rxvtperl.h hookinc.h |
156 |
init.o: background.h rsinc.h optinc.h init.h keyboard.h |
157 |
keyboard.o: ../config.h rxvt.h feature.h encoding.h rxvtutil.h rxvtfont.h |
158 |
keyboard.o: rxvttoolkit.h ev_cpp.h ../config.h ../libev/ev++.h ../libev/ev.h |
159 |
keyboard.o: callback.h scrollbar.h salloc.h libptytty.h rxvtperl.h hookinc.h |
160 |
keyboard.o: background.h rsinc.h optinc.h keyboard.h command.h |
161 |
logging.o: ../config.h ptytty.h libptytty.h ptytty_conf.h rxvt.h feature.h |
162 |
logging.o: encoding.h rxvtutil.h rxvtfont.h rxvttoolkit.h ev_cpp.h |
163 |
logging.o: ../config.h ../libev/ev++.h ../libev/ev.h callback.h scrollbar.h |
164 |
logging.o: salloc.h rxvtperl.h hookinc.h background.h rsinc.h optinc.h |
165 |
main.o: ../config.h rxvt.h feature.h encoding.h rxvtutil.h rxvtfont.h |
166 |
main.o: rxvttoolkit.h ev_cpp.h ../config.h ../libev/ev++.h ../libev/ev.h |
167 |
main.o: callback.h scrollbar.h salloc.h libptytty.h rxvtperl.h hookinc.h |
168 |
main.o: background.h rsinc.h optinc.h keyboard.h |
169 |
misc.o: ../config.h rxvt.h feature.h encoding.h rxvtutil.h rxvtfont.h |
170 |
misc.o: rxvttoolkit.h ev_cpp.h ../config.h ../libev/ev++.h ../libev/ev.h |
171 |
misc.o: callback.h scrollbar.h salloc.h libptytty.h rxvtperl.h hookinc.h |
172 |
misc.o: background.h rsinc.h optinc.h |
173 |
proxy.o: ../config.h ptytty.h libptytty.h ptytty_conf.h rxvt.h feature.h |
174 |
proxy.o: encoding.h rxvtutil.h rxvtfont.h rxvttoolkit.h ev_cpp.h ../config.h |
175 |
proxy.o: ../libev/ev++.h ../libev/ev.h callback.h scrollbar.h salloc.h |
176 |
proxy.o: rxvtperl.h hookinc.h background.h rsinc.h optinc.h |
177 |
ptytty.o: ../config.h ptytty.h libptytty.h ptytty_conf.h rxvt.h feature.h |
178 |
ptytty.o: encoding.h rxvtutil.h rxvtfont.h rxvttoolkit.h ev_cpp.h ../config.h |
179 |
ptytty.o: ../libev/ev++.h ../libev/ev.h callback.h scrollbar.h salloc.h |
180 |
ptytty.o: rxvtperl.h hookinc.h background.h rsinc.h optinc.h |
181 |
rxvt.o: ../config.h rxvt.h feature.h encoding.h rxvtutil.h rxvtfont.h |
182 |
rxvt.o: rxvttoolkit.h ev_cpp.h ../config.h ../libev/ev++.h ../libev/ev.h |
183 |
rxvt.o: callback.h scrollbar.h salloc.h libptytty.h rxvtperl.h hookinc.h |
184 |
rxvt.o: background.h rsinc.h optinc.h |
185 |
rxvtc.o: ../config.h rxvtdaemon.h rxvtutil.h libptytty.h rxvt.h feature.h |
186 |
rxvtc.o: encoding.h rxvtfont.h rxvttoolkit.h ev_cpp.h ../config.h |
187 |
rxvtc.o: ../libev/ev++.h ../libev/ev.h callback.h scrollbar.h salloc.h |
188 |
rxvtc.o: rxvtperl.h hookinc.h background.h rsinc.h optinc.h |
189 |
rxvtd.o: ../config.h rxvt.h feature.h encoding.h rxvtutil.h rxvtfont.h |
190 |
rxvtd.o: rxvttoolkit.h ev_cpp.h ../config.h ../libev/ev++.h ../libev/ev.h |
191 |
rxvtd.o: callback.h scrollbar.h salloc.h libptytty.h rxvtperl.h hookinc.h |
192 |
rxvtd.o: background.h rsinc.h optinc.h rxvtdaemon.h |
193 |
rxvtdaemon.o: rxvtdaemon.h rxvtutil.h |
194 |
rxvtfont.o: ../config.h rxvt.h feature.h encoding.h rxvtutil.h rxvtfont.h |
195 |
rxvtfont.o: rxvttoolkit.h ev_cpp.h ../config.h ../libev/ev++.h ../libev/ev.h |
196 |
rxvtfont.o: callback.h scrollbar.h salloc.h libptytty.h rxvtperl.h hookinc.h |
197 |
rxvtfont.o: background.h rsinc.h optinc.h table/linedraw.h |
198 |
rxvtperl.o: ../config.h ev_cpp.h ../config.h ../libev/ev++.h ../libev/ev.h |
199 |
rxvtperl.o: rxvt.h feature.h encoding.h rxvtutil.h rxvtfont.h rxvttoolkit.h |
200 |
rxvtperl.o: callback.h scrollbar.h salloc.h libptytty.h rxvtperl.h hookinc.h |
201 |
rxvtperl.o: background.h rsinc.h optinc.h keyboard.h perlxsi.c iom_perl.h |
202 |
rxvttoolkit.o: ../config.h rxvt.h feature.h encoding.h rxvtutil.h rxvtfont.h |
203 |
rxvttoolkit.o: rxvttoolkit.h ev_cpp.h ../config.h ../libev/ev++.h |
204 |
rxvttoolkit.o: ../libev/ev.h callback.h scrollbar.h salloc.h libptytty.h |
205 |
rxvttoolkit.o: rxvtperl.h hookinc.h background.h rsinc.h optinc.h |
206 |
rxvtutil.o: rxvtutil.h |
207 |
salloc.o: salloc.h |
208 |
screen.o: ../config.h rxvt.h feature.h encoding.h rxvtutil.h rxvtfont.h |
209 |
screen.o: rxvttoolkit.h ev_cpp.h ../config.h ../libev/ev++.h ../libev/ev.h |
210 |
screen.o: callback.h scrollbar.h salloc.h libptytty.h rxvtperl.h hookinc.h |
211 |
screen.o: background.h rsinc.h optinc.h salloc.C |
212 |
scrollbar-next.o: ../config.h rxvt.h feature.h encoding.h rxvtutil.h |
213 |
scrollbar-next.o: rxvtfont.h rxvttoolkit.h ev_cpp.h ../config.h |
214 |
scrollbar-next.o: ../libev/ev++.h ../libev/ev.h callback.h scrollbar.h |
215 |
scrollbar-next.o: salloc.h libptytty.h rxvtperl.h hookinc.h background.h |
216 |
scrollbar-next.o: rsinc.h optinc.h |
217 |
scrollbar-plain.o: ../config.h rxvt.h feature.h encoding.h rxvtutil.h |
218 |
scrollbar-plain.o: rxvtfont.h rxvttoolkit.h ev_cpp.h ../config.h |
219 |
scrollbar-plain.o: ../libev/ev++.h ../libev/ev.h callback.h scrollbar.h |
220 |
scrollbar-plain.o: salloc.h libptytty.h rxvtperl.h hookinc.h background.h |
221 |
scrollbar-plain.o: rsinc.h optinc.h |
222 |
scrollbar-rxvt.o: ../config.h rxvt.h feature.h encoding.h rxvtutil.h |
223 |
scrollbar-rxvt.o: rxvtfont.h rxvttoolkit.h ev_cpp.h ../config.h |
224 |
scrollbar-rxvt.o: ../libev/ev++.h ../libev/ev.h callback.h scrollbar.h |
225 |
scrollbar-rxvt.o: salloc.h libptytty.h rxvtperl.h hookinc.h background.h |
226 |
scrollbar-rxvt.o: rsinc.h optinc.h |
227 |
scrollbar-xterm.o: ../config.h rxvt.h feature.h encoding.h rxvtutil.h |
228 |
scrollbar-xterm.o: rxvtfont.h rxvttoolkit.h ev_cpp.h ../config.h |
229 |
scrollbar-xterm.o: ../libev/ev++.h ../libev/ev.h callback.h scrollbar.h |
230 |
scrollbar-xterm.o: salloc.h libptytty.h rxvtperl.h hookinc.h background.h |
231 |
scrollbar-xterm.o: rsinc.h optinc.h |
232 |
scrollbar.o: ../config.h rxvt.h feature.h encoding.h rxvtutil.h rxvtfont.h |
233 |
scrollbar.o: rxvttoolkit.h ev_cpp.h ../config.h ../libev/ev++.h ../libev/ev.h |
234 |
scrollbar.o: callback.h scrollbar.h salloc.h libptytty.h rxvtperl.h hookinc.h |
235 |
scrollbar.o: background.h rsinc.h optinc.h |
236 |
xdefaults.o: ../config.h rxvt.h feature.h encoding.h rxvtutil.h rxvtfont.h |
237 |
xdefaults.o: rxvttoolkit.h ev_cpp.h ../config.h ../libev/ev++.h ../libev/ev.h |
238 |
xdefaults.o: callback.h scrollbar.h salloc.h libptytty.h rxvtperl.h hookinc.h |
239 |
xdefaults.o: background.h rsinc.h optinc.h version.h keyboard.h |