3 if test ! -f config.sh; then
5 ln ../../config.sh . || \
6 ln ../../../config.sh . || \
7 (echo "Can't find config.sh."; exit 1)
12 : This forces SH files to create target in same directory as SH file.
13 : This is so that make depend always knows where to find SH derivatives.
15 */*) cd `expr X$0 : 'X\(.*\)/'` ;;
17 echo "Extracting cflags (with variable substitutions)"
18 : This section of the file will have variable substitutions done on it.
19 : Move anything that needs config subs from !NO!SUBS! section to !GROK!THIS!.
20 : Protect any dollar signs and backticks that you do not want interpreted
21 : by putting a backslash in front. You may delete these comments.
22 $spitshell >cflags <<!GROK!THIS!
25 : In the following dollars and backticks do not need the extra backslash.
26 $spitshell >>cflags <<'!NO!SUBS!'
28 */*) cd `expr X$0 : 'X\(.*\)/'` ;;
32 if test ! -f config.sh; then
33 ln ../config.sh . || \
34 ln ../../config.sh . || \
35 ln ../../../config.sh . || \
36 (echo "Can't find config.sh."; exit 1)
44 1) also='echo 1>&2 " CCCMD = "'
48 0) set *.c; echo "The current C flags are:" ;;
51 set `echo "$* " | sed 's/\.[oc] / /g'`
57 *) echo $n " $file.c $c" ;;
60 : allow variables like toke_cflags to be evaluated
62 eval 'eval ${'"${file}_cflags"'-""}'
112 echo "$cc -c $ccflags $optimize $large $split"
113 eval "$also "'"$cc -c $ccflags $optimize $large $split"'