1 |
# $Id: Makefile.in,v 1.8 2003/11/24 04:32:45 root Exp $ |
2 |
@MCOMMON@ |
3 |
|
4 |
LINT = lint -DNARROWPROTO=1 $(XINC) -chapbxz |
5 |
|
6 |
srcdir = @srcdir@ |
7 |
VPATH = @srcdir@ |
8 |
.PATH: @srcdir@ |
9 |
|
10 |
top_builddir = .. |
11 |
basedir = .. |
12 |
thisdir = src |
13 |
MKDIR = @top_srcdir@/autoconf/mkinstalldirs |
14 |
|
15 |
SUPLIB = -lsupc++ |
16 |
|
17 |
# for developers: the following debug options may be used |
18 |
# -DDEBUG_CMD -DDEBUG_MAIN -DDEBUG_MENU -DDEBUG_MENUARROWS |
19 |
# -DDEBUG_MENUBAR_STACKING -DDEBUG_MENU_LAYOUT -DDEBUG_RESOURCES |
20 |
# -DDEBUG_SCREEN -DDEBUG_SEARCH_PATH -DDEBUG_SELECT -DDEBUG_SIZE |
21 |
# -DDEBUG_TTY -DDEBUG_TTYMODE -DDEBUG_X |
22 |
DEBUG=-DDEBUG_STRICT @DEBUG@ |
23 |
|
24 |
first_rule: all |
25 |
dummy: |
26 |
|
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 \ |
29 |
scrollbar-rxvt.C scrollbar-next.C scrollbar-xterm.C strings.C \ |
30 |
xdefaults.C xpm.C encoding.C rxvtcolor.C rxvtvec.C |
31 |
|
32 |
SRCS = rxvt.C $(LIBSRCS) |
33 |
|
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 rxvtvec.h |
36 |
|
37 |
EXTRAHDRS = rxvtlib.h rxvtdaemon.h |
38 |
|
39 |
OBJS = command.o defaultfont.o init.o graphics.o grkelot.o logging.o \ |
40 |
main.o menubar.o misc.o netdisp.o ptytty.o screen.o \ |
41 |
scrollbar.o scrollbar-next.o scrollbar-rxvt.o scrollbar-xterm.o \ |
42 |
strings.o xdefaults.o xpm.o rxvt.o encoding.o rxvtcolor.o rxvtvec.o |
43 |
LIBOBJS = command.lo defaultfont.lo init.lo graphics.lo grkelot.lo logging.lo \ |
44 |
main.lo menubar.lo misc.lo netdisp.lo ptytty.lo screen.lo \ |
45 |
scrollbar.lo scrollbar-next.lo scrollbar-rxvt.lo scrollbar-xterm.lo \ |
46 |
strings.lo xdefaults.lo xpm.lo encoding.lo rxvt.lo rxvtcolor.lo rxvtvec.lo |
47 |
|
48 |
LIBVERSION = @LIBVERSION@ |
49 |
INSTALL_LIBRXVT = @INSTALL_LIBRXVT@ |
50 |
|
51 |
RXVT_BASENAME=`$(ECHO) $(RXVTNAME)|$(SED) 's/$(EXEEXT)$$//'|$(SED) '$(transform)'` |
52 |
RXVT_BINNAME=$(DESTDIR)$(bindir)/$(RXVT_BASENAME)$(EXEEXT) |
53 |
RXVT_VERNAME=$(DESTDIR)$(bindir)/$(RXVT_BASENAME)-$(VERSION)$(EXEEXT) |
54 |
RXVT_OLDNAME=$(DESTDIR)$(bindir)/$(RXVT_BASENAME)-old$(EXEEXT) |
55 |
|
56 |
EXTPROS = command.extpro defaultfont.extpro graphics.extpro grkelot.extpro \ |
57 |
init.extpro logging.extpro main.extpro menubar.extpro misc.extpro \ |
58 |
netdisp.extpro ptytty.extpro screen.extpro scrollbar.extpro \ |
59 |
scrollbar-rxvt.extpro scrollbar-next.extpro scrollbar-xterm.extpro \ |
60 |
strings.extpro xdefaults.extpro xpm.extpro |
61 |
|
62 |
INTPROS = command.intpro defaultfont.intpro graphics.intpro grkelot.intpro \ |
63 |
init.intpro logging.intpro main.intpro menubar.intpro misc.intpro \ |
64 |
netdisp.intpro ptytty.intpro screen.intpro scrollbar.intpro \ |
65 |
scrollbar-rxvt.intpro scrollbar-next.intpro scrollbar-xterm.intpro \ |
66 |
strings.intpro xdefaults.intpro xpm.intpro |
67 |
|
68 |
DEPS = rxvt.h rxvtlib.h ${basedir}/config.h feature.h .protos |
69 |
|
70 |
# |
71 |
# Distribution variables |
72 |
# |
73 |
|
74 |
DIST = $(HDRS) $(SRCS) Makefile.in gcc-Wall rxvtlib.h.in .indent.pro \ |
75 |
makeintprotos-awk makeextprotos-awk $(INTPROS) $(EXTPROS) .protos |
76 |
|
77 |
.SUFFIXES: .C .o .extpro .intpro .lo |
78 |
|
79 |
#------------------------------------------------------------------------- |
80 |
# inference rules |
81 |
.C.o: |
82 |
$(COMPILE) -c $< |
83 |
|
84 |
.C.lo: |
85 |
$(LIBTOOL) --mode=compile $(COMPILE) -c $< |
86 |
|
87 |
.s.lo: |
88 |
$(LIBTOOL) --mode=compile $(COMPILE) -c $< |
89 |
|
90 |
.S.lo: |
91 |
$(LIBTOOL) --mode=compile $(COMPILE) -c $< |
92 |
|
93 |
.C.intpro: |
94 |
@$(RMF) $@.tmp |
95 |
@$(AWK) -f $(srcdir)/makeintprotos-awk $< > $@.tmp |
96 |
@if $(CMP) -s $@ $@.tmp ; then : ; else $(ECHO) "$(AWK) -f $(srcdir)/makeintprotos-awk $< > $@"; $(CP) $@.tmp $@; fi |
97 |
@$(RMF) $@.tmp |
98 |
|
99 |
.C.extpro: |
100 |
@$(RMF) $@.tmp |
101 |
@$(AWK) -f $(srcdir)/makeextprotos-awk $< > $@.tmp |
102 |
@if $(CMP) -s $@ $@.tmp ; then : ; else $(ECHO) "$(AWK) -f $(srcdir)/makeextprotos-awk $< > $@"; $(CP) $@.tmp $@; fi |
103 |
@$(RMF) $@.tmp |
104 |
#------------------------------------------------------------------------- |
105 |
all: allbin |
106 |
|
107 |
rxvt: version.h rxvt.o librxvt.la |
108 |
$(LIBTOOL) --mode=link $(LINK) rxvt.o librxvt.la $(LIBS) $(XLIB) $(DLIB) $(SUPLIB) -o $@ |
109 |
|
110 |
rxvtd: version.h rxvtd.o librxvt.la iom.o rxvtdaemon.o |
111 |
$(LIBTOOL) --mode=link $(LINK) rxvtd.o rxvtdaemon.o iom.o librxvt.la $(LIBS) $(XLIB) $(DLIB) $(SUPLIB) -o $@ |
112 |
|
113 |
rxvtc: version.h rxvtc.o rxvtdaemon.o |
114 |
$(LIBTOOL) --mode=link $(LINK) rxvtc.o rxvtdaemon.o $(LIBS) $(DLIB) $(SUPLIB) -o $@ |
115 |
|
116 |
.protos: $(EXTPROS) |
117 |
@$(RMF) .protos |
118 |
date >.protos |
119 |
|
120 |
librxvt.la: $(LIBOBJS) |
121 |
$(LIBTOOL) --mode=link $(LINK) -rpath $(libdir) -version-info $(LIBVERSION) $(LIBOBJS) $(LIBS) $(SUPLIB) -o $@ |
122 |
#------------------------------------------------------------------------- |
123 |
tags: $(SRCS) $(HDRS) $(EXTRAHDRS) |
124 |
ctags $(SRCS) $(HDRS) $(EXTRAHDRS) |
125 |
|
126 |
allbin: .protos rxvt rxvtd rxvtc |
127 |
|
128 |
alldoc: |
129 |
|
130 |
clean: |
131 |
$(RMF) rxvt core a.out *.o *.lo *.bak *~ *.intpro *.extpro .libs/* librxvt.la tmpproto .protos *.tmp |
132 |
|
133 |
realclean: clean |
134 |
$(RMF) tags librxvt.h |
135 |
|
136 |
cleandir: realclean |
137 |
|
138 |
distclean: realclean |
139 |
if test $(srcdir) = .; then $(MAKE) realclean; fi |
140 |
(cd $(srcdir); $(RMF) Makefile) |
141 |
|
142 |
install: allbin alldoc |
143 |
$(MKDIR) $(DESTDIR)$(includedir) $(DESTDIR)$(libdir) $(DESTDIR)$(bindir) |
144 |
@if test x$(INSTALL_LIBRXVT) = xyes; then \ |
145 |
$(ECHO) "$(LIBTOOL) --mode=install $(INSTALL_DATA) rxvtlib.h $(DESTDIR)$(includedir)/rxvtlib.h"; \ |
146 |
$(LIBTOOL) --mode=install $(INSTALL_DATA) rxvtlib.h $(DESTDIR)$(includedir)/rxvtlib.h; \ |
147 |
$(ECHO) "$(LIBTOOL) --mode=install $(INSTALL_PROGRAM) librxvt.la $(DESTDIR)$(libdir)/librxvt.la"; \ |
148 |
$(LIBTOOL) --mode=install $(INSTALL_PROGRAM) librxvt.la $(DESTDIR)$(libdir)/librxvt.la; \ |
149 |
fi |
150 |
@if test -f $(RXVT_BINNAME); then \ |
151 |
$(ECHO) "$(RMF) $(RXVT_OLDNAME)"; \ |
152 |
$(RMF) $(RXVT_OLDNAME); \ |
153 |
$(ECHO) "$(MV) $(RXVT_BINNAME) $(RXVT_OLDNAME)"; \ |
154 |
$(MV) $(RXVT_BINNAME) $(RXVT_OLDNAME); \ |
155 |
fi |
156 |
@$(ECHO) "$(LIBTOOL) --mode=install $(INSTALL_PROGRAM) rxvt $(RXVT_VERNAME)" |
157 |
@$(LIBTOOL) --mode=install $(INSTALL_PROGRAM) rxvt $(RXVT_VERNAME) |
158 |
@$(ECHO) "$(LN) $(RXVT_VERNAME) $(RXVT_BINNAME)" |
159 |
@$(LN) $(RXVT_VERNAME) $(RXVT_BINNAME) |
160 |
|
161 |
uninstall: |
162 |
@$(ECHO) $(RMF) $(RXVT_VERNAME) |
163 |
@$(RMF) $(RXVT_VERNAME) |
164 |
@$(ECHO) "$(LIBTOOL) --mode=uninstall $(RMF) $(RXVT_BINNAME)" |
165 |
@$(LIBTOOL) --mode=uninstall $(RMF) $(RXVT_BINNAME) |
166 |
@if test x$(INSTALL_LIBRXVT) = xyes; then \ |
167 |
$(ECHO) "$(LIBTOOL) --mode=uninstall $(RMF) $(DESTDIR)$(libdir)/librxvt.la"; \ |
168 |
$(LIBTOOL) --mode=uninstall $(RMF) $(DESTDIR)$(libdir)/librxvt.la; \ |
169 |
$(ECHO) "$(LIBTOOL) --mode=uninstall $(RMF) $(DESTDIR)$(includedir)/rxvtlib.h"; \ |
170 |
$(LIBTOOL) --mode=uninstall $(RMF) $(DESTDIR)$(includedir)/rxvtlib.h; \ |
171 |
fi |
172 |
|
173 |
distdirs: |
174 |
mkdir $(basedir)/../$(VERNAME)/$(thisdir) |
175 |
|
176 |
distcopy: .protos $(INTPROS) |
177 |
$(CP) -p $(DIST) $(basedir)/../$(VERNAME)/$(thisdir) |
178 |
|
179 |
# ----------------------------------------------------------------------- |
180 |
# DO NOT DELETE: nice dependency list follows |
181 |
# |
182 |
|
183 |
defaultfont.h: encoding.h rxvtvec.h |
184 |
rxvtlib.h: rxvtcolor.h defaultfont.h |
185 |
|
186 |
command.o: command.C $(DEPS) command.intpro command.h version.h |
187 |
defaultfont.o: defaultfont.C $(DEPS) defaultfont.intpro defaultfont.h |
188 |
graphics.o: graphics.C $(DEPS) graphics.intpro |
189 |
grkelot.o: grkelot.C $(DEPS) grkelot.intpro grkelot.h |
190 |
init.o: init.C $(DEPS) init.intpro init.h defaultfont.h |
191 |
logging.o: logging.C $(DEPS) logging.intpro logging.h |
192 |
main.o: main.C $(DEPS) main.intpro |
193 |
menubar.o: menubar.C $(DEPS) menubar.intpro menubar.h version.h |
194 |
misc.o: misc.C $(DEPS) misc.intpro |
195 |
netdisp.o: netdisp.C $(DEPS) netdisp.intpro netdisp.h |
196 |
ptytty.o: ptytty.C $(DEPS) ptytty.intpro |
197 |
rxvt.o: rxvt.C $(DEPS) |
198 |
rxvtd.o: rxvtd.C $(DEPS) rxvtdaemon.h |
199 |
screen.o: screen.C $(DEPS) screen.intpro defaultfont.h |
200 |
scrollbar.o: scrollbar.C $(DEPS) scrollbar.intpro |
201 |
scrollbar-rxvt.o: scrollbar-rxvt.C $(DEPS) scrollbar-rxvt.intpro |
202 |
scrollbar-next.o: scrollbar-next.C $(DEPS) scrollbar-next.intpro |
203 |
scrollbar-xterm.o: scrollbar-xterm.C $(DEPS) scrollbar-xterm.intpro |
204 |
strings.o: strings.C $(DEPS) strings.intpro |
205 |
xdefaults.o: xdefaults.C $(DEPS) xdefaults.intpro version.h |
206 |
xpm.o: xpm.C $(DEPS) xpm.intpro |
207 |
encoding.o: encoding.C $(DEPS) encoding.h |
208 |
rxvtcolor.o: rxvtcolor.C $(DEPS) |
209 |
|
210 |
command.lo: command.C $(DEPS) command.intpro command.h version.h |
211 |
defaultfont.lo: defaultfont.C $(DEPS) defaultfont.intpro defaultfont.h encoding.h |
212 |
graphics.lo: graphics.C $(DEPS) graphics.intpro defaultfont.h |
213 |
grkelot.lo: grkelot.C $(DEPS) grkelot.intpro grkelot.h |
214 |
init.lo: init.C $(DEPS) init.intpro init.h |
215 |
logging.lo: logging.C $(DEPS) logging.intpro logging.h |
216 |
main.lo: main.C $(DEPS) main.intpro |
217 |
menubar.lo: menubar.C $(DEPS) menubar.intpro menubar.h version.h |
218 |
misc.lo: misc.C $(DEPS) misc.intpro |
219 |
netdisp.lo: netdisp.C $(DEPS) netdisp.intpro netdisp.h |
220 |
ptytty.lo: ptytty.C $(DEPS) ptytty.intpro |
221 |
rxvt.lo: rxvt.C $(DEPS) |
222 |
screen.lo: screen.C $(DEPS) screen.intpro defaultfont.h |
223 |
scrollbar.lo: scrollbar.C $(DEPS) scrollbar.intpro |
224 |
scrollbar-rxvt.lo: scrollbar-rxvt.C $(DEPS) scrollbar-rxvt.intpro |
225 |
scrollbar-next.lo: scrollbar-next.C $(DEPS) scrollbar-next.intpro |
226 |
scrollbar-xterm.lo: scrollbar-xterm.C $(DEPS) scrollbar-xterm.intpro |
227 |
strings.lo: strings.C $(DEPS) strings.intpro |
228 |
xdefaults.lo: xdefaults.C $(DEPS) xdefaults.intpro version.h |
229 |
xpm.lo: xpm.C $(DEPS) xpm.intpro |
230 |
encoding.lo: encoding.C $(DEPS) encoding.h |
231 |
rxvtcolor.lo: rxvtcolor.C $(DEPS) |
232 |
|
233 |
iom.o: iom.C iom.h |
234 |
rxvtdaemon.o: rxvtdaemon.C rxvtdaemon.h |
235 |
|