# # $Id$ # srcdir = @srcdir@ VPATH = @srcdir@ CC = @CC@ CPP = @CPP@ SHELL = /bin/sh DEFS = @DEFS@ LDLIBS = @LIBS@ CFLAGS = -g LDFLAGS = -g WARNFLAGS = @WARNFLAGS@ CPPFLAGS = INCLUDES = -I. -I.. -I$(srcdir) includedir = @includedir@ all: ioctlent.h errnoent.h signalent.h syscallent.h ioctlent.raw: $(srcdir)/../ioctlent.sh $(SHELL) $(srcdir)/../ioctlent.sh $(includedir) >$@ ioctlent.h: ioctlent.raw ioctlsort ./ioctlsort >$@ ioctlsort: ioctlsort.o $(CC) $(LDFLAGS) ioctlsort.o -o ioctlsort ioctlsort.o: $(srcdir)/../../ioctlsort.c $(CC) $(WARNFLAGS) $(DEFS) $(CPPFLAGS) $(INCLUDES) $(CFLAGS) -c $(srcdir)/../../ioctlsort.c ioctlsort.o: ioctlent.raw errnoent.h: $(srcdir)/../../errnoent.sh $(includedir)/errno.h $(SHELL) $(srcdir)/../../errnoent.sh $(includedir)/errno.h >$@ signalent.h: $(srcdir)/../../signalent.sh $(includedir)/sys/signal.h $(SHELL) $(srcdir)/../../signalent.sh $(includedir)/sys/signal.h >$@ syscallent.h: $(srcdir)/../syscalls.pl $(srcdir)/../syscalls.cat $(srcdir)/../syscalls.print /usr/src/sys/kern/syscalls.master perl $(srcdir)/../syscalls.pl /usr/src/sys/kern/syscalls.master $(srcdir)/../syscalls.print $(srcdir)/../syscalls.cat >$@ syscall.h: syscallent.h clean: rm -f ioctlent.c *.raw *.tmp *.o ioctlsort distclean: clean rm -f Makefile maintainer-clean: distclean rm -f ioctlent.h errnoent.h signalent.h dummy.h syscall.h syscallent.h