# @(#)Makefile 4.6 (Berkeley) 7/15/83
# make file for debugger "dbx"
# The file "defs.h" is included by all.
# My version of cerror automatically catches certain errors
# such as out of memory, I/O error. If you re-make this with
# the standard cerror, the program could fault unexpectedly.
DEST
= ${DESTDIR}/usr
/ucb
/dbx
${AOUT}: makedefs mkdate
${HDR} ${OBJ}
@
${CC} ${LDFLAGS} date.c
${OBJ} ${LIBRARIES} -o
${AOUT}
@
${CC} ${LDFLAGS} -p date.c
${OBJ} ${LIBRARIES} -o
${AOUT}
makedefs
: makedefs.c library.o cerror.o
${CC} makedefs.c library.o cerror.o
-o makedefs
@echo
"don't print it, it's too long"
# Don't worry about the removal of header files, they're created from
rm -f
${HDR} ${OBJ} y.tab.c y.tab.h \
${AOUT} mkdate mkdate.o makedefs makedefs.o date.c core
# Create a tar file called "tape" containing relevant files.
tar cfv tape Makefile READ_ME TO_DO
${SRC} makedefs.c mkdate.c
# Header dependencies are purposely incomplete since header files
# are "written" every time the accompanying source file changes even if
# the resulting contents of the header don't change. The alternative is
# to force a "makedefs" to be invoked for every header file each time dbx
# Also, there should be a dependency of scanner.o and keywords.o on y.tab.h
# but misfortunately silly make does a "makedefs y.tab.c y.tab.h" which
symbols.o tree.o
check.o eval.o events.o
: operators.h