1 | # $Id: Makefile.in,v 1.3 2003/11/25 11:52:42 pcg Exp $ |
1 | # $Id: Makefile.in,v 1.8 2004/01/17 01:20:01 pcg Exp $ |
2 | @MCOMMON@ |
2 | @MCOMMON@ |
3 | |
3 | |
4 | LINT = lint -DNARROWPROTO=1 $(XINC) -chapbxz |
4 | LINT = lint -DNARROWPROTO=1 $(XINC) -chapbxz |
5 | |
5 | |
6 | srcdir = @srcdir@ |
6 | srcdir = @srcdir@ |
… | |
… | |
10 | top_builddir = .. |
10 | top_builddir = .. |
11 | basedir = .. |
11 | basedir = .. |
12 | thisdir = src |
12 | thisdir = src |
13 | MKDIR = @top_srcdir@/autoconf/mkinstalldirs |
13 | MKDIR = @top_srcdir@/autoconf/mkinstalldirs |
14 | |
14 | |
15 | SUPLIB = -lsupc++ |
15 | SUPLIB = -fno-exceptions -lsupc++ # TODO: only for g++ |
16 | |
16 | |
17 | # for developers: the following debug options may be used |
17 | # for developers: the following debug options may be used |
18 | # -DDEBUG_CMD -DDEBUG_MAIN -DDEBUG_MENU -DDEBUG_MENUARROWS |
18 | # -DDEBUG_CMD -DDEBUG_MAIN -DDEBUG_MENU -DDEBUG_MENUARROWS |
19 | # -DDEBUG_MENUBAR_STACKING -DDEBUG_MENU_LAYOUT -DDEBUG_RESOURCES |
19 | # -DDEBUG_MENUBAR_STACKING -DDEBUG_MENU_LAYOUT -DDEBUG_RESOURCES |
20 | # -DDEBUG_SCREEN -DDEBUG_SEARCH_PATH -DDEBUG_SELECT -DDEBUG_SIZE |
20 | # -DDEBUG_SCREEN -DDEBUG_SEARCH_PATH -DDEBUG_SELECT -DDEBUG_SIZE |
… | |
… | |
25 | dummy: |
25 | dummy: |
26 | |
26 | |
27 | LIBSRCS = command.C defaultfont.C graphics.C grkelot.C init.C logging.C \ |
27 | LIBSRCS = command.C defaultfont.C graphics.C grkelot.C init.C logging.C \ |
28 | main.C menubar.C misc.C netdisp.C ptytty.C screen.C scrollbar.C \ |
28 | main.C menubar.C misc.C netdisp.C ptytty.C screen.C scrollbar.C \ |
29 | scrollbar-rxvt.C scrollbar-next.C scrollbar-xterm.C strings.C \ |
29 | scrollbar-rxvt.C scrollbar-next.C scrollbar-xterm.C strings.C \ |
30 | xdefaults.C xpm.C encoding.C rxvtcolor.C rxvtvec.C iom.C |
30 | xdefaults.C xpm.C encoding.C rxvtcolor.C rxvtstl.C iom.C |
31 | |
31 | |
32 | SRCS = rxvt.C $(LIBSRCS) |
32 | SRCS = rxvt.C $(LIBSRCS) |
33 | |
33 | |
34 | HDRS = command.h defaultfont.h feature.h grkelot.h init.h logging.h \ |
34 | HDRS = command.h defaultfont.h feature.h grkelot.h init.h logging.h \ |
35 | menubar.h netdisp.h protos.h rxvt.h rxvtgrx.h version.h encoding.h \ |
35 | menubar.h netdisp.h protos.h rxvt.h rxvtgrx.h version.h encoding.h \ |
36 | rxvtvec.h iom.h |
36 | rxvtstl.h iom.h iom_conf.h |
37 | |
37 | |
38 | EXTRAHDRS = rxvtlib.h rxvtdaemon.h |
38 | EXTRAHDRS = rxvtlib.h rxvtdaemon.h |
39 | |
39 | |
40 | OBJS = command.o defaultfont.o init.o graphics.o grkelot.o logging.o \ |
40 | OBJS = command.o defaultfont.o init.o graphics.o grkelot.o logging.o \ |
41 | main.o menubar.o misc.o netdisp.o ptytty.o screen.o \ |
41 | main.o menubar.o misc.o netdisp.o ptytty.o screen.o \ |
42 | scrollbar.o scrollbar-next.o scrollbar-rxvt.o scrollbar-xterm.o \ |
42 | scrollbar.o scrollbar-next.o scrollbar-rxvt.o scrollbar-xterm.o \ |
43 | strings.o xdefaults.o xpm.o rxvt.o encoding.o rxvtcolor.o rxvtvec.o iom.o |
43 | strings.o xdefaults.o xpm.o rxvt.o encoding.o rxvtcolor.o rxvtstl.o iom.o |
44 | LIBOBJS = command.lo defaultfont.lo init.lo graphics.lo grkelot.lo logging.lo \ |
44 | LIBOBJS = command.lo defaultfont.lo init.lo graphics.lo grkelot.lo logging.lo \ |
45 | main.lo menubar.lo misc.lo netdisp.lo ptytty.lo screen.lo \ |
45 | main.lo menubar.lo misc.lo netdisp.lo ptytty.lo screen.lo \ |
46 | scrollbar.lo scrollbar-next.lo scrollbar-rxvt.lo scrollbar-xterm.lo \ |
46 | scrollbar.lo scrollbar-next.lo scrollbar-rxvt.lo scrollbar-xterm.lo \ |
47 | strings.lo xdefaults.lo xpm.lo encoding.lo rxvt.lo rxvtcolor.lo rxvtvec.lo iom.lo |
47 | strings.lo xdefaults.lo xpm.lo encoding.lo rxvt.lo rxvtcolor.lo rxvtstl.lo iom.lo |
48 | |
48 | |
49 | LIBVERSION = @LIBVERSION@ |
49 | LIBVERSION = @LIBVERSION@ |
50 | INSTALL_LIBRXVT = @INSTALL_LIBRXVT@ |
50 | INSTALL_LIBRXVT = @INSTALL_LIBRXVT@ |
51 | |
51 | |
52 | RXVT_BASENAME=`$(ECHO) $(RXVTNAME)|$(SED) 's/$(EXEEXT)$$//'|$(SED) '$(transform)'` |
52 | RXVT_BASENAME=`$(ECHO) $(RXVTNAME)|$(SED) 's/$(EXEEXT)$$//'|$(SED) '$(transform)'` |
53 | RXVT_BINNAME=$(DESTDIR)$(bindir)/$(RXVT_BASENAME)$(EXEEXT) |
53 | RXVT_BINNAME=$(DESTDIR)$(bindir)/$(RXVT_BASENAME)$(EXEEXT) |
54 | RXVT_VERNAME=$(DESTDIR)$(bindir)/$(RXVT_BASENAME)-$(VERSION)$(EXEEXT) |
54 | RXVT_VERNAME=$(DESTDIR)$(bindir)/$(RXVT_BASENAME)-$(VERSION)$(EXEEXT) |
|
|
55 | RXVTC_BINNAME=$(DESTDIR)$(bindir)/$(RXVT_BASENAME)c$(EXEEXT) |
|
|
56 | RXVTC_VERNAME=$(DESTDIR)$(bindir)/$(RXVT_BASENAME)c-$(VERSION)$(EXEEXT) |
|
|
57 | RXVTD_BINNAME=$(DESTDIR)$(bindir)/$(RXVT_BASENAME)d$(EXEEXT) |
|
|
58 | RXVTD_VERNAME=$(DESTDIR)$(bindir)/$(RXVT_BASENAME)d-$(VERSION)$(EXEEXT) |
55 | RXVT_OLDNAME=$(DESTDIR)$(bindir)/$(RXVT_BASENAME)-old$(EXEEXT) |
59 | RXVT_OLDNAME=$(DESTDIR)$(bindir)/$(RXVT_BASENAME)-old$(EXEEXT) |
56 | |
60 | |
57 | EXTPROS = command.extpro defaultfont.extpro graphics.extpro grkelot.extpro \ |
61 | EXTPROS = command.extpro defaultfont.extpro graphics.extpro grkelot.extpro \ |
58 | init.extpro logging.extpro main.extpro menubar.extpro misc.extpro \ |
62 | init.extpro logging.extpro main.extpro menubar.extpro misc.extpro \ |
59 | netdisp.extpro ptytty.extpro screen.extpro scrollbar.extpro \ |
63 | netdisp.extpro ptytty.extpro screen.extpro scrollbar.extpro \ |
… | |
… | |
127 | allbin: .protos rxvt rxvtd rxvtc |
131 | allbin: .protos rxvt rxvtd rxvtc |
128 | |
132 | |
129 | alldoc: |
133 | alldoc: |
130 | |
134 | |
131 | clean: |
135 | clean: |
132 | $(RMF) rxvt core a.out *.o *.lo *.bak *~ *.intpro *.extpro .libs/* librxvt.la tmpproto .protos *.tmp |
136 | $(RMF) rxvt rxvtc rxvtd core a.out *.o *.lo *.bak *~ *.intpro *.extpro .libs/* librxvt.la tmpproto .protos *.tmp |
133 | |
137 | |
134 | realclean: clean |
138 | realclean: clean |
135 | $(RMF) tags librxvt.h |
139 | $(RMF) tags librxvt.h |
136 | |
140 | |
137 | cleandir: realclean |
141 | cleandir: realclean |
… | |
… | |
146 | $(ECHO) "$(LIBTOOL) --mode=install $(INSTALL_DATA) rxvtlib.h $(DESTDIR)$(includedir)/rxvtlib.h"; \ |
150 | $(ECHO) "$(LIBTOOL) --mode=install $(INSTALL_DATA) rxvtlib.h $(DESTDIR)$(includedir)/rxvtlib.h"; \ |
147 | $(LIBTOOL) --mode=install $(INSTALL_DATA) rxvtlib.h $(DESTDIR)$(includedir)/rxvtlib.h; \ |
151 | $(LIBTOOL) --mode=install $(INSTALL_DATA) rxvtlib.h $(DESTDIR)$(includedir)/rxvtlib.h; \ |
148 | $(ECHO) "$(LIBTOOL) --mode=install $(INSTALL_PROGRAM) librxvt.la $(DESTDIR)$(libdir)/librxvt.la"; \ |
152 | $(ECHO) "$(LIBTOOL) --mode=install $(INSTALL_PROGRAM) librxvt.la $(DESTDIR)$(libdir)/librxvt.la"; \ |
149 | $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) librxvt.la $(DESTDIR)$(libdir)/librxvt.la; \ |
153 | $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) librxvt.la $(DESTDIR)$(libdir)/librxvt.la; \ |
150 | fi |
154 | fi |
151 | @if test -f $(RXVT_BINNAME); then \ |
|
|
152 | $(ECHO) "$(RMF) $(RXVT_OLDNAME)"; \ |
|
|
153 | $(RMF) $(RXVT_OLDNAME); \ |
155 | $(RMF) $(RXVT_BINNAME) |
154 | $(ECHO) "$(MV) $(RXVT_BINNAME) $(RXVT_OLDNAME)"; \ |
156 | $(RMF) $(RXVTC_BINNAME) |
155 | $(MV) $(RXVT_BINNAME) $(RXVT_OLDNAME); \ |
157 | $(RMF) $(RXVTD_BINNAME) |
156 | fi |
|
|
157 | @$(ECHO) "$(LIBTOOL) --mode=install $(INSTALL_PROGRAM) rxvt $(RXVT_VERNAME)" |
|
|
158 | @$(LIBTOOL) --mode=install $(INSTALL_PROGRAM) rxvt $(RXVT_VERNAME) |
158 | $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) rxvt $(RXVT_VERNAME) |
159 | @$(ECHO) "$(LN) $(RXVT_VERNAME) $(RXVT_BINNAME)" |
159 | $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) rxvtc $(RXVTC_VERNAME) |
|
|
160 | $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) rxvtd $(RXVTD_VERNAME) |
160 | @$(LN) $(RXVT_VERNAME) $(RXVT_BINNAME) |
161 | $(LN) $(RXVT_VERNAME) $(RXVT_BINNAME) |
|
|
162 | $(LN) $(RXVTC_VERNAME) $(RXVTC_BINNAME) |
|
|
163 | $(LN) $(RXVTD_VERNAME) $(RXVTD_BINNAME) |
161 | |
164 | |
162 | uninstall: |
165 | uninstall: |
163 | @$(ECHO) $(RMF) $(RXVT_VERNAME) |
166 | @$(ECHO) $(RMF) $(RXVT_VERNAME) |
164 | @$(RMF) $(RXVT_VERNAME) |
167 | @$(RMF) $(RXVT_VERNAME) |
165 | @$(ECHO) "$(LIBTOOL) --mode=uninstall $(RMF) $(RXVT_BINNAME)" |
168 | @$(ECHO) "$(LIBTOOL) --mode=uninstall $(RMF) $(RXVT_BINNAME)" |
… | |
… | |
179 | |
182 | |
180 | # ----------------------------------------------------------------------- |
183 | # ----------------------------------------------------------------------- |
181 | # DO NOT DELETE: nice dependency list follows |
184 | # DO NOT DELETE: nice dependency list follows |
182 | # |
185 | # |
183 | |
186 | |
184 | defaultfont.h: encoding.h rxvtvec.h |
187 | defaultfont.h: encoding.h rxvtstl.h |
185 | rxvtlib.h: rxvtcolor.h defaultfont.h |
188 | rxvtlib.h: rxvtcolor.h defaultfont.h |
186 | iom.o: iom.C iom.h |
|
|
187 | rxvtdaemon.o: rxvtdaemon.C rxvtdaemon.h |
189 | rxvtdaemon.o: rxvtdaemon.C rxvtdaemon.h |
188 | rxvtd.o: rxvtd.C $(DEPS) rxvtdaemon.h rxvtvec.h |
190 | rxvtd.o: rxvtd.C $(DEPS) rxvtdaemon.h rxvtstl.h |
189 | rxvtc.o: rxvtc.C $(DEPS) rxvtdaemon.h rxvtvec.h |
191 | rxvtc.o: rxvtc.C $(DEPS) rxvtdaemon.h rxvtstl.h |
190 | |
192 | |
191 | command.o: command.C $(DEPS) command.intpro command.h version.h |
193 | command.o: command.C $(DEPS) command.intpro command.h version.h |
192 | defaultfont.o: defaultfont.C $(DEPS) defaultfont.intpro defaultfont.h |
194 | defaultfont.o: defaultfont.C $(DEPS) defaultfont.intpro defaultfont.h |
193 | graphics.o: graphics.C $(DEPS) graphics.intpro |
195 | graphics.o: graphics.C $(DEPS) graphics.intpro |
194 | grkelot.o: grkelot.C $(DEPS) grkelot.intpro grkelot.h |
196 | grkelot.o: grkelot.C $(DEPS) grkelot.intpro grkelot.h |
… | |
… | |
208 | strings.o: strings.C $(DEPS) strings.intpro |
210 | strings.o: strings.C $(DEPS) strings.intpro |
209 | xdefaults.o: xdefaults.C $(DEPS) xdefaults.intpro version.h |
211 | xdefaults.o: xdefaults.C $(DEPS) xdefaults.intpro version.h |
210 | xpm.o: xpm.C $(DEPS) xpm.intpro |
212 | xpm.o: xpm.C $(DEPS) xpm.intpro |
211 | encoding.o: encoding.C $(DEPS) encoding.h |
213 | encoding.o: encoding.C $(DEPS) encoding.h |
212 | rxvtcolor.o: rxvtcolor.C $(DEPS) |
214 | rxvtcolor.o: rxvtcolor.C $(DEPS) |
|
|
215 | iom.o: iom.C $(DEPS) iom.h |
213 | |
216 | |
214 | command.lo: command.C $(DEPS) command.intpro command.h version.h |
217 | command.lo: command.C $(DEPS) command.intpro command.h version.h |
215 | defaultfont.lo: defaultfont.C $(DEPS) defaultfont.intpro defaultfont.h encoding.h |
218 | defaultfont.lo: defaultfont.C $(DEPS) defaultfont.intpro defaultfont.h encoding.h |
216 | graphics.lo: graphics.C $(DEPS) graphics.intpro defaultfont.h |
219 | graphics.lo: graphics.C $(DEPS) graphics.intpro defaultfont.h |
217 | grkelot.lo: grkelot.C $(DEPS) grkelot.intpro grkelot.h |
220 | grkelot.lo: grkelot.C $(DEPS) grkelot.intpro grkelot.h |
… | |
… | |
231 | strings.lo: strings.C $(DEPS) strings.intpro |
234 | strings.lo: strings.C $(DEPS) strings.intpro |
232 | xdefaults.lo: xdefaults.C $(DEPS) xdefaults.intpro version.h |
235 | xdefaults.lo: xdefaults.C $(DEPS) xdefaults.intpro version.h |
233 | xpm.lo: xpm.C $(DEPS) xpm.intpro |
236 | xpm.lo: xpm.C $(DEPS) xpm.intpro |
234 | encoding.lo: encoding.C $(DEPS) encoding.h |
237 | encoding.lo: encoding.C $(DEPS) encoding.h |
235 | rxvtcolor.lo: rxvtcolor.C $(DEPS) |
238 | rxvtcolor.lo: rxvtcolor.C $(DEPS) |
|
|
239 | iom.lo: iom.C $(DEPS) iom.h |
236 | |
240 | |
237 | |
241 | |