Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 1 | # |
| 2 | # $Id$ |
| 3 | # |
| 4 | |
| 5 | srcdir = @srcdir@ |
Wichert Akkerman | f90da01 | 1999-10-31 21:15:38 +0000 | [diff] [blame] | 6 | VPATH = @srcdir@ |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 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 ioctlent.raw |
| 36 | $(CC) $(WARNFLAGS) $(DEFS) $(CPPFLAGS) $(INCLUDES) $(CFLAGS) -c $(srcdir)/../ioctlsort.c |
| 37 | |
| 38 | errnoent.h: ../errnoent.sh $(includedir)/sys/errno.h |
| 39 | $(SHELL) $(srcdir)/../errnoent.sh $(includedir)/sys/errno.h >$@ |
| 40 | |
| 41 | signalent.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 |
| 45 | syscallent.h: |
| 46 | $(SHELL) $(srcdir)/../syscallent.sh $(includedir)/sys/syscall.h >$@ |
| 47 | |
| 48 | clean: |
| 49 | rm -f ioctlent.c *.raw *.tmp *.o ioctlsort |
| 50 | |
| 51 | distclean: clean |
| 52 | rm -f Makefile |
| 53 | |
| 54 | realclean: distclean |
| 55 | rm -f ioctlent.h errnoent.h signalent.h |
| 56 | |