summaryrefslogtreecommitdiff
path: root/linux/Makefile.in
blob: daf48f64f286c9bad8cc73f24324422efaf80eb1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#
# $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 ioctldefs.h ioctls.h
	$(CC) $(WARNFLAGS) $(DEFS) $(CPPFLAGS) $(INCLUDES) $(CFLAGS) -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