2003-08-30 21:06:06 +02:00
|
|
|
name=zsh/system
|
|
|
|
link=dynamic
|
|
|
|
load=no
|
|
|
|
|
|
|
|
autobins="sysread syswrite syserror"
|
|
|
|
|
|
|
|
autoparams="errnos"
|
|
|
|
|
|
|
|
objects="system.o errnames.o"
|
|
|
|
|
|
|
|
headers="errcount.h"
|
|
|
|
|
|
|
|
:<<\Make
|
|
|
|
errnames.c: errnames1.awk errnames2.awk $(dir_top)/config.h @ERRNO_H@
|
|
|
|
if [ x@ERRNO_H@ = x ]; then \
|
|
|
|
touch errtmp.out; \
|
|
|
|
else \
|
|
|
|
$(AWK) -f $(sdir)/errnames1.awk @ERRNO_H@ >errtmp.c; \
|
|
|
|
$(CPP) errtmp.c >errtmp.out; \
|
|
|
|
fi
|
|
|
|
$(AWK) -f $(sdir)/errnames2.awk errtmp.out > $@
|
|
|
|
rm -f errtmp.c errtmp.out
|
|
|
|
|
|
|
|
errcount.h: errnames.c
|
|
|
|
grep 'define.*ERRCOUNT' errnames.c > $@
|
2004-02-14 19:50:15 +01:00
|
|
|
|
|
|
|
clean-here: clean.system
|
|
|
|
clean.system:
|
|
|
|
rm -f errcount.h errnames.c
|
2003-08-30 21:06:06 +02:00
|
|
|
Make
|
|
|
|
|