ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/Makefile.in
Revision: 1.4
Committed: Wed Nov 26 10:42:34 2003 UTC (20 years, 6 months ago) by pcg
Branch: MAIN
Changes since 1.3: +3 -2 lines
Log Message:
*** empty log message ***

File Contents

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