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


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

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

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

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

1.1
date	88.12.09.18.47.16;	author md;	state Exp;
branches;
next	;


desc
@@


1.5
log
@Use the older Reno formatting macros
@
text
@#	@@(#)Makefile	8.1 (Berkeley) 6/2/93

PROG=	adb
SRCS=	access.c command.c expr.c format.c input.c main.c message.c opset.c \
	output.c pcs.c print.c runpcs.c setup.c sym.c unasm.c vtop.c date.c
CFLAGS+=-I. -DSYMBOLIC
DPADD=  ${LIBM} offsets.h
LDADD=  -lm
NROFF=	/usr/old/bin/nroff
MANDOC=	-mandoc-reno
CLEANFILES+=offsets.h date.c mkdate mkoffset

${PROG}:${DPADD}

date.c:	mkdate
	./mkdate > date.c

offsets.h: mkoffset 
	./mkoffset > offsets.h

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

mkoffset:
	${CC} ${CFLAGS} ${.CURDIR}/Mkoffset.c -o mkoffset

.include <bsd.prog.mk>
@


1.4
log
@Need to add an additional rule to guarantee building offsets.h before
compiling the .c files.
@
text
@d9 2
a10 1
MANDOC=	-mandoc
@


1.3
log
@Convert to use obj style build directories.
@
text
@d12 2
@


1.2
log
@add man page and install rules
@
text
@d1 1
a1 15
#
# $Header: /usr/src/bin/adb.aos/RCS/Makefile,v 1.1 1988/12/09 18:47:16 md Exp md $
# $ACIS:Makefile 12.0$
# $Source: /usr/src/bin/adb.aos/RCS/Makefile,v $
#	Makefile	4.3	82/10/27
#
DESTDIR= 
CFLAGS=	-O -w -DSYMBOLIC
IFLAGS=-c -s -o bin -g bin
CFILES= access.c command.c expr.c format.c input.c main.c message.c opset.c\
	 output.c pcs.c print.c runpcs.c setup.c sym.c unasm.c \
	vtop.c 
OFILES= access.o command.o expr.o format.o input.o main.o message.o opset.o\
	output.o pcs.o print.o runpcs.o setup.o sym.o unasm.o \
	vtop.o
d3 8
a10 1
all: adb
d12 1
a12 1
adb:	mkdate ${OFILES}
a13 1
	${CC} -o adb date.c ${OFILES} -lm
d15 2
a16 2
offsets.h: Mkoffset 
	./Mkoffset > offsets.h
a17 3
Mkoffset: /usr/include/sys/user.h
	${CC} ${CFLAGS} Mkoffset.c -o Mkoffset

d19 1
a19 1
	${CC} mkdate.c -o mkdate
d21 2
a22 14
access.o:	defs.h mac.h mode.h machine.h offsets.h
command.o:	defs.h mac.h mode.h machine.h offsets.h
expr.o:		defs.h mac.h mode.h machine.h offsets.h
format.o:	defs.h mac.h mode.h machine.h offsets.h
input.o:	defs.h mac.h mode.h machine.h offsets.h
main.o:		defs.h mac.h mode.h machine.h offsets.h
message.o:	mac.h mode.h machine.h
opset.o:	defs.h mac.h mode.h machine.h offsets.h
output.o:	defs.h mac.h mode.h machine.h offsets.h
pcs.o:		defs.h mac.h mode.h machine.h offsets.h
print.o:	defs.h mac.h mode.h machine.h offsets.h
runpcs.o:	defs.h mac.h mode.h machine.h offsets.h
setup.o:	defs.h mac.h mode.h machine.h offsets.h
sym.o:		defs.h mac.h mode.h machine.h offsets.h
d24 1
a24 15

install: adb adb.0
	install ${IFLAGS} adb ${DESTDIR}/bin
	install -c adb.0 ${DESTDIR}/usr/share/man/cat1

adb.0:	adb.1
	nroff -mandoc -h adb.1 > adb.0

clean:
	rm -f Mkoffset offsets.h adb date.c date.o mkdate adb.0 ${OFILES}

print:
	@@ls -l | pr
	@@pr -f makefile *.h ${CFILES}

@


1.1
log
@Initial revision
@
text
@d2 1
a2 1
# $Header:Makefile 12.0$
d4 1
a4 1
# $Source: /ibm/acis/usr/src/bin/adb_ca/RCS/Makefile,v $
d9 1
a9 1
IFLAGS=-c -s
d48 1
a48 2

install: adb
d50 1
d52 3
d56 1
a56 1
	rm -f Mkoffset offsets.h adb date.c date.o mkdate ${OFILES}
d61 1
@
