3 if test -f config.sh; then TOP=.;
4 elif test -f ../config.sh; then TOP=..;
5 elif test -f ../../config.sh; then TOP=../..;
6 elif test -f ../../../config.sh; then TOP=../../..;
7 elif test -f ../../../../config.sh; then TOP=../../../..;
9 echo "Can't find config.sh."; exit 1
14 : This forces SH files to create target in same directory as SH file.
15 : This is so that make DEPEND always knows where to find SH derivatives.
17 */*) cd `expr X$0 : 'X\(.*\)/'` ;;
19 echo "Extracting Makefile (with variable substitutions)"
20 : This section of the file will have variable substitutions done on it.
21 : Move anything that needs config subs from !NO!SUBS! section to !GROK!THIS!.
22 : Protect any dollar signs and backticks that you do not want interpreted
23 : by putting a backslash in front. You may delete these comments.
24 $spitshell >Makefile <<!GROK!THIS!
32 : In the following dollars and backticks do not need the extra backslash.
33 $spitshell >>Makefile <<'!NO!SUBS!'
39 main: try1.o try2.o main.o
40 $(CC) -o main main.o try1.o try2.o
44 rm -f dummy config.h core config.sh
45 rm -f try try?.o main.o main core
48 rm -f Wanted Obsolete check.extra check.wanted build.log
51 try1.o: try1.c config.h
53 try2.o: try2.c config.h
55 main.o: main.c config.h
58 $(MKDEP) $(CPPFLAGS) -- try1.c try2.c main.c