ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/Makefile.in
Revision: 1.19
Committed: Fri Aug 20 02:19:38 2004 UTC (19 years, 9 months ago) by root
Branch: MAIN
CVS Tags: rel-4_4, rel-4_6, rel-4_7, rel-4_0, rel-4_1, rel-4_2, rel-4_3, rel-3_8
Changes since 1.17: +1 -1 lines
Log Message:
*** empty log message ***

File Contents

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