17 WARNFLAGS = @WARNFLAGS@
20 INCLUDES = -I. -I.. -I$(srcdir)
22 includedir = @includedir@
24 all: ioctlent.h errnoent.h signalent.h syscallent.h
26 ioctlent.c: ioctlent.sh
27 $(SHELL) $(srcdir)/ioctlent.sh $(includedir) >$@
29 ioctlent.raw: ioctlent.c
30 $(CPP) ioctlent.c | sed 1,/xyzzy/d >$@
32 ioctlent.h: ioctlent.raw ioctlsort
35 ioctlsort: ioctlsort.o
36 $(CC) $(LDFLAGS) ioctlsort.o -o ioctlsort
38 ioctlsort.o: ../ioctlsort.c ioctlent.raw
39 $(CC) $(WARNFLAGS) $(DEFS) $(CPPFLAGS) $(INCLUDES) $(CFLAGS) -c $(srcdir)/../ioctlsort.c
41 errnoent.h: ../errnoent.sh $(includedir)/sys/errno.h
42 $(SHELL) $(srcdir)/../errnoent.sh $(includedir)/sys/errno.h >$@
44 signalent.h: ../signalent.sh $(includedir)/sys/signal.h
45 $(SHELL) $(srcdir)/../signalent.sh $(includedir)/sys/signal.h >$@
47 #syscallent.h: ../syscallent.sh $(includedir)/sys/syscall.h
49 $(SHELL) $(srcdir)/../syscallent.sh $(includedir)/sys/syscall.h >$@
52 rm -f ioctlent.c *.raw *.tmp *.o ioctlsort
57 maintainer-clean: distclean
58 rm -f ioctlent.h errnoent.h signalent.h