comparison lib-src/Makefile.in.in @ 193:f53b5ca2e663 r20-3b23

Import from CVS: tag r20-3b23
author cvs
date Mon, 13 Aug 2007 09:58:30 +0200
parents e121b013d1f0
children 850242ba4a81
comparison
equal deleted inserted replaced
192:9d35321dd38c 193:f53b5ca2e663
29 ## ==================== Things "configure" will edit ==================== 29 ## ==================== Things "configure" will edit ====================
30 30
31 @SET_MAKE@ 31 @SET_MAKE@
32 SHELL = /bin/sh 32 SHELL = /bin/sh
33 RM = rm -f 33 RM = rm -f
34 pwd = /bin/pwd
34 35
35 CC=@CC@ 36 CC=@CC@
36 CPP=@CPP@ 37 CPP=@CPP@
37 CFLAGS=@CFLAGS@ 38 CFLAGS=@CFLAGS@
38 CPPFLAGS=@CPPFLAGS@ 39 CPPFLAGS=@CPPFLAGS@
140 ## failed to find it for getopt.o. 141 ## failed to find it for getopt.o.
141 ## Using an explicit command made it work. 142 ## Using an explicit command made it work.
142 .c.o: 143 .c.o:
143 ${CC} -c $(cflags) $< 144 ${CC} -c $(cflags) $<
144 145
145 all: ${UTILITIES} ${INSTALLABLES} ${SCRIPTS} 146 all: ${UTILITIES} ${INSTALLABLES} srcdir-symlink.stamp
146 147
147 ## Make symlinks for shell scripts if using --srcdir */ 148 ## Make symlinks for shell scripts if using --srcdir
148 rcs2log: 149 srcdir-symlink.stamp:
149 ${LN_S} ${srcdir}/$@ $@ 150 for f in ${SCRIPTS}; do \
150 vcdiff: 151 if test ! -r $$f; then ${LN_S} ${srcdir}/$$f $$f; fi; \
151 ${LN_S} ${srcdir}/$@ $@ 152 done; \
152 tm-au : 153 touch $@;
153 ${LN_S} ${srcdir}/$@ $@
154 tm-file :
155 ${LN_S} ${srcdir}/$@ $@
156 tm-html :
157 ${LN_S} ${srcdir}/$@ $@
158 tm-image :
159 ${LN_S} ${srcdir}/$@ $@
160 tm-mpeg :
161 ${LN_S} ${srcdir}/$@ $@
162 tm-plain :
163 ${LN_S} ${srcdir}/$@ $@
164 tm-ps :
165 ${LN_S} ${srcdir}/$@ $@
166 tmdecode :
167 ${LN_S} ${srcdir}/$@ $@
168 gzip-el.sh:
169 ${LN_S} ${srcdir}/$@ $@
170 install-sid:
171 ${LN_S} ${srcdir}/$@ $@
172 send-pr:
173 ${LN_S} ${srcdir}/$@ $@
174
175 154
176 #undef MOVEMAIL_NEEDS_BLESSING 155 #undef MOVEMAIL_NEEDS_BLESSING
177 #if !defined (MAIL_USE_FLOCK) && ! defined (MAIL_USE_LOCKF) 156 #if !defined (MAIL_USE_FLOCK) && ! defined (MAIL_USE_LOCKF)
178 #define MOVEMAIL_NEEDS_BLESSING 157 #define MOVEMAIL_NEEDS_BLESSING
179 blessmail = blessmail 158 blessmail = blessmail
206 ## Install the internal utilities. Until they are installed, we can 185 ## Install the internal utilities. Until they are installed, we can
207 ## just run them directly from lib-src. 186 ## just run them directly from lib-src.
208 ${archlibdir}: all 187 ${archlibdir}: all
209 @echo; echo "Installing utilities run internally by XEmacs." 188 @echo; echo "Installing utilities run internally by XEmacs."
210 ./make-path ${archlibdir} 189 ./make-path ${archlibdir}
211 if test `(cd ${archlibdir} && /bin/pwd)` != `/bin/pwd`; then \ 190 if test `(cd ${archlibdir} && $(pwd))` != `$(pwd)`; then \
212 for file in ${UTILITIES}; do \ 191 for f in ${UTILITIES}; do \
213 (cd .. && $(INSTALL_PROGRAM) lib-src/$$file ${archlibdir}/$$file) ; \ 192 (cd .. && $(INSTALL_PROGRAM) lib-src/$$f ${archlibdir}/$$f) ; \
214 done ; \ 193 done ; \
215 fi 194 fi
216 if test `(cd ${archlibdir} && /bin/pwd)` \ 195 if test `(cd ${archlibdir} && $(pwd))` \
217 != `(cd ${srcdir} && /bin/pwd)`; then \ 196 != `(cd ${srcdir} && $(pwd))`; then \
218 for file in ${SCRIPTS}; do \ 197 for f in ${SCRIPTS}; do \
219 (cd .. && $(INSTALL_PROGRAM) ${srcdir}/$$file ${archlibdir}/$$file); \ 198 (cd .. && $(INSTALL_PROGRAM) ${srcdir}/$$f ${archlibdir}/$$f); \
220 done ; \ 199 done ; \
221 fi 200 fi
222 201
223 ## We do not need to install "wakeup" explicitly, because it will be 202 ## We do not need to install "wakeup" explicitly, because it will be
224 ## copied when this whole directory is copied. 203 ## copied when this whole directory is copied.
270 getopt1.o: ${srcdir}/getopt1.c ${srcdir}/getopt.h 249 getopt1.o: ${srcdir}/getopt1.c ${srcdir}/getopt.h
271 ${CC} -c $(cflags) ${srcdir}/getopt1.c 250 ${CC} -c $(cflags) ${srcdir}/getopt1.c
272 alloca.o: ${srcdir}/../src/alloca.c 251 alloca.o: ${srcdir}/../src/alloca.c
273 ${CC} -c $(cflags) ${srcdir}/../src/alloca.c 252 ${CC} -c $(cflags) ${srcdir}/../src/alloca.c
274 253
275 #ifdef REGEXP_IN_LIBC
276 REGEXOBJ =
277 REGEXDEPS =
278 #else
279 REGEXOBJ = regex.o
280 REGEXDEPS = $(REGEXOBJ) ${srcdir}/../src/regex.h
281 #endif
282
283 regex.o: ${srcdir}/../src/regex.c ${srcdir}/../src/regex.h 254 regex.o: ${srcdir}/../src/regex.c ${srcdir}/../src/regex.h
284 $(CC) -c `echo ${cflags} | sed 's/-Demacs/ /'` \ 255 $(CC) -c `echo ${cflags} | sed 's/-Demacs/ /'` \
285 -DINHIBIT_STRING_HEADER ${srcdir}/../src/regex.c 256 -DINHIBIT_STRING_HEADER ${srcdir}/../src/regex.c
286 257
287 etags_args = -I. ${cflags} -I${srcdir} -I${srcdir}/../src \ 258 etags_args = -I. ${cflags} -I${srcdir} -I${srcdir}/../src \
288 -DVERSION='"${version}"' ${srcdir}/etags.c \ 259 -DVERSION='"${version}"' ${srcdir}/etags.c \
289 $(GETOPTOBJS) $(REGEXOBJ) $(ldflags) 260 $(GETOPTOBJS) regex.o $(ldflags)
290 etags_deps = ${srcdir}/etags.c $(GETOPTDEPS) $(REGEXDEPS) ../src/config.h 261 etags_deps = ${srcdir}/etags.c $(GETOPTDEPS) regex.o ../src/config.h
291 262
292 etags: ${etags_deps} 263 etags: ${etags_deps}
293 $(CC) ${etags_args} -o $@ 264 $(CC) ${etags_args} -o $@
294 ## ctags depends on etags to assure that parallel makes do not write 265 ## ctags depends on etags to assure that parallel makes do not write
295 ## two etags.o files on top of each other. 266 ## two etags.o files on top of each other.