Debian Codegraph @

xo/Makefile.in

raw ◀ ▶
Source reconstructed at patch state 2 of 3 — not the installed (fully patched) source.
3 Debian patches touch this file
1 # -*- Makefile -*-
2 # Makefile.in
3 # $Id: Makefile.in,v 1.15 2006/01/17 19:48:14 elf Exp $
4 #
5 # written by Marc Singer
6 # 8 May 1996
7 #
8 #
9
10 .PHONY: install clean all version revision patch
11
12 #
13 # --- Project specification
14 #
15
16 PACKAGE=xo
17 TARGET=xo
18 O_D=o/
19 SRC_LIB= \
20 ldisplay.cxx lwindow.cxx lfont.cxx \
21 wbutton.cxx wtext.cxx wdialog.cxx \
22 lhash.cxx larray.cxx \
23 res.cxx dither.cxx lpicture.cxx
24
25 #dmalloc.cxx
26
27 _SRC=$(SRC_LIB) \
28 loupe.cxx stats.cxx
29 # classes.cxx main.cxx
30
31 DEPS:=$(SRC)
32 DEPS:=$(DEPS:%.c=%.d)
33 DEPS:=$(DEPS:%.cc=%.d)
34 DEPS:=$(DEPS:%.cxx=%.d)
35
36 SRC= $(_SRC) res_l.cxx res_y.cxx
37
38 # lwindowclass.cxx
39 # options.cxx version.cxx
40 # system.cxx video.cxx timebase.cxx
41 # lfile.cxx lstream.cxx lring.cxx lthread.cxx thread.s
42 # report.cxx
43
44 ____OBJ=$(SRC:.c=.o)
45 ___OBJ=$(____OBJ:.cxx=.o)
46 __OBJ=$(___OBJ:.s=.o)
47 _OBJ=$(__OBJ:.l=.o)
48 OBJ=$(_OBJ:.y=.o)
49
50 ____OBJ_LIB=$(SRC_LIB:.c=.o)
51 ___OBJ_LIB=$(____OBJ_LIB:.cxx=.o)
52 __OBJ_LIB=$(___OBJ_LIB:.s=.o)
53 _OBJ_LIB=$(__OBJ_LIB:.l=.o)
54 OBJ_LIB=$(_OBJ_LIB:.y=.o)
55
56 VERSION_HEADER=version.h
57
58 CC=@CXX@
59 CXXFLAGS=@CPPFLAGS@ @CXXFLAGS@
60 #CXXFLAGS=-${CXXFLAGS} -O
61 #CXXFLAGS=-${CXXFLAGS} -O2
62 #CXXFLAGS=-${CXXFLAGS} -fomit-frame-pointer
63 CXXFLAGS_=-g @CFLAGS_W@@X_CFLAGS@
64 LFLAGS=-g @LDFLAGS@@X_LIBS@@LIBS@ -lX11 -lXext @X_EXTRA_LIBS@
65 FLEX=@LEX@
66 YACC=@YACC@
67
68 #
69 # --- Autoconf generated symbols
70 #
71
72 #srcdir = @srcdir@
73 #VPATH = @srcdir@
74 prefix = @prefix@
75 exec_prefix = @exec_prefix@
76 bindir = @bindir@
77 infodir = @infodir@
78 mandir = @mandir@
79 datarootdir = @datarootdir@
80
81 #
82 # --- Implicit rules
83 #
84
85 vpath %.o $(O_D)
86
87 %.o: %.cxx
88 $(ECHO) $(CC) -c $(CXXFLAGS) -o $(O_D)$@ $<
89 @$(CC) -c $(CXXFLAGS) $(CXXFLAGS_) -o $(O_D)$@ $<
90
91 $(O_D)%.o: %.cxx
92 $(ECHO) $(CC) -c $(CXXFLAGS) -o $@ $<
93 @$(CC) -c $(CXXFLAGS) $(CXXFLAGS_) -o $@ $<
94
95 %.o: %.s
96 $(ECHO) $(AS) $(AFLAGS) -o $(O_D)$@ $<
97 @$(AS) $(AFLAGS) $(AFLAGS_) -o $(O_D)$@ $<
98
99 $(O_D)%.o: %.s
100 $(ECHO) $(AS) $(AFLAGS) -o $@ $<
101 @$(AS) $(AFLAGS) $(AFLAGS_) -o $@ $<
102
103 %.cxx: %.l
104 $(FLEX) -o$@ $<
105
106 %.cxx: %.y
107 $(YACC) -d -o $@ $<
108
109 %.i: %.cxx
110 $(CC) -c $(CXXFLAGS) $(CXXFLAGS_) -E -o $(notdir $@) $<
111
112 %.s: %.cxx
113 $(CC) -c $(CXXFLAGS) $(CXXFLAGS_) -S -o $@ $<
114
115 %.s: %.c
116 $(CC) -c $(CXXFLAGS) $(CXXFLAGS_) -S -o $@ $<
117
118 #
119 # --- Primary targets
120 #
121
122 all: make_o _version.h res_y.cxx $(O_D)$(TARGET) libxo.a
123
124 .PHONY: make_o
125 make_o:
126 @if test ! -e $(O_D) ;\
127 then echo === Creating \'$(O_D)\' output directory ; mkdir $(O_D) ; fi
128
129 res_l.cxx: res_l.l
130 res_y.cxx: res_y.y
131
132 $(O_D)res.o: lres.h
133
134 res: o/res_y.o o/res_l.o o/res.o
135 $(CC) $(LFLAGS) -o $@ $^
136
137 libxo.a: $(OBJ_LIB)
138 ar rc libxo.a $(addprefix $(O_D),$(OBJ_LIB))
139
140 $(O_D)$(TARGET): $(OBJ)
141 $(CC) -o $@ $(addprefix $(O_D),$(OBJ)) $(LFLAGS)
142
143 #install:
144 # cp $(TARGET).exe c:/usr/local
145
146 .PHONY: count
147 count:
148 wc $(_SRC) *.h
149
150 clean:
151 ifneq "$(O_D)" ""
152 -rm -rf $(O_D)
153 else
154 -rm $(OBJ)
155 endif
156 -rm *.i
157
158 .PHONY: dist_clean
159 distclean: clean
160 @-rm -f \#* *~ *.sed *.i *.cod
161 -chmod +w Makefile config.h
162 -rm Makefile config.h $(DEPEND)
163 -rm config.cache config.status config.log
164 -rm _version.h .version
165 -rm res_y.hxx res_l.cxx res_y.cxx
166 -rm libxo.a
167
168 res_l.l: res.h
169 res_y.y: res.h
170
171 #
172 # Version and Build Engineering
173 #
174
175 .version: .version_major .version_minor .version_patch
176 @/bin/echo -n `cat .version_major`.`cat .version_minor`.`cat \
177 .version_patch` > .version
178
179 _version.h: .version
180 @/bin/echo -e \#define SZ_VERSION \"`cat .version`\" > _version.h
181
182 .PHONY: transmit
183 transmit: # distribution-archive
184
185 @/bin/sh -c "cd .. ;\
186 distftp.sh ${PACKAGE} ${PACKAGE}-`cat .version`.tar.gz"
187 @distftp.sh ${PACKAGE} ANNOUNCEMENT
188 @distftp.sh ${PACKAGE} README
189 @distftp.sh ${PACKAGE} ${PACKAGE}-`cat .version`.lsm
190
191 lsm.sed: _version.h
192 @echo Creating LSM edit script...
193 @/bin/echo s/\<\<version\>\>/`cat .version`/ > lsm.sed
194 @/bin/echo s/\<\<date\>\>/`date +"%d %B %Y"`/ >> lsm.sed
195 @/bin/echo s/\<\<tar-file\>\>/${PACKAGE}-`cat .version`.tar.gz/ \
196 >> lsm.sed
197 @/bin/echo s/\<\<lsm-file\>\>/${PACKAGE}-`cat .version`.lsm/ >> lsm.sed
198
199 .PHONY: ${PACKAGE}.lsm
200 ${PACKAGE}.lsm: lsm.sed LSM
201 @echo Creating LSM file...
202 @-rm *.lsm
203 @sed -f lsm.sed LSM > ${PACKAGE}-`cat .version`.lsm
204
205 .PHONY: distribution-archive da
206 distribution-archive da: ${PACKAGE}.lsm dist_clean
207 @echo Creating distribution archive...
208 @/bin/sh -c "if test -x ../${PACKAGE}-`cat .version`;\
209 then rm ../${PACKAGE}-`cat .version` ; fi"
210 @ln -s ${PACKAGE} ../${PACKAGE}-`cat .version`
211 @find . -path CVS -prune\
212 -o -path o -prune\
213 -o -regex .\*/${PACKAGE} -prune\
214 -o -regex .\*/configure -prune\
215 -o -regex .\*/config.status -prune\
216 -o -regex .\*\.o -prune\
217 -o -type f -exec chmod 644 \{\} \;
218 @/bin/sh -c 'cd .. ; V=`cat ${PACKAGE}/.version` ;\
219 tar zcf ${PACKAGE}-$$V.tar.gz\
220 `find ${PACKAGE}-$$V/\
221 -regex .\*/CVS -prune\
222 -o -regex .\*~ -prune\
223 -o -regex .\*/o -prune\
224 -o -regex .\*/res -prune\
225 -o -regex .\*\\\\.o -prune\
226 -o -regex .\*\\\\.a -prune\
227 -o -regex .\*\\\\.m -prune\
228 -o -regex .\*\\\\.bmp -prune\
229 -o -regex .\*/${PACKAGE} -prune\
230 -o -regex .\*/Makefile -prune\
231 -o -regex .\*/config.cache -prune\
232 -o -regex .\*/config.h -prune\
233 -o -regex .\*/config.log -prune\
234 -o -regex .\*/config.status -prune\
235 -o -regex .\*/configure.scan -prune\
236 -o -regex .\*/log -prune\
237 -o -regex .\*/gmon.out -prune\
238 -o -regex .\*/\.cvsignore -prune\
239 -o -regex .\*/\.gdbinit -prune\
240 -o -regex .\*/NOTES -prune\
241 -o -regex .\*/patches -prune\
242 -o -type f -print | sort`'
243 @-rm ../${PACKAGE}-`cat .version`
244
245 #
246 # --- Dependencies: depend.m
247 #
248
249 %.d: %.c
250 @set -e; rm -f $@; \
251 $(CC) -M $(CFLAGS) $< > $@.$$$$; \
252 sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
253 rm -f $@.$$$$
254
255 %.d: %.cc
256 @set -e; rm -f $@; \
257 $(CXX) -MM $(CFLAGS) $< > $@.$$$$; \
258 sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
259 rm -f $@.$$$$
260
261 -include $(DEPS)