head	1.5;
access;
symbols;
locks; strict;
comment	@# @;


1.5
date	94.07.19.20.58.00;	author md;	state Exp;
branches;
next	1.4;

1.4
date	94.05.26.22.19.56;	author md;	state Exp;
branches;
next	1.3;

1.3
date	94.04.27.19.46.44;	author md;	state Exp;
branches;
next	1.2;

1.2
date	92.12.12.20.07.33;	author md;	state Exp;
branches;
next	1.1;

1.1
date	90.11.07.09.41.55;	author rayan;	state Exp;
branches;
next	;


desc
@aos
@


1.5
log
@use older Reno formatting macros
@
text
@#	@@(#)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>
@


1.4
log
@Need to link with libcompat to pick up old regex package.
@
text
@d8 2
@


1.3
log
@Convert to obj style Makefile
@
text
@d6 2
a7 2
LDADD+=	-lm
DPADD+=	${LIBM}
@


1.2
log
@Original changes from rayan
@
text
@d1 1
a1 12
#
# Copyright (c) 1983 Regents of the University of California.
# All rights reserved. The Berkeley Software License Agreement
# specifies the terms and conditions for redistribution.
#
#$Header: /usr/src/pgrm/dbx.aos/RCS/Makefile,v 1.1 90/11/07 09:41:55 rayan Exp $
#$Source: /usr/src/pgrm/dbx.aos/RCS/Makefile,v $
#
# make file for debugger "dbx"
#
# The file "defs.h" is included by all.
#
d3 1
a3 2
.SUFFIXES:
.SUFFIXES: .h .c .s .o
d5 3
a7 2
AOUT	= tdbx
DEST	= ${DESTDIR}/usr/bin/dbx
d9 2
a10 3
CC	= cc
AS	= as
#
d12 1
a12 2
# CFLAGS = '-DMAINTAINER="linton@@shasta"'
#
d14 1
d16 14
d31 1
a31 3
LD = $(CC)
LDFLAGS	=
LIBRARIES = -lm # -lPW for IRIS (System V)
a32 97
# Define symbolic links to be made to machine dependent files.
# % make links	    # to create these.
#	coredump.c -> machine/coredump.c
#	decode.c -> machine/decode.c
#	frame.c -> machine/frame.c
#	machine -> ibmrt
#	machine.h -> decode.h
#	ops.c -> machine/ops.c
#	procinfo.c -> machine/procinfo.c
LINKS = coredump.c decode.c frame.c ops.c procinfo.c

# Define default machine
MACHINE = ibmrt

OBJ = \
    y.tab.o \
    asm.o \
    events.o \
    c.o \
    cerror.o \
    check.o \
    coredump.o \
    debug.o \
    decode.o \
    eval.o \
    examine.o \
    execute.o \
    fortran.o \
    frame.o \
    keywords.o \
    languages.o \
    library.o \
    lists.o \
    main.o \
    mappings.o \
    modula-2.o \
    names.o \
    object.o \
    operators.o \
    ops.o \
    pascal.o \
    printsym.o \
    process.o \
    procinfo.o \
    runtime.o \
    scanner.o \
    source.o \
    stabstring.o \
    symbols.o \
    tree.o \
    help.o \
    version.o

HDR = \
    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

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

.s.o:
	rm -f tmp
	cpp $*.s | grep -v "^#" > tmp
	${AS} -o $*.o tmp
	rm -f tmp

d34 1
a34 3
	@@rm -f $*.h
	./makedefs -f $*.c $*.h
	@@chmod 444 $*.h
d36 2
a37 6
${AOUT} all: makedefs mkdate ${HDR} ${OBJ}
	@@rm -f date.c
	@@./mkdate > date.c
	@@echo "linking"
	@@${CC} ${CFLAGS} -c date.c
	@@${LD} ${LDFLAGS} date.o ${OBJ} ${LIBRARIES} -o ${AOUT}
d39 1
a39 6
# Someone has to setup the initial machine symbolic link
links:
	-@@if [ ! -r machine ]; then echo 'Warning - linking machine to ${MACHINE}' >&2; \
		ln -s ${MACHINE} machine;fi
	-for i in ${LINKS};do if [ ! -r $$i ]; then ln -s $i machine/$$i ; fi ; done
	-if [ ! -r machine.h ]; then ln -s decode.h machine.h; fi
d41 1
a41 5
profile: ${HDR} ${OBJ}
	@@rm -f date.c
	@@./mkdate > date.c
	@@echo "linking with -p"
	@@${CC} ${LDFLAGS} -p date.c ${OBJ} ${LIBRARIES} -o ${AOUT}
d43 1
a43 47
y.tab.c: commands.y
	yacc -d commands.y

cerror.o: machine/cerror.s

makedefs: makedefs.c library.o cerror.o
	${CC} makedefs.c library.o cerror.o -o makedefs

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

print:
	@@echo "don't print it, it's too long"

#
# Don't worry about the removal of header files, they're created from
# the source files.
#

clean:
	rm -f ${HDR} ${OBJ} y.tab.c y.tab.h ${AOUT} mkdate mkdate.o \
	    makedefs makedefs.o date.c date.o core mon.out prof.out make.out

cleandefs:
	rm -f ${HDR} y.tab.h

testinstall: ${AOUT} test install

test:
	@@cd tests; make

install: ${AOUT}
	install -s -c -o bin -g bin ${AOUT} ${DEST}

#
# 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
# is made.
#
# 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
# destroys y.tab.h.
#

symbols.o tree.o check.o eval.o events.o: operators.h
@


1.1
log
@Initial revision
@
text
@d6 2
a7 2
#$Header: Makefile,v 12.1 89/10/12 17:37:36 brunner Locked $
#$Source: /fish/dbx/RCS/Makefile,v $
d18 1
a18 1
DEST	= ${DESTDIR}/usr/ucb/dbx
d187 1
a187 1
	install -s -c ${AOUT} ${DEST}
@
