# All rights reserved. The Berkeley software License Agreement
# specifies the terms and conditions for redistribution.
#
-# @(#)Makefile 5.12 (Berkeley) %G%
+# @(#)Makefile 5.15 (Berkeley) %G%
#
# make file for debugger "dbx"
#
#
.SUFFIXES:
-.SUFFIXES: .h .c .s .o
+.SUFFIXES: .h .c .s .o .1 .0
AOUT = tdbx
DESTDIR =
-DEST = /usr/ucb/dbx
+DEST = /usr/bin/dbx
CC = cc
AS = as
.s.o:
@echo "assembling $*.s"
@rm -f tmp
- @/lib/cpp $*.s | grep -v "^#" > tmp
+ @cpp $*.s | egrep -v "^#" > tmp
@${AS} -o $*.o tmp
@rm -f tmp
.c.h:
./makedefs -f $*.c $*.h
-${AOUT}: makedefs mkdate ${HDR} ${OBJ}
+all ${AOUT}: makedefs mkdate ${HDR} ${OBJ}
@rm -f date.c
@./mkdate > date.c
@echo "linking"
cerror.s ops.c machine.c runtime.c date.o
@chdir tests; make clean
+cleandir: clean
+ rm -f dbx.0 tags .depend
+
cleandefs:
rm -f ${HDR} y.tab.h
test:
@cd tests; make
-install: ${AOUT}
+install: ${AOUT} dbx.0
install -s -o bin -g bin -m 755 ${AOUT} ${DESTDIR}${DEST}
+ install -c -o bin -g bin -m 444 dbx.0 ${DESTDIR}/usr/man/cat1
#
# Create a tar file called "tape" containing relevant files.