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