summaryrefslogtreecommitdiff
path: root/linux/ia64/Makefile.in
blob: 72b0383d257721e96049c39886e91e3be37fef43 (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)/.. -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: $(srcdir)/../ioctlent.sh
	sh $(srcdir)/../ioctlent.sh

errnoent.h: ../../errnoent.sh $(includedir)/asm/errno.h
	$(SHELL) $(srcdir)/../../errnoent.sh $(includedir)/asm/errno.h >$@

signalent.h: ../../signalent.sh $(includedir)/asm/signal.h
	$(SHELL) $(srcdir)/../../signalent.sh $(includedir)/asm/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