blob: 8cc135db689940bd42f088612fdfb250a4969aad [file] [log] [blame]
Wichert Akkerman76baf7c1999-02-19 00:21:36 +00001#
2# $Id$
3#
4
5srcdir = @srcdir@
6VPATH = $(srcdir)
7
8CC = @CC@
9CPP = @CPP@
10SHELL = /bin/sh
11
12DEFS = @DEFS@
13LDLIBS = @LIBS@
14
15CFLAGS = -g
16LDFLAGS = -g
17WARNFLAGS = @WARNFLAGS@
18
19CPPFLAGS =
20INCLUDES = -I. -I.. -I$(srcdir)
21
22includedir = @includedir@
23
24all: ioctlent.h errnoent.h signalent.h syscallent.h
25
26ioctlent.raw: ioctlent.sh
27 $(SHELL) $(srcdir)/ioctlent.sh $(includedir) >$@
28
29ioctlent.h: ioctlent.raw ioctlsort
30 ./ioctlsort >$@
31
32ioctlsort: ioctlsort.o
33 $(CC) $(LDFLAGS) ioctlsort.o -o ioctlsort
34
35ioctlsort.o: ../ioctlsort.c
36 $(CC) $(WARNFLAGS) $(DEFS) $(CPPFLAGS) $(INCLUDES) $(CFLAGS) -c $(srcdir)/../ioctlsort.c
37
38ioctlsort.o: ioctlent.raw
39
40errnoent.h: ../errnoent.sh $(includedir)/linux/errno.h
41 $(SHELL) $(srcdir)/../errnoent.sh $(includedir)/*/errno.h >$@
42
43signalent.h: ../signalent.sh $(includedir)/linux/signal.h
44 $(SHELL) $(srcdir)/../signalent.sh $(includedir)/*/signal.h >$@
45
46#syscallent.h: ../syscallent.sh $(includedir)/sys/syscall.h
47syscallent.h:
48 $(SHELL) $(srcdir)/../syscallent.sh $(includedir)/sys/syscall.h >$@
49
50clean:
51 rm -f ioctlent.c *.raw *.tmp *.o ioctlsort
52
53distclean: clean
54 rm -f Makefile
55
56maintainer-clean: distclean
57 rm -f ioctlent.h errnoent.h signalent.h