# Makefile for ofiles

CC = cc
BIN = ${DESTDIR}/usr/local/etc
DEBUG = -O

# OSVERS is a definition of the NeXTStep version
#
#	try -DNS=10 for 1.0  (not tested)
#	use -DNS=10 for 1.0a
#	use -DNS=20 for 2.0
#	try -DNS=21 for 2.1 (not tested)

OSVERS = -DNS=20

# KNAMELIST defines a kernel name list file other than /mach - e. g.,
# /odmach or /sdmach - e. g.,
#
#	KNAMELIST=-DVMUNIX=\"/sdmach\"
#
# (The \" characters are required.)

KNAMELIST=

CFLAGS = ${DEBUG} ${OSVERS} ${KNAMELIST}

# KMEM is the name of the group that has read access to /dev/kmem

KMEM = operator


all: ofiles

clean:
	rm -f core a.out *.o ofiles

install: ofiles
	install -c -m 2755 -o root -g ${KMEM} -s ofiles ${BIN}

man:
	nroff -man ofiles.man

manprint:
	ptroff -man ofiles.man

ofiles: ofiles.c
	${CC} ${CFLAGS} ofiles.c -o ofiles
