#	@(#)Makefile	5.5 (Berkeley) 5/11/90

PROG=	dbx

CFLAGS+=-I. -I${.CURDIR}
LDADD+=	-lm -lcompat
DPADD+=	${LIBM} ${LIBCOMPAT}
NROFF=	/usr/old/bin/nroff
MANDOC=	-mandoc-reno

.PATH:	${.CURDIR}/machine

# if you want gripes
# CFLAGS+= '-DMAINTAINER="linton@shasta"'

.PATH:	${.CURDIR}/machine

CFILES=	asm.c events.c c.c check.c coredump.c debug.c \
	decode.c eval.c examine.c execute.c fortran.c frame.c keywords.c \
	languages.c library.c lists.c main.c mappings.c modula-2.c names.c \
	object.c operators.c ops.c pascal.c printsym.c process.c procinfo.c \
	runtime.c scanner.c source.c stabstring.c symbols.c tree.c help.c \
	version.c
YFILES=	commands.o
AFILES=	cerror.o
HDRS=	asm.h events.h c.h check.h coredump.h debug.h decode.h \
	eval.h examine.h execute.h fortran.h frame.h keywords.h languages.h \
	lists.h main.h mappings.h modula-2.h names.h object.h operators.h \
	ops.h pascal.h printsym.h process.h procinfo.h runtime.h \
	scanner.h source.h stabstring.h symbols.h tree.h version.h
SRCS=	${AFILES} ${YFILES} ${CFILES} date.c

CLEANFILES+=${HDRS} y.tab.h date.c

.c.h:
	../makedefs/makedefs -f ${.IMPSRC} ${.PREFIX}.h

date.c:	${HDRS} ${CFILES} ${YFILES} ${AFILES}
	../mkdate/mkdate > date.c

all:	_PROGSUBDIR

${PROG}: ${HDRS}

.include <bsd.prog.mk>
