/[cvsroot]/skandha4/Makefile.x
ViewVC logotype

Contents of /skandha4/Makefile.x

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (show annotations) (download) (vendor branch)
Tue May 25 09:37:03 1999 UTC (21 years, 4 months ago) by jsp
Branch: biostr, MAIN
CVS Tags: skandha4, skandha4_1_6, skandha4_1_6_pub, dsg_1_0, HEAD
Branch point for: skandha4_pub, autoconf
Changes since 1.1: +0 -0 lines
ANSI C version of Skandha4


1 # Standard targets shared by most of */c/Makefile
2
3 xlisplib: ${XLISPLIB} xlisplibmore
4
5 depend:
6 @ ${AWK} 'BEGIN {i=1}; \
7 {if (i) print $0}; \
8 /^# Do not remove this line/ {i=0}; \
9 END {if (i) print "# Do not remove this line"}' \
10 Makefile >Makefile.tmp
11 @for x in *.c ; { \
12 echo >>Makefile.tmp ; \
13 prefix=`pwd`; \
14 prefix=`echo "$${prefix}"| sed -e 's/\\/[^/]*$$//'` ; \
15 prefix=`echo "$${prefix}"| sed -e 's/\\/[^/]*$$//'` ; \
16 prefix=`echo "$${prefix}"| sed -e 's/\\/[^/]*$$//'` ; \
17 prefix=`echo "$${prefix}"| sed -e 's/\\//\\\\\\//g'` ; \
18 echo "Making dependency rule for $${x}..." ; \
19 ${CC} -MM -I${SLAPPPATH} ${INCLUDES} $${x} \
20 | ${AWK} '{gsub(/ +$$/,""); gsub(/ /," \\\n "); print;}' \
21 | grep -v '^ *\\$$' \
22 | sed -e "s/$${prefix}/\\.\\.\\/\\.\\.\\/\\.\\./" >> Makefile.tmp ; \
23 }
24 @rm -f Makefile
25 @mv Makefile.tmp Makefile
26
27 .PRECIOUS: ${XLISPLIB}
28
29 ${XLISPLIB}: ${XLISPLIBOBJS} ${HEADER}
30 ${XLISPRANLIB} ${XLISPLIB}
31
32 ${XLISPLIBOBJS}:
33 ${AR} ${XLISPARFLAGS} $@ $*.o
34
35 .c.o:
36 ${CC} -c ${CFLAGS} -o $*.o -I${SLAPPPATH} $< ${INCLUDES}
37
38 # Replace built-in make rule:
39 .c.a:
40 ${CC} -c ${CFLAGS} -o $*.o $< ${INCLUDES}
41
42

brinkley@uw.edu
ViewVC Help
Powered by ViewVC 1.1.26