summary refs log tree commit diff
path: root/Src/Modules/system.mdd
blob: 61950994a2b1db10afe1054ffdec52d1d6d10100 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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 > $@
Make