+MAKE = make
+# BSD doesn't have it as a default.
+
+CC = gcc
CPP = $(CC) -E
-MAKE = make # BSD doesn't have it as a default.
#Note: an alternative is CPP = /lib/cpp
all: xmakefile doall
# If you have a problem with cc -E here, changing
# the definition of CPP above may fix it.
xmakefile: ymakefile config.h
- rm -f xmakefile
+ -rm -f xmakefile junk.c
cp ymakefile junk.c
$(CPP) junk.c | sed -e 's/^#.*//' -e 's/^[ \f\t][ \f\t]*$$//' -e 's/^ / /' | \
sed -n -e '/^..*$$/p' > xmakefile