… | |
… | |
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 |
|
|
78 | |
|
|
79 | tags: *.[Ch] |
81 | tags: *.[Ch] |
80 | ctags $(EXUBERANT_OPTS) *.[Ch] |
82 | ctags *.[Ch] |
81 | |
83 | |
82 | TAGS: *.[Ch] |
84 | TAGS: *.[Ch] |
83 | etags $(EXUBERANT_OPTS) *.[Ch] |
85 | etags *.[Ch] |
84 | |
86 | |
85 | allbin: rxvt rxvtd rxvtc |
87 | allbin: rxvt rxvtd rxvtc rclock |
86 | |
88 | |
87 | alldoc: |
89 | alldoc: |
88 | |
90 | |
89 | clean: |
91 | clean: |
90 | rm -f rxvt rxvtc rxvtd perlxsi.c rxvtperl.C manlst mantmp |
92 | rm -f rxvt rxvtc rxvtd perlxsi.c rxvtperl.C manlst mantmp |
… | |
… | |
105 | @IF_PERL@ $(INSTALL) -d $(DESTDIR)$(man1dir) |
107 | @IF_PERL@ $(INSTALL) -d $(DESTDIR)$(man1dir) |
106 | @IF_PERL@ $(INSTALL) -d $(DESTDIR)$(man3dir) |
108 | @IF_PERL@ $(INSTALL) -d $(DESTDIR)$(man3dir) |
107 | @IF_PERL@ $(INSTALL_DATA) $(srcdir)/urxvt.pm $(DESTDIR)$(libdir)/urxvt/urxvt.pm |
109 | @IF_PERL@ $(INSTALL_DATA) $(srcdir)/urxvt.pm $(DESTDIR)$(libdir)/urxvt/urxvt.pm |
108 | @IF_PERL@ for ext in $(srcdir)/perl/*; do \ |
110 | @IF_PERL@ for ext in $(srcdir)/perl/*; do \ |
109 | @IF_PERL@ test -f "$$ext" || continue; \ |
111 | @IF_PERL@ test -f "$$ext" || continue; \ |
110 | @IF_PERL@ base="$${ext##*/}"; \ |
112 | @IF_PERL@ base=`basename "$$ext"`; \ |
111 | @IF_PERL@ $(INSTALL_DATA) "$$ext" $(DESTDIR)$(libdir)/urxvt/perl/; \ |
113 | @IF_PERL@ $(INSTALL_DATA) "$$ext" $(DESTDIR)$(libdir)/urxvt/perl/; \ |
112 | @IF_PERL@ < "$$ext" \ |
114 | @IF_PERL@ < "$$ext" \ |
113 | @IF_PERL@ $(PERL) -MPod::Man -e '(new Pod::Man name => "'urxvt-$$base'", $(PODOPTS))->parse_from_file' \ |
115 | @IF_PERL@ $(PERL) -MPod::Man -e '(new Pod::Man name => "'urxvt-$$base'", $(PODOPTS))->parse_from_file' \ |
114 | @IF_PERL@ > mantmp; \ |
116 | @IF_PERL@ > mantmp; \ |
115 | @IF_PERL@ test -s mantmp && $(INSTALL_DATA) mantmp $(DESTDIR)$(man1dir)/$(RXVTNAME)-$$base.$(man1ext); \ |
117 | @IF_PERL@ test -s mantmp && $(INSTALL_DATA) mantmp $(DESTDIR)$(man1dir)/$(RXVTNAME)-$$base.$(man1ext); \ |
… | |
… | |
127 | install-bin: allbin |
129 | install-bin: allbin |
128 | $(INSTALL) -d $(DESTDIR)$(bindir) |
130 | $(INSTALL) -d $(DESTDIR)$(bindir) |
129 | $(INSTALL_PROGRAM) rxvt $(RXVT_BINNAME) |
131 | $(INSTALL_PROGRAM) rxvt $(RXVT_BINNAME) |
130 | $(INSTALL_PROGRAM) rxvtc $(RXVTC_BINNAME) |
132 | $(INSTALL_PROGRAM) rxvtc $(RXVTC_BINNAME) |
131 | $(INSTALL_PROGRAM) rxvtd $(RXVTD_BINNAME) |
133 | $(INSTALL_PROGRAM) rxvtd $(RXVTD_BINNAME) |
|
|
134 | $(INSTALL_PROGRAM) rclock $(RCLOCK_BINNAME) |
132 | |
135 | |
133 | install: install-bin install-perl |
136 | install: install-bin install-perl |
134 | |
137 | |
135 | perlxsi.c: Makefile |
138 | perlxsi.c: Makefile |
136 | $(PERL) -MExtUtils::Embed -e xsinit -- -std urxvt |
139 | $(PERL) -MExtUtils::Embed -e xsinit -- -std urxvt |
137 | |
140 | |
138 | rxvtperl.C: rxvtperl.xs iom_perl.h iom_perl.xs typemap typemap.iom |
141 | 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 >$@ |
142 | PERL="$(PERL)" $(PERL) @PERLPRIVLIBEXP@/ExtUtils/xsubpp -C++ -typemap @PERLPRIVLIBEXP@/ExtUtils/typemap -typemap 'typemap.iom' -typemap 'typemap' -prototypes $(srcdir)/rxvtperl.xs >$@ |
140 | |
143 | |
141 | rxvtperl.o: rxvtperl.C perlxsi.c |
144 | rxvtperl.o: rxvtperl.C perlxsi.c |
142 | $(COMPILE) $(PERLFLAGS) -DLIBDIR="\"$(libdir)/urxvt\"" -c $< |
145 | $(COMPILE) $(PERLFLAGS) -DLIBDIR="\"$(libdir)/urxvt\"" -c $< |
143 | |
146 | |
144 | depend: |
147 | depend: |
145 | makedepend -f Makefile.in -I. -I.. -I../libptytty/src -I../libev -Y *.C *.xs >/dev/null 2>&1 |
148 | makedepend -f Makefile.in -I. -I.. -I../libptytty/src -I../libev -Y *.C *.xs >/dev/null 2>&1 |
146 | |
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 | |
147 | # DO NOT DELETE: nice dependency list follows |
155 | # DO NOT DELETE: nice dependency list follows |
148 | |
156 | |
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 |
157 | 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 |
158 | 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 |
159 | 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 |
160 | 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 |
161 | command.o: rxvtperl.h hookinc.h rsinc.h optinc.h version.h command.h |
… | |
… | |
240 | rxvttoolkit.o: rxvtutil.h ../libptytty/src/estl.h emman.h rxvtfont.h |
242 | 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 |
243 | rxvttoolkit.o: rxvttoolkit.h ev_cpp.h ../config.h ../libev/ev++.h |
242 | rxvttoolkit.o: ../libev/ev.h callback.h rxvtimg.h scrollbar.h |
244 | rxvttoolkit.o: ../libev/ev.h callback.h rxvtimg.h scrollbar.h |
243 | rxvttoolkit.o: ../libptytty/src/libptytty.h rxvtperl.h hookinc.h rsinc.h |
245 | rxvttoolkit.o: ../libptytty/src/libptytty.h rxvtperl.h hookinc.h rsinc.h |
244 | rxvttoolkit.o: optinc.h |
246 | rxvttoolkit.o: optinc.h |
245 | rxvtutil.o: rxvtutil.h ../libptytty/src/ecb.h ../libptytty/src/estl.h emman.h |
247 | rxvtutil.o: emman.c emman.h ../libptytty/src/ecb.h rxvtutil.h |
246 | rxvtutil.o: emman.c |
248 | rxvtutil.o: ../libptytty/src/estl.h |
247 | screen.o: ../config.h rxvt.h feature.h ../libptytty/src/ecb.h encoding.h |
249 | 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 |
250 | 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 |
251 | 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 |
252 | screen.o: rxvtimg.h scrollbar.h ../libptytty/src/libptytty.h rxvtperl.h |
251 | screen.o: hookinc.h rsinc.h optinc.h |
253 | screen.o: hookinc.h rsinc.h optinc.h |