… | |
… | |
34 | |
34 | |
35 | first_rule: all |
35 | first_rule: all |
36 | dummy: |
36 | dummy: |
37 | |
37 | |
38 | COMMON = \ |
38 | COMMON = \ |
39 | background.o command.o rxvtfont.o init.o main.o misc.o \ |
39 | command.o rxvtfont.o init.o main.o misc.o \ |
40 | screen.o scrollbar.o scrollbar-next.o scrollbar-rxvt.o \ |
40 | screen.o scrollbar.o scrollbar-next.o scrollbar-rxvt.o \ |
41 | scrollbar-xterm.o scrollbar-plain.o xdefaults.o encoding.o \ |
41 | scrollbar-xterm.o scrollbar-plain.o xdefaults.o encoding.o \ |
42 | rxvttoolkit.o rxvtutil.o keyboard.o rxvtimg.o \ |
42 | rxvttoolkit.o rxvtutil.o keyboard.o rxvtimg.o \ |
43 | ev_cpp.o fdpass_wrapper.o ptytty_wrapper.o @PERL_O@ |
43 | ev_cpp.o fdpass_wrapper.o ptytty_wrapper.o @PERL_O@ |
44 | |
44 | |
45 | COMMON_DAEMON = rxvtdaemon.o |
45 | COMMON_DAEMON = rxvtdaemon.o |
46 | |
46 | |
47 | RXVT_BINNAME=$(DESTDIR)$(bindir)/$(RXVTNAME)$(EXEEXT) |
47 | RXVT_BINNAME=$(DESTDIR)$(bindir)/$(RXVTNAME)$(EXEEXT) |
48 | RXVTC_BINNAME=$(DESTDIR)$(bindir)/$(RXVTNAME)c$(EXEEXT) |
48 | RXVTC_BINNAME=$(DESTDIR)$(bindir)/$(RXVTNAME)c$(EXEEXT) |
49 | RXVTD_BINNAME=$(DESTDIR)$(bindir)/$(RXVTNAME)d$(EXEEXT) |
49 | RXVTD_BINNAME=$(DESTDIR)$(bindir)/$(RXVTNAME)d$(EXEEXT) |
|
|
50 | RCLOCK_BINNAME=$(DESTDIR)$(bindir)/urclock$(EXEEXT) |
50 | |
51 | |
51 | # |
52 | # |
52 | # Distribution variables |
53 | # Distribution variables |
53 | # |
54 | # |
54 | |
55 | |
… | |
… | |
70 | $(LINK) -o $@ rxvtd.o $(COMMON) $(COMMON_DAEMON) $(LIBS) $(XLIB) $(PERLLIB) |
71 | $(LINK) -o $@ rxvtd.o $(COMMON) $(COMMON_DAEMON) $(LIBS) $(XLIB) $(PERLLIB) |
71 | |
72 | |
72 | rxvtc: rxvtc.o $(COMMON_DAEMON) fdpass_wrapper.o |
73 | rxvtc: rxvtc.o $(COMMON_DAEMON) fdpass_wrapper.o |
73 | $(LINK) -o $@ rxvtc.o $(COMMON_DAEMON) fdpass_wrapper.o $(LIBS) |
74 | $(LINK) -o $@ rxvtc.o $(COMMON_DAEMON) fdpass_wrapper.o $(LIBS) |
74 | |
75 | |
|
|
76 | rclock: rclock.o |
|
|
77 | $(LINK) -o $@ rclock.o $(LIBS) $(XLIB) |
|
|
78 | |
75 | #------------------------------------------------------------------------- |
79 | #------------------------------------------------------------------------- |
76 | |
80 | |
77 | #EXUBERANT_OPTS = -I NOTHROW -I THROW |
81 | #EXUBERANT_OPTS = -I NOTHROW -I THROW |
78 | |
82 | |
79 | tags: *.[Ch] |
83 | tags: *.[Ch] |
80 | ctags $(EXUBERANT_OPTS) *.[Ch] |
84 | ctags $(EXUBERANT_OPTS) *.[Ch] |
81 | |
85 | |
82 | TAGS: *.[Ch] |
86 | TAGS: *.[Ch] |
83 | etags $(EXUBERANT_OPTS) *.[Ch] |
87 | etags $(EXUBERANT_OPTS) *.[Ch] |
84 | |
88 | |
85 | allbin: rxvt rxvtd rxvtc |
89 | allbin: rxvt rxvtd rxvtc rclock |
86 | |
90 | |
87 | alldoc: |
91 | alldoc: |
88 | |
92 | |
89 | clean: |
93 | clean: |
90 | rm -f rxvt rxvtc rxvtd perlxsi.c rxvtperl.C manlst mantmp |
94 | rm -f rxvt rxvtc rxvtd perlxsi.c rxvtperl.C manlst mantmp |
… | |
… | |
105 | @IF_PERL@ $(INSTALL) -d $(DESTDIR)$(man1dir) |
109 | @IF_PERL@ $(INSTALL) -d $(DESTDIR)$(man1dir) |
106 | @IF_PERL@ $(INSTALL) -d $(DESTDIR)$(man3dir) |
110 | @IF_PERL@ $(INSTALL) -d $(DESTDIR)$(man3dir) |
107 | @IF_PERL@ $(INSTALL_DATA) $(srcdir)/urxvt.pm $(DESTDIR)$(libdir)/urxvt/urxvt.pm |
111 | @IF_PERL@ $(INSTALL_DATA) $(srcdir)/urxvt.pm $(DESTDIR)$(libdir)/urxvt/urxvt.pm |
108 | @IF_PERL@ for ext in $(srcdir)/perl/*; do \ |
112 | @IF_PERL@ for ext in $(srcdir)/perl/*; do \ |
109 | @IF_PERL@ test -f "$$ext" || continue; \ |
113 | @IF_PERL@ test -f "$$ext" || continue; \ |
110 | @IF_PERL@ base="$${ext##*/}"; \ |
114 | @IF_PERL@ base=`basename "$$ext"`; \ |
111 | @IF_PERL@ $(INSTALL_DATA) "$$ext" $(DESTDIR)$(libdir)/urxvt/perl/; \ |
115 | @IF_PERL@ $(INSTALL_DATA) "$$ext" $(DESTDIR)$(libdir)/urxvt/perl/; \ |
112 | @IF_PERL@ < "$$ext" \ |
116 | @IF_PERL@ < "$$ext" \ |
113 | @IF_PERL@ $(PERL) -MPod::Man -e '(new Pod::Man name => "'urxvt-$$base'", $(PODOPTS))->parse_from_file' \ |
117 | @IF_PERL@ $(PERL) -MPod::Man -e '(new Pod::Man name => "'urxvt-$$base'", $(PODOPTS))->parse_from_file' \ |
114 | @IF_PERL@ > ../mantmp; \ |
118 | @IF_PERL@ > mantmp; \ |
115 | @IF_PERL@ test -s ../mantmp && $(INSTALL_DATA) ../mantmp $(DESTDIR)$(man1dir)/$(RXVTNAME)-$$base.$(man1ext); \ |
119 | @IF_PERL@ test -s mantmp && $(INSTALL_DATA) mantmp $(DESTDIR)$(man1dir)/$(RXVTNAME)-$$base.$(man1ext); \ |
116 | @IF_PERL@ < "$$ext" $(PERL) -ne '<>, (print <> . "\n"), exit if /^=head1/' >&3; \ |
120 | @IF_PERL@ < "$$ext" $(PERL) -ne '<>, (print <> . "\n"), exit if /^=head1/' >&3; \ |
117 | @IF_PERL@ done 3>manlst |
121 | @IF_PERL@ done 3>manlst |
118 | @IF_PERL@ cat $(srcdir)/../doc/extensions.pod.top manlst $(srcdir)/../doc/extensions.pod.bot | \ |
122 | @IF_PERL@ cat $(srcdir)/../doc/extensions.pod.top manlst $(srcdir)/../doc/extensions.pod.bot | \ |
119 | @IF_PERL@ $(PERL) -MPod::Man -e '(new Pod::Man name => "$(RXVTNAME)-extensions", $(PODOPTS))->parse_from_file' \ |
123 | @IF_PERL@ $(PERL) -MPod::Man -e '(new Pod::Man name => "$(RXVTNAME)-extensions", $(PODOPTS))->parse_from_file' \ |
120 | @IF_PERL@ > mantmp |
124 | @IF_PERL@ > mantmp |
… | |
… | |
127 | install-bin: allbin |
131 | install-bin: allbin |
128 | $(INSTALL) -d $(DESTDIR)$(bindir) |
132 | $(INSTALL) -d $(DESTDIR)$(bindir) |
129 | $(INSTALL_PROGRAM) rxvt $(RXVT_BINNAME) |
133 | $(INSTALL_PROGRAM) rxvt $(RXVT_BINNAME) |
130 | $(INSTALL_PROGRAM) rxvtc $(RXVTC_BINNAME) |
134 | $(INSTALL_PROGRAM) rxvtc $(RXVTC_BINNAME) |
131 | $(INSTALL_PROGRAM) rxvtd $(RXVTD_BINNAME) |
135 | $(INSTALL_PROGRAM) rxvtd $(RXVTD_BINNAME) |
|
|
136 | $(INSTALL_PROGRAM) rclock $(RCLOCK_BINNAME) |
132 | |
137 | |
133 | install: install-bin install-perl |
138 | install: install-bin install-perl |
134 | |
139 | |
135 | perlxsi.c: Makefile |
140 | perlxsi.c: Makefile |
136 | $(PERL) -MExtUtils::Embed -e xsinit -- -std urxvt |
141 | $(PERL) -MExtUtils::Embed -e xsinit -- -std urxvt |
137 | |
142 | |
138 | rxvtperl.C: rxvtperl.xs iom_perl.h iom_perl.xs typemap typemap.iom |
143 | rxvtperl.C: rxvtperl.xs iom_perl.h iom_perl.xs typemap typemap.iom |
139 | PERL="$(PERL)" $(PERL) @PERLPRIVLIBEXP@/ExtUtils/xsubpp -C++ -typemap @PERLPRIVLIBEXP@/ExtUtils/typemap -typemap typemap.iom -typemap typemap -prototypes $(srcdir)/rxvtperl.xs >$@ |
144 | PERL="$(PERL)" $(PERL) @PERLPRIVLIBEXP@/ExtUtils/xsubpp -C++ -typemap @PERLPRIVLIBEXP@/ExtUtils/typemap -typemap 'typemap.iom' -typemap 'typemap' -prototypes $(srcdir)/rxvtperl.xs >$@ |
140 | |
145 | |
141 | rxvtperl.o: rxvtperl.C perlxsi.c |
146 | rxvtperl.o: rxvtperl.C perlxsi.c |
142 | $(COMPILE) $(PERLFLAGS) -DLIBDIR="\"$(libdir)/urxvt\"" -c $< |
147 | $(COMPILE) $(PERLFLAGS) -DLIBDIR="\"$(libdir)/urxvt\"" -c $< |
143 | |
148 | |
144 | depend: |
149 | depend: |
145 | makedepend -f Makefile.in -I. -I.. -I../libptytty/src -I../libev -Y *.C *.xs >/dev/null 2>&1 |
150 | makedepend -f Makefile.in -I. -I.. -I../libptytty/src -I../libev -Y *.C *.xs >/dev/null 2>&1 |
146 | |
151 | |
|
|
152 | # makedepend has trouble finding these |
|
|
153 | ev_cpp.o: ../libev/ev.c ../libev/ev_epoll.c ../libev/ev_kqueue.c ../libev/ev_linuxaio.c |
|
|
154 | ev_cpp.o: ../libev/ev_poll.c ../libev/ev_port.c ../libev/ev_select.c ../libev/ev_win32.c |
|
|
155 | |
|
|
156 | |
147 | # DO NOT DELETE: nice dependency list follows |
157 | # DO NOT DELETE: nice dependency list follows |
148 | |
158 | |
149 | background.o: ../config.h rxvt.h feature.h ../libptytty/src/ecb.h encoding.h |
|
|
150 | background.o: rxvtutil.h ../libptytty/src/estl.h emman.h rxvtfont.h |
|
|
151 | background.o: rxvttoolkit.h ev_cpp.h ../config.h ../libev/ev++.h |
|
|
152 | background.o: ../libev/ev.h callback.h rxvtimg.h scrollbar.h |
|
|
153 | background.o: ../libptytty/src/libptytty.h rxvtperl.h hookinc.h rsinc.h |
|
|
154 | background.o: optinc.h |
|
|
155 | command.o: ../config.h rxvt.h feature.h ../libptytty/src/ecb.h encoding.h |
159 | command.o: ../config.h rxvt.h feature.h ../libptytty/src/ecb.h encoding.h |
156 | command.o: rxvtutil.h ../libptytty/src/estl.h emman.h rxvtfont.h |
160 | command.o: rxvtutil.h ../libptytty/src/estl.h emman.h rxvtfont.h |
157 | command.o: rxvttoolkit.h ev_cpp.h ../config.h ../libev/ev++.h ../libev/ev.h |
161 | command.o: rxvttoolkit.h ev_cpp.h ../config.h ../libev/ev++.h ../libev/ev.h |
158 | command.o: callback.h rxvtimg.h scrollbar.h ../libptytty/src/libptytty.h |
162 | command.o: callback.h rxvtimg.h scrollbar.h ../libptytty/src/libptytty.h |
159 | command.o: rxvtperl.h hookinc.h rsinc.h optinc.h version.h command.h |
163 | command.o: rxvtperl.h hookinc.h rsinc.h optinc.h version.h command.h |
… | |
… | |
173 | encoding.o: table/cns11643_1992_f.h table/big5_ext.h table/big5_plus.h |
177 | 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 |
178 | 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 |
179 | encoding.o: table/jis0212_1990_0.h table/jis0213_1.h table/jis0213_2.h |
176 | encoding.o: table/compose.h table/category.h |
180 | 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 |
181 | 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 |
182 | ev_cpp.o: ../libev/ev_vars.h ../libev/ev_epoll.c ../libev/ev_select.c |
179 | fdpass_wrapper.o: ../libptytty/src/fdpass.C ../config.h |
183 | fdpass_wrapper.o: ../libptytty/src/fdpass.C ../config.h |
180 | fdpass_wrapper.o: ../libptytty/src/libptytty.h |
184 | fdpass_wrapper.o: ../libptytty/src/libptytty.h |
181 | init.o: ../config.h rxvt.h feature.h ../libptytty/src/ecb.h encoding.h |
185 | init.o: ../config.h rxvt.h feature.h ../libptytty/src/ecb.h encoding.h |
182 | init.o: rxvtutil.h ../libptytty/src/estl.h emman.h rxvtfont.h rxvttoolkit.h |
186 | init.o: rxvtutil.h ../libptytty/src/estl.h emman.h rxvtfont.h rxvttoolkit.h |
183 | init.o: ev_cpp.h ../config.h ../libev/ev++.h ../libev/ev.h callback.h |
187 | init.o: ev_cpp.h ../config.h ../libev/ev++.h ../libev/ev.h callback.h |
… | |
… | |
240 | rxvttoolkit.o: rxvtutil.h ../libptytty/src/estl.h emman.h rxvtfont.h |
244 | rxvttoolkit.o: rxvtutil.h ../libptytty/src/estl.h emman.h rxvtfont.h |
241 | rxvttoolkit.o: rxvttoolkit.h ev_cpp.h ../config.h ../libev/ev++.h |
245 | rxvttoolkit.o: rxvttoolkit.h ev_cpp.h ../config.h ../libev/ev++.h |
242 | rxvttoolkit.o: ../libev/ev.h callback.h rxvtimg.h scrollbar.h |
246 | rxvttoolkit.o: ../libev/ev.h callback.h rxvtimg.h scrollbar.h |
243 | rxvttoolkit.o: ../libptytty/src/libptytty.h rxvtperl.h hookinc.h rsinc.h |
247 | rxvttoolkit.o: ../libptytty/src/libptytty.h rxvtperl.h hookinc.h rsinc.h |
244 | rxvttoolkit.o: optinc.h |
248 | rxvttoolkit.o: optinc.h |
245 | rxvtutil.o: rxvtutil.h ../libptytty/src/ecb.h ../libptytty/src/estl.h emman.h |
249 | rxvtutil.o: emman.c emman.h ../libptytty/src/ecb.h rxvtutil.h |
246 | rxvtutil.o: emman.c |
250 | rxvtutil.o: ../libptytty/src/estl.h |
247 | screen.o: ../config.h rxvt.h feature.h ../libptytty/src/ecb.h encoding.h |
251 | screen.o: ../config.h rxvt.h feature.h ../libptytty/src/ecb.h encoding.h |
248 | screen.o: rxvtutil.h ../libptytty/src/estl.h emman.h rxvtfont.h rxvttoolkit.h |
252 | screen.o: rxvtutil.h ../libptytty/src/estl.h emman.h rxvtfont.h rxvttoolkit.h |
249 | screen.o: ev_cpp.h ../config.h ../libev/ev++.h ../libev/ev.h callback.h |
253 | screen.o: ev_cpp.h ../config.h ../libev/ev++.h ../libev/ev.h callback.h |
250 | screen.o: rxvtimg.h scrollbar.h ../libptytty/src/libptytty.h rxvtperl.h |
254 | screen.o: rxvtimg.h scrollbar.h ../libptytty/src/libptytty.h rxvtperl.h |
251 | screen.o: hookinc.h rsinc.h optinc.h |
255 | screen.o: hookinc.h rsinc.h optinc.h |