blob: 3b3f7fee8137d909aa9d2e3fb4f400fb2870a709 [file] [log] [blame]
Wichert Akkerman76baf7c1999-02-19 00:21:36 +00001#
2# $Id$
3#
4
5srcdir = @srcdir@
Wichert Akkermanf90da011999-10-31 21:15:38 +00006VPATH = @srcdir@
Wichert Akkerman76baf7c1999-02-19 00:21:36 +00007
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 ioctlent.raw
36 $(CC) $(WARNFLAGS) $(DEFS) $(CPPFLAGS) $(INCLUDES) $(CFLAGS) -c $(srcdir)/../ioctlsort.c
37
38errnoent.h: ../errnoent.sh $(includedir)/sys/errno.h
39 $(SHELL) $(srcdir)/../errnoent.sh $(includedir)/sys/errno.h >$@
40
41signalent.h: ../signalent.sh $(includedir)/sys/signal.h
42 $(SHELL) $(srcdir)/../signalent.sh $(includedir)/sys/signal.h >$@
43
44#syscallent.h: ../syscallent.sh $(includedir)/sys/syscall.h
45syscallent.h:
46 $(SHELL) $(srcdir)/../syscallent.sh $(includedir)/sys/syscall.h >$@
47
48clean:
49 rm -f ioctlent.c *.raw *.tmp *.o ioctlsort
50
51distclean: clean
52 rm -f Makefile
53
54realclean: distclean
55 rm -f ioctlent.h errnoent.h signalent.h
56