ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/Makefile.in
Revision: 1.11
Committed: Mon Feb 9 07:11:49 2004 UTC (20 years, 4 months ago) by pcg
Branch: MAIN
Changes since 1.10: +2 -2 lines
Log Message:
*** empty log message ***

File Contents

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