| 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 |
man1dir = @mandir@/man1 |
| 10 |
man1ext = 1 |
| 11 |
man3dir = @mandir@/man3 |
| 12 |
man3ext = 3 |
| 13 |
PODOPTS = quotes => q<"> , center => q<RXVT-UNICODE>, release => q<$(VERSION)> |
| 14 |
CXX = @CXX@ |
| 15 |
PERL = @PERL@ |
| 16 |
INSTALL = @INSTALL@ |
| 17 |
INSTALL_PROGRAM = @INSTALL@ -m 755 |
| 18 |
INSTALL_DATA = @INSTALL@ -m 644 |
| 19 |
CXXFLAGS = @CXXFLAGS@ |
| 20 |
CPPFLAGS = @CPPFLAGS@ |
| 21 |
LDFLAGS = @LDFLAGS@ |
| 22 |
DEFS = @DEFS@ @PTYTTY_CFLAGS@ |
| 23 |
LIBS = @LIBS@ @PTYTTY_LIBS@ |
| 24 |
XINC = @X_CFLAGS@ @PIXBUF_CFLAGS@ @STARTUP_NOTIFICATION_CFLAGS@ |
| 25 |
XLIB = @X_LIBS@ -lX11 @X_EXTRA_LIBS@ @PIXBUF_LIBS@ @STARTUP_NOTIFICATION_LIBS@ |
| 26 |
COMPILE = $(CXX) -I.. -I$(srcdir) -I. -I$(srcdir)/../libev $(DEFS) $(CPPFLAGS) $(CXXFLAGS) $(XINC) |
| 27 |
LINK = @LINKER@ $(LDFLAGS) |
| 28 |
EXEEXT = @EXEEXT@ |
| 29 |
PERLFLAGS = @PERLFLAGS@ |
| 30 |
PERLLIB = @PERLLIB@ |
| 31 |
|
| 32 |
srcdir = @srcdir@ |
| 33 |
VPATH = @srcdir@ |
| 34 |
|
| 35 |
first_rule: all |
| 36 |
dummy: |
| 37 |
|
| 38 |
COMMON = \ |
| 39 |
command.o rxvtfont.o init.o main.o misc.o \ |
| 40 |
screen.o scrollbar.o scrollbar-next.o scrollbar-rxvt.o \ |
| 41 |
scrollbar-xterm.o scrollbar-plain.o xdefaults.o encoding.o \ |
| 42 |
rxvttoolkit.o rxvtutil.o keyboard.o rxvtimg.o \ |
| 43 |
ev_cpp.o @PERL_O@ |
| 44 |
|
| 45 |
COMMON_DAEMON = rxvtdaemon.o |
| 46 |
|
| 47 |
RXVT_BINNAME=$(DESTDIR)$(bindir)/$(RXVTNAME)$(EXEEXT) |
| 48 |
RXVTC_BINNAME=$(DESTDIR)$(bindir)/$(RXVTNAME)c$(EXEEXT) |
| 49 |
RXVTD_BINNAME=$(DESTDIR)$(bindir)/$(RXVTNAME)d$(EXEEXT) |
| 50 |
RCLOCK_BINNAME=$(DESTDIR)$(bindir)/urclock$(EXEEXT) |
| 51 |
|
| 52 |
# |
| 53 |
# Distribution variables |
| 54 |
# |
| 55 |
|
| 56 |
.SUFFIXES: .C .c .o |
| 57 |
|
| 58 |
#------------------------------------------------------------------------- |
| 59 |
# inference rules |
| 60 |
.C.o: |
| 61 |
$(COMPILE) -c $< |
| 62 |
|
| 63 |
#------------------------------------------------------------------------- |
| 64 |
|
| 65 |
all: allbin |
| 66 |
|
| 67 |
rxvt: rxvt.o $(COMMON) |
| 68 |
$(LINK) -o $@ rxvt.o $(COMMON) $(LIBS) $(XLIB) $(PERLLIB) |
| 69 |
|
| 70 |
rxvtd: rxvtd.o $(COMMON) $(COMMON_DAEMON) |
| 71 |
$(LINK) -o $@ rxvtd.o $(COMMON) $(COMMON_DAEMON) $(LIBS) $(XLIB) $(PERLLIB) |
| 72 |
|
| 73 |
rxvtc: rxvtc.o $(COMMON_DAEMON) |
| 74 |
$(LINK) -o $@ rxvtc.o $(COMMON_DAEMON) $(LIBS) |
| 75 |
|
| 76 |
rclock: rclock.o |
| 77 |
$(LINK) -o $@ rclock.o $(LIBS) $(XLIB) |
| 78 |
|
| 79 |
#------------------------------------------------------------------------- |
| 80 |
|
| 81 |
tags: *.[Ch] |
| 82 |
ctags *.[Ch] |
| 83 |
|
| 84 |
TAGS: *.[Ch] |
| 85 |
etags *.[Ch] |
| 86 |
|
| 87 |
allbin: rxvt rxvtd rxvtc rclock |
| 88 |
|
| 89 |
alldoc: |
| 90 |
|
| 91 |
clean: |
| 92 |
rm -f rxvt rxvtc rxvtd rclock perlxsi.c rxvtperl.C manlst mantmp |
| 93 |
rm -f *.o |
| 94 |
|
| 95 |
distclean: clean |
| 96 |
rm -f Makefile |
| 97 |
|
| 98 |
realclean: distclean |
| 99 |
rm -f tags TAGS |
| 100 |
|
| 101 |
cleandir: realclean |
| 102 |
|
| 103 |
install-perl: |
| 104 |
@IF_PERL@ $(INSTALL) -d $(DESTDIR)$(libdir) |
| 105 |
@IF_PERL@ $(INSTALL) -d $(DESTDIR)$(libdir)/urxvt |
| 106 |
@IF_PERL@ $(INSTALL) -d $(DESTDIR)$(libdir)/urxvt/perl |
| 107 |
@IF_PERL@ $(INSTALL) -d $(DESTDIR)$(man1dir) |
| 108 |
@IF_PERL@ $(INSTALL) -d $(DESTDIR)$(man3dir) |
| 109 |
@IF_PERL@ $(INSTALL_DATA) $(srcdir)/urxvt.pm $(DESTDIR)$(libdir)/urxvt/urxvt.pm |
| 110 |
@IF_PERL@ for ext in $(srcdir)/perl/*; do \ |
| 111 |
@IF_PERL@ test -f "$$ext" || continue; \ |
| 112 |
@IF_PERL@ base=`basename "$$ext"`; \ |
| 113 |
@IF_PERL@ $(INSTALL_DATA) "$$ext" $(DESTDIR)$(libdir)/urxvt/perl/; \ |
| 114 |
@IF_PERL@ < "$$ext" \ |
| 115 |
@IF_PERL@ $(PERL) -MPod::Man -e '(new Pod::Man name => "'urxvt-$$base'", $(PODOPTS))->parse_from_file' \ |
| 116 |
@IF_PERL@ > mantmp; \ |
| 117 |
@IF_PERL@ test -s mantmp && $(INSTALL_DATA) mantmp $(DESTDIR)$(man1dir)/$(RXVTNAME)-$$base.$(man1ext); \ |
| 118 |
@IF_PERL@ < "$$ext" $(PERL) -ne '<>, (print <> . "\n"), exit if /^=head1/' >&3; \ |
| 119 |
@IF_PERL@ done 3>manlst |
| 120 |
@IF_PERL@ cat $(srcdir)/../doc/extensions.pod.top manlst $(srcdir)/../doc/extensions.pod.bot | \ |
| 121 |
@IF_PERL@ $(PERL) -MPod::Man -e '(new Pod::Man name => "$(RXVTNAME)-extensions", $(PODOPTS))->parse_from_file' \ |
| 122 |
@IF_PERL@ > mantmp |
| 123 |
@IF_PERL@ $(INSTALL_DATA) mantmp $(DESTDIR)$(man1dir)/$(RXVTNAME)-extensions.$(man1ext) |
| 124 |
@IF_PERL@ < $(srcdir)/urxvt.pm \ |
| 125 |
@IF_PERL@ $(PERL) -MPod::Man -e '(new Pod::Man name => "$(RXVTNAME)perl", section => 3, $(PODOPTS))->parse_from_file' \ |
| 126 |
@IF_PERL@ > mantmp |
| 127 |
@IF_PERL@ $(INSTALL_DATA) mantmp $(DESTDIR)$(man3dir)/$(RXVTNAME)perl.$(man3ext) |
| 128 |
|
| 129 |
install-bin: allbin |
| 130 |
$(INSTALL) -d $(DESTDIR)$(bindir) |
| 131 |
$(INSTALL_PROGRAM) rxvt $(RXVT_BINNAME) |
| 132 |
$(INSTALL_PROGRAM) rxvtc $(RXVTC_BINNAME) |
| 133 |
$(INSTALL_PROGRAM) rxvtd $(RXVTD_BINNAME) |
| 134 |
$(INSTALL_PROGRAM) rclock $(RCLOCK_BINNAME) |
| 135 |
|
| 136 |
install: install-bin install-perl |
| 137 |
|
| 138 |
perlxsi.c: Makefile |
| 139 |
$(PERL) -MExtUtils::Embed -e xsinit -- -std urxvt |
| 140 |
|
| 141 |
rxvtperl.C: rxvtperl.xs iom_perl.h iom_perl.xs typemap typemap.iom |
| 142 |
PERL="$(PERL)" $(PERL) @PERLPRIVLIBEXP@/ExtUtils/xsubpp -C++ -typemap @PERLPRIVLIBEXP@/ExtUtils/typemap -typemap 'typemap.iom' -typemap 'typemap' -prototypes $(srcdir)/rxvtperl.xs >$@ |
| 143 |
|
| 144 |
rxvtperl.o: rxvtperl.C perlxsi.c |
| 145 |
$(COMPILE) $(PERLFLAGS) -DLIBDIR="\"$(libdir)/urxvt\"" -c $< |
| 146 |
|
| 147 |
depend: |
| 148 |
makedepend -f Makefile.in -I. -I.. -I../libev -Y *.C *.xs >/dev/null 2>&1 |
| 149 |
|
| 150 |
# makedepend has trouble finding these |
| 151 |
ev_cpp.o: ../libev/ev.c ../libev/ev_epoll.c ../libev/ev_kqueue.c ../libev/ev_linuxaio.c |
| 152 |
ev_cpp.o: ../libev/ev_poll.c ../libev/ev_port.c ../libev/ev_select.c ../libev/ev_win32.c |
| 153 |
|
| 154 |
|
| 155 |
# DO NOT DELETE: nice dependency list follows |
| 156 |
|
| 157 |
command.o: ../config.h rxvt.h feature.h ecb.h encoding.h rxvtutil.h estl.h |
| 158 |
command.o: emman.h rxvtfont.h rxvttoolkit.h ev_cpp.h ../config.h |
| 159 |
command.o: ../libev/ev++.h ../libev/ev.h callback.h rxvtimg.h scrollbar.h |
| 160 |
command.o: rxvtperl.h hookinc.h rsinc.h optinc.h version.h command.h |
| 161 |
command.o: keyboard.h |
| 162 |
encoding.o: ../config.h encoding.h rxvtutil.h ecb.h estl.h emman.h |
| 163 |
encoding.o: table/iso8859_1.h table/iso8859_15.h table/iso8859_2.h |
| 164 |
encoding.o: table/iso8859_3.h table/iso8859_4.h table/iso8859_5.h |
| 165 |
encoding.o: table/iso8859_6.h table/iso8859_7.h table/iso8859_8.h |
| 166 |
encoding.o: table/iso8859_9.h table/iso8859_10.h table/iso8859_11.h |
| 167 |
encoding.o: table/iso8859_13.h table/iso8859_14.h table/iso8859_16.h |
| 168 |
encoding.o: table/koi8_r.h table/koi8_u.h table/ksc5601_1987_0.h table/big5.h |
| 169 |
encoding.o: table/gbk_0.h table/gb2312_1980_0.h table/cns11643_1992_1.h |
| 170 |
encoding.o: table/cns11643_1992_2.h table/cns11643_1992_3.h |
| 171 |
encoding.o: table/cns11643_1992_4.h table/cns11643_1992_5.h |
| 172 |
encoding.o: table/cns11643_1992_6.h table/cns11643_1992_7.h |
| 173 |
encoding.o: table/cns11643_1992_f.h table/big5_ext.h table/big5_plus.h |
| 174 |
encoding.o: table/viscii.h table/jis0201_1976_0.h table/jis0208_1990_0.h |
| 175 |
encoding.o: table/jis0212_1990_0.h table/jis0213_1.h table/jis0213_2.h |
| 176 |
encoding.o: table/compose.h table/category.h |
| 177 |
ev_cpp.o: ev_cpp.h ../config.h ../libev/ev++.h ../libev/ev.h ../libev/ev.c |
| 178 |
ev_cpp.o: ../libev/ev_vars.h ../libev/ev_epoll.c ../libev/ev_select.c |
| 179 |
init.o: ../config.h rxvt.h feature.h ecb.h encoding.h rxvtutil.h estl.h |
| 180 |
init.o: emman.h rxvtfont.h rxvttoolkit.h ev_cpp.h ../config.h ../libev/ev++.h |
| 181 |
init.o: ../libev/ev.h callback.h rxvtimg.h scrollbar.h rxvtperl.h hookinc.h |
| 182 |
init.o: rsinc.h optinc.h init.h keyboard.h |
| 183 |
keyboard.o: ../config.h rxvt.h feature.h ecb.h encoding.h rxvtutil.h estl.h |
| 184 |
keyboard.o: emman.h rxvtfont.h rxvttoolkit.h ev_cpp.h ../config.h |
| 185 |
keyboard.o: ../libev/ev++.h ../libev/ev.h callback.h rxvtimg.h scrollbar.h |
| 186 |
keyboard.o: rxvtperl.h hookinc.h rsinc.h optinc.h keyboard.h |
| 187 |
main.o: ../config.h rxvt.h feature.h ecb.h encoding.h rxvtutil.h estl.h |
| 188 |
main.o: emman.h rxvtfont.h rxvttoolkit.h ev_cpp.h ../config.h ../libev/ev++.h |
| 189 |
main.o: ../libev/ev.h callback.h rxvtimg.h scrollbar.h rxvtperl.h hookinc.h |
| 190 |
main.o: rsinc.h optinc.h init.h keyboard.h |
| 191 |
misc.o: ../config.h rxvt.h feature.h ecb.h encoding.h rxvtutil.h estl.h |
| 192 |
misc.o: emman.h rxvtfont.h rxvttoolkit.h ev_cpp.h ../config.h ../libev/ev++.h |
| 193 |
misc.o: ../libev/ev.h callback.h rxvtimg.h scrollbar.h rxvtperl.h hookinc.h |
| 194 |
misc.o: rsinc.h optinc.h |
| 195 |
rclock.o: ecb.h version.h |
| 196 |
rxvt.o: ../config.h rxvt.h feature.h ecb.h encoding.h rxvtutil.h estl.h |
| 197 |
rxvt.o: emman.h rxvtfont.h rxvttoolkit.h ev_cpp.h ../config.h ../libev/ev++.h |
| 198 |
rxvt.o: ../libev/ev.h callback.h rxvtimg.h scrollbar.h rxvtperl.h hookinc.h |
| 199 |
rxvt.o: rsinc.h optinc.h |
| 200 |
rxvtc.o: ../config.h rxvtdaemon.h rxvtutil.h ecb.h estl.h emman.h |
| 201 |
rxvtd.o: ../config.h rxvt.h feature.h ecb.h encoding.h rxvtutil.h estl.h |
| 202 |
rxvtd.o: emman.h rxvtfont.h rxvttoolkit.h ev_cpp.h ../config.h |
| 203 |
rxvtd.o: ../libev/ev++.h ../libev/ev.h callback.h rxvtimg.h scrollbar.h |
| 204 |
rxvtd.o: rxvtperl.h hookinc.h rsinc.h optinc.h rxvtdaemon.h |
| 205 |
rxvtdaemon.o: rxvtdaemon.h rxvtutil.h ecb.h estl.h emman.h |
| 206 |
rxvtfont.o: ../config.h rxvt.h feature.h ecb.h encoding.h rxvtutil.h estl.h |
| 207 |
rxvtfont.o: emman.h rxvtfont.h rxvttoolkit.h ev_cpp.h ../config.h |
| 208 |
rxvtfont.o: ../libev/ev++.h ../libev/ev.h callback.h rxvtimg.h scrollbar.h |
| 209 |
rxvtfont.o: rxvtperl.h hookinc.h rsinc.h optinc.h table/linedraw.h |
| 210 |
rxvtimg.o: ../config.h rxvt.h feature.h ecb.h encoding.h rxvtutil.h estl.h |
| 211 |
rxvtimg.o: emman.h rxvtfont.h rxvttoolkit.h ev_cpp.h ../config.h |
| 212 |
rxvtimg.o: ../libev/ev++.h ../libev/ev.h callback.h rxvtimg.h scrollbar.h |
| 213 |
rxvtimg.o: rxvtperl.h hookinc.h rsinc.h optinc.h |
| 214 |
rxvtperl.o: ../config.h ev_cpp.h ../config.h ../libev/ev++.h ../libev/ev.h |
| 215 |
rxvtperl.o: rxvt.h feature.h ecb.h encoding.h rxvtutil.h estl.h emman.h |
| 216 |
rxvtperl.o: rxvtfont.h rxvttoolkit.h callback.h rxvtimg.h scrollbar.h |
| 217 |
rxvtperl.o: rxvtperl.h hookinc.h rsinc.h optinc.h keyboard.h perlxsi.c |
| 218 |
rxvtperl.o: iom_perl.h |
| 219 |
rxvttoolkit.o: ../config.h rxvt.h feature.h ecb.h encoding.h rxvtutil.h |
| 220 |
rxvttoolkit.o: estl.h emman.h rxvtfont.h rxvttoolkit.h ev_cpp.h ../config.h |
| 221 |
rxvttoolkit.o: ../libev/ev++.h ../libev/ev.h callback.h rxvtimg.h scrollbar.h |
| 222 |
rxvttoolkit.o: rxvtperl.h hookinc.h rsinc.h optinc.h |
| 223 |
rxvtutil.o: emman.c emman.h ecb.h rxvtutil.h estl.h |
| 224 |
screen.o: ../config.h rxvt.h feature.h ecb.h encoding.h rxvtutil.h estl.h |
| 225 |
screen.o: emman.h rxvtfont.h rxvttoolkit.h ev_cpp.h ../config.h |
| 226 |
screen.o: ../libev/ev++.h ../libev/ev.h callback.h rxvtimg.h scrollbar.h |
| 227 |
screen.o: rxvtperl.h hookinc.h rsinc.h optinc.h |
| 228 |
scrollbar-next.o: ../config.h rxvt.h feature.h ecb.h encoding.h rxvtutil.h |
| 229 |
scrollbar-next.o: estl.h emman.h rxvtfont.h rxvttoolkit.h ev_cpp.h |
| 230 |
scrollbar-next.o: ../config.h ../libev/ev++.h ../libev/ev.h callback.h |
| 231 |
scrollbar-next.o: rxvtimg.h scrollbar.h rxvtperl.h hookinc.h rsinc.h optinc.h |
| 232 |
scrollbar-plain.o: ../config.h rxvt.h feature.h ecb.h encoding.h rxvtutil.h |
| 233 |
scrollbar-plain.o: estl.h emman.h rxvtfont.h rxvttoolkit.h ev_cpp.h |
| 234 |
scrollbar-plain.o: ../config.h ../libev/ev++.h ../libev/ev.h callback.h |
| 235 |
scrollbar-plain.o: rxvtimg.h scrollbar.h rxvtperl.h hookinc.h rsinc.h |
| 236 |
scrollbar-plain.o: optinc.h |
| 237 |
scrollbar-rxvt.o: ../config.h rxvt.h feature.h ecb.h encoding.h rxvtutil.h |
| 238 |
scrollbar-rxvt.o: estl.h emman.h rxvtfont.h rxvttoolkit.h ev_cpp.h |
| 239 |
scrollbar-rxvt.o: ../config.h ../libev/ev++.h ../libev/ev.h callback.h |
| 240 |
scrollbar-rxvt.o: rxvtimg.h scrollbar.h rxvtperl.h hookinc.h rsinc.h optinc.h |
| 241 |
scrollbar-xterm.o: ../config.h rxvt.h feature.h ecb.h encoding.h rxvtutil.h |
| 242 |
scrollbar-xterm.o: estl.h emman.h rxvtfont.h rxvttoolkit.h ev_cpp.h |
| 243 |
scrollbar-xterm.o: ../config.h ../libev/ev++.h ../libev/ev.h callback.h |
| 244 |
scrollbar-xterm.o: rxvtimg.h scrollbar.h rxvtperl.h hookinc.h rsinc.h |
| 245 |
scrollbar-xterm.o: optinc.h |
| 246 |
scrollbar.o: ../config.h rxvt.h feature.h ecb.h encoding.h rxvtutil.h estl.h |
| 247 |
scrollbar.o: emman.h rxvtfont.h rxvttoolkit.h ev_cpp.h ../config.h |
| 248 |
scrollbar.o: ../libev/ev++.h ../libev/ev.h callback.h rxvtimg.h scrollbar.h |
| 249 |
scrollbar.o: rxvtperl.h hookinc.h rsinc.h optinc.h |
| 250 |
xdefaults.o: ../config.h rxvt.h feature.h ecb.h encoding.h rxvtutil.h estl.h |
| 251 |
xdefaults.o: emman.h rxvtfont.h rxvttoolkit.h ev_cpp.h ../config.h |
| 252 |
xdefaults.o: ../libev/ev++.h ../libev/ev.h callback.h rxvtimg.h scrollbar.h |
| 253 |
xdefaults.o: rxvtperl.h hookinc.h rsinc.h optinc.h version.h keyboard.h |
| 254 |
rxvtperl.o: ../config.h ev_cpp.h ../config.h ../libev/ev++.h ../libev/ev.h |
| 255 |
rxvtperl.o: rxvt.h feature.h ecb.h encoding.h rxvtutil.h estl.h emman.h |
| 256 |
rxvtperl.o: rxvtfont.h rxvttoolkit.h callback.h rxvtimg.h scrollbar.h |
| 257 |
rxvtperl.o: rxvtperl.h hookinc.h rsinc.h optinc.h keyboard.h perlxsi.c |
| 258 |
rxvtperl.o: iom_perl.h |