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

# User Rev Content
1 root 1.19 # $Id: Makefile.in,v 1.18 2004/08/18 00:11:58 root Exp $
2 pcg 1.1 @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 root 1.17 # -DDEBUG_SEARCH_PATH -DDEBUG_SIZE -DDEBUG_TTY -DDEBUG_TTYMODE
19 pcg 1.1 DEBUG=-DDEBUG_STRICT @DEBUG@
20    
21     first_rule: all
22     dummy:
23    
24 root 1.17 LIBSRCS = command.C rxvtfont.C init.C logging.C \
25 pcg 1.1 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 root 1.17 xdefaults.C xpm.C encoding.C rxvttoolkit.C rxvtutil.C iom.C \
28 pcg 1.10 scrollbar-plain.C
29 pcg 1.1
30     SRCS = rxvt.C $(LIBSRCS)
31    
32 root 1.17 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 pcg 1.1
36     EXTRAHDRS = rxvtlib.h rxvtdaemon.h
37    
38 root 1.17 OBJS = command.o rxvtfont.o init.o logging.o \
39 pcg 1.1 main.o menubar.o misc.o netdisp.o ptytty.o screen.o \
40 pcg 1.10 scrollbar.o scrollbar-next.o scrollbar-rxvt.o scrollbar-xterm.o scrollbar-plain.o \
41 root 1.17 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 pcg 1.1 main.lo menubar.lo misc.lo netdisp.lo ptytty.lo screen.lo \
44 pcg 1.10 scrollbar.lo scrollbar-next.lo scrollbar-rxvt.lo scrollbar-xterm.lo scrollbar-plain.lo \
45 root 1.17 strings.lo xdefaults.lo xpm.lo encoding.lo rxvt.lo rxvttoolkit.lo rxvtutil.lo iom.lo
46 pcg 1.1
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 pcg 1.5 RXVTC_BINNAME=$(DESTDIR)$(bindir)/$(RXVT_BASENAME)c$(EXEEXT)
53     RXVTD_BINNAME=$(DESTDIR)$(bindir)/$(RXVT_BASENAME)d$(EXEEXT)
54 pcg 1.1 RXVT_OLDNAME=$(DESTDIR)$(bindir)/$(RXVT_BASENAME)-old$(EXEEXT)
55    
56 root 1.17 INTPROS = rxvtfont.intpro logging.intpro main.intpro misc.intpro \
57     ptytty.intpro xpm.intpro
58 pcg 1.1
59 root 1.17 DEPS = rxvt.h rxvtlib.h ${basedir}/config.h feature.h rxvttoolkit.h
60 pcg 1.1
61     #
62     # Distribution variables
63     #
64    
65 root 1.17 DIST = $(HDRS) $(SRCS) Makefile.in gcc-Wall rxvtlib.h.in $(INTPROS)
66 pcg 1.1
67 root 1.17 .SUFFIXES: .C .o .intpro .lo
68 pcg 1.1
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 pcg 1.13
91 pcg 1.1 all: allbin
92    
93     rxvt: version.h rxvt.o librxvt.la
94 pcg 1.13 $(LIBTOOL) --mode=link $(LINK) rxvt.o librxvt.la $(LIBS) $(XLIB) $(DLIB) -o $@
95 pcg 1.1
96 pcg 1.3 rxvtd: version.h rxvtd.o librxvt.la rxvtdaemon.o
97 pcg 1.13 $(LIBTOOL) --mode=link $(LINK) rxvtd.o rxvtdaemon.o librxvt.la $(LIBS) $(XLIB) $(DLIB) -o $@
98 pcg 1.1
99     rxvtc: version.h rxvtc.o rxvtdaemon.o
100 pcg 1.13 $(LIBTOOL) --mode=link $(LINK) rxvtc.o rxvtdaemon.o $(LIBS) $(DLIB) -o $@
101 pcg 1.1
102     librxvt.la: $(LIBOBJS)
103 pcg 1.13 $(LIBTOOL) --mode=link $(LINK) -rpath $(libdir) -version-info $(LIBVERSION) $(LIBOBJS) $(LIBS) -o $@
104    
105 pcg 1.1 #-------------------------------------------------------------------------
106 pcg 1.13
107 pcg 1.1 tags: $(SRCS) $(HDRS) $(EXTRAHDRS)
108     ctags $(SRCS) $(HDRS) $(EXTRAHDRS)
109    
110 root 1.17 allbin: rxvt rxvtd rxvtc
111 pcg 1.1
112     alldoc:
113    
114     clean:
115 root 1.17 $(RMF) rxvt rxvtc rxvtd core a.out *.o *.lo *.bak *~ *.intpro .libs/* librxvt.la tmpproto *.tmp
116 pcg 1.1
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 pcg 1.5 $(RMF) $(RXVT_BINNAME)
135     $(RMF) $(RXVTC_BINNAME)
136     $(RMF) $(RXVTD_BINNAME)
137 pcg 1.14 $(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 pcg 1.1
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 root 1.17 distcopy: $(INTPROS)
157 pcg 1.1 $(CP) -p $(DIST) $(basedir)/../$(VERNAME)/$(thisdir)
158    
159     # -----------------------------------------------------------------------
160     # DO NOT DELETE: nice dependency list follows
161     #
162    
163 root 1.17 rxvtfont.h: encoding.h rxvtutil.h
164     rxvtlib.h: rxvttoolkit.h rxvtfont.h
165 pcg 1.13 rxvtdaemon.o: rxvtdaemon.C $(DEPS) rxvtdaemon.h
166 root 1.17 rxvtd.o: rxvtd.C $(DEPS) rxvtdaemon.h rxvtutil.h
167     rxvtc.o: rxvtc.C $(DEPS) rxvtdaemon.h rxvtutil.h
168 pcg 1.1
169 root 1.17 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 pcg 1.1 logging.o: logging.C $(DEPS) logging.intpro logging.h
173     main.o: main.C $(DEPS) main.intpro
174 root 1.17 menubar.o: menubar.C $(DEPS) menubar.h version.h
175 pcg 1.1 misc.o: misc.C $(DEPS) misc.intpro
176 root 1.17 netdisp.o: netdisp.C $(DEPS) netdisp.h
177 pcg 1.1 ptytty.o: ptytty.C $(DEPS) ptytty.intpro
178     rxvt.o: rxvt.C $(DEPS)
179 root 1.17 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 pcg 1.1 xpm.o: xpm.C $(DEPS) xpm.intpro
188     encoding.o: encoding.C $(DEPS) encoding.h
189 root 1.17 rxvttoolkit.o: rxvttoolkit.C $(DEPS)
190 pcg 1.4 iom.o: iom.C $(DEPS) iom.h
191 pcg 1.1
192 root 1.17 command.lo: command.C $(DEPS) version.h
193     rxvtfont.lo: rxvtfont.C $(DEPS) rxvtfont.h encoding.h
194 pcg 1.1 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 root 1.17 menubar.lo: menubar.C $(DEPS) version.h
198 pcg 1.1 misc.lo: misc.C $(DEPS) misc.intpro
199 root 1.17 netdisp.lo: netdisp.C $(DEPS) netdisp.h
200 pcg 1.1 ptytty.lo: ptytty.C $(DEPS) ptytty.intpro
201     rxvt.lo: rxvt.C $(DEPS)
202 root 1.17 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 pcg 1.1 xpm.lo: xpm.C $(DEPS) xpm.intpro
211     encoding.lo: encoding.C $(DEPS) encoding.h
212 root 1.17 rxvttoolkit.lo: rxvttoolkit.C $(DEPS)
213 pcg 1.4 iom.lo: iom.C $(DEPS) iom.h
214 pcg 1.1
215