# Copyright (c) 1983 Regents of the University of California.
# All rights reserved. The Berkeley software License Agreement
# specifies the terms and conditions for redistribution.
# @(#)Makefile 5.8 (Berkeley) %G%
# make file for debugger "dbx"
# The file "defs.h" is included by all.
# Install the mail address of the person maintaining dbx below
# as -DMAINTAINER. A null string disables gripes.
CFLAGS
= '-DMAINTAINER=""' -O
# LDFLAGS = -X /lib/crt0.o
${AOUT}: makedefs mkdate
${HDR} ${OBJ}
@
${CC} ${CFLAGS} -c date.c
@
${LD} ${LDFLAGS} date.o
${OBJ} ${LIBRARIES} -o
${AOUT}
@
${CC} ${LDFLAGS} -p date.c
${OBJ} ${LIBRARIES} -o
${AOUT}
@echo
"expect 2 shift/reduce conflicts"
cerror.s
: cerror.
${MACHINE}.s
@ln
-s cerror.
${MACHINE}.s cerror.s
@ln
-s
${MACHINE}.c machine.c
@ln
-s ops.
${MACHINE}.c ops.c
runtime.c
: runtime.
${MACHINE}.c
@ln
-s runtime.
${MACHINE}.c runtime.c
makedefs
: makedefs.c library.o cerror.o
${CC} -O makedefs.c library.o cerror.o
-o makedefs
${CC} -O mkdate.c
-o mkdate
@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 mon.out prof.out make.out \
cerror.s ops.c machine.c runtime.c
testinstall
: ${AOUT} test install
install -s
${AOUT} ${DESTDIR}/${DEST}
# Create a tar file called "tape" containing relevant files.
Makefile History version READ_ME
${SRC} \
makedefs.c mkdate.c tests pchanges ptests
# 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