plan9port/unix/mkfile.fmt

38 lines
706 B
Text
Raw Normal View History

MAKEALL=`{cd ../make; ls Make.*}
2008-07-20 10:17:17 +00:00
CFILES=`{9 ls -p $PLAN9/src/lib9/fmt/*.c}
CFILES1=`{9 ls -p $PLAN9/src/lib9/fmt/*.c |grep -v test}
TARG=\
$MAKEALL\
2008-07-20 10:17:17 +00:00
$CFILES\
NOTICE\
README\
Makefile\
fmt.h\
fmtdef.h\
nan.h\
2004-12-28 23:27:43 +00:00
plan9.h\
2004-04-19 05:57:10 +00:00
fmtinstall.3\
2004-12-28 23:27:43 +00:00
print.3\
2005-01-14 03:45:44 +00:00
WHAT=fmt
2005-01-14 03:45:44 +00:00
<../mkfile.what
%: $PLAN9/src/lib9/fmt/%
cp $prereq $target
2008-07-20 10:17:17 +00:00
fmt1.c: plan9.h $CFILES1
(echo '#include <stdarg.h>'; \
echo '#include <string.h>'; \
echo '#include <stdlib.h>'; \
echo '#include <errno.h>'; \
echo '#include <limits.h>'; \
echo '#include <math.h>'; \
echo '#include <float.h>'; \
cat plan9.h; \
echo '#include "utf.h"'; \
echo '#include "fmt.h"'; \
cat fmtdef.h; \
grep -hv '^#include' $CFILES1) >$target