# Generated automatically from Makefile.in by configure.
#
# Makefile.in,v 2.2 1994/03/12 23:12:18 jrs Exp
#

srcdir = .
VPATH = $(srcdir)

CC = gcc -b sparc-sun-sunos4.1.4
CPP = gcc -b sparc-sun-sunos4.1.4 -E
SHELL = /bin/sh

DEFS = -DHAVE_CONFIG_H
LDLIBS = 

CFLAGS = -g
LDFLAGS = -g
WARNFLAGS = -Wall

CPPFLAGS =
INCLUDES = -I. -I.. -I$(srcdir)

includedir = /usr/include

all: ioctlent.h errnoent.h syscallent.h

ioctlent.raw: ioctlent.sh
	$(SHELL) $< $(includedir) >$@

ioctlent.h: ioctlent.raw ioctlsort
	./ioctlsort >$@

ioctlsort: ioctlsort.o
	$(CC) $(LDFLAGS) ioctlsort.o -o ioctlsort

ioctlsort.o: ../ioctlsort.c ioctlent.raw
	$(CC) $(WARNFLAGS) $(DEFS) $(CPPFLAGS) $(INCLUDES) $(CFLAGS) -c $<

errnoent.h: ../errnoent.sh $(includedir)/sys/errno.h 
	$(SHELL) $< $(includedir)/sys/errno.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

realclean: distclean
	rm -f ioctlent.h errnoent.h

