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