blob: 4d6f2b79ad1ae8b7fcf730335f3334f4cf95d8d5 [file] [log] [blame]
#
# $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.h: ioctlsort
./ioctlsort >$@
ioctlsort: ioctlsort.o
$(CC) $(LDFLAGS) ioctlsort.o -o ioctlsort
ioctlsort.o: ioctlsort.c ioctdefs.h ioctls.h
$(CC) $(WARNFLAGS) $(DEFS) $(CPPFLAGS) $(INCLUDES) $(CFLAGS) -c $(srcdir)/../ioctlsort.c
ioctldefs.h ioctls.h: ioctlent.sh
sh ioctlent.sh
errnoent.h: ../errnoent.sh $(includedir)/linux/errno.h
$(SHELL) $(srcdir)/../errnoent.sh $(includedir)/*/errno.h >$@
signalent.h: ../signalent.sh $(includedir)/linux/signal.h
$(SHELL) $(srcdir)/../signalent.sh $(includedir)/*/signal.h >$@
#syscallent.h: ../syscallent.sh $(includedir)/sys/syscall.h
syscallent.h:
$(SHELL) $(srcdir)/../syscallent.sh $(includedir)/sys/syscall.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