head     1.2;
branch   ;
access   ;
symbols  ;
locks    bin:1.2; strict;
comment  @# @;


1.2
date     93.03.11.07.45.26;  author bin;  state Exp;
branches ;
next     1.1;

1.1
date     92.06.10.14.36.07;  author bin;  state Exp;
branches ;
next     ;


desc
@@


1.2
log
@Hal: post NDP update that at least
can st breakpoints.
@
text
@#
#				DB makefile
#				===========
#
#	This makefile creates the 'db' command from the appropriate source
#	files.
#
LIBNAME=libc.a
CC=exec /bin/cc
AS=exec /bin/as
MV=mv
CPP=/lib/cpp
LD=ld
INCDIR=/usr/include
SYSINCDIR=$(INCDIR)/sys
RUNDIR=.
LCLDIR=.
LFLAGS=-i
LIBNAME=db.a
CPPFLAGS="-D_POSIX_SOURCE=0" "-D__KERNEL__=1"
CFLAGS=$(CPPFLAGS) -O
ARFLAGS=rs
CRT=/lib/crts0.o
LIBC=/lib/libc.a

OBJECTS=trace0.o	\
	trace1.o	\
	trace2.o	\
	trace3.o	\
	trace4.o	\
	trace5.o	\
	trace6.o

MCHOBJS=i8086a.o	\
	i8086b.o	\
	i8086c.o	\
	i8086d.o	

db:		$(OBJECTS) $(MCHOBJS)
	$(CC) -o db $(OBJECTS) $(MCHOBJS)	#	$(LD) $(LFLAGS) $(CRT) $(OBJECTS) $(MCHOBJS) $(LIBC) -o db

trace0.o:	trace0.c		\
			$(INCDIR)/stdio.h	\
			$(SYSINCDIR)/types.h	\
			i8086trace.h	\
			$(LCLDIR)/trace.h

trace1.o:	trace1.c		\
			$(INCDIR)/stdio.h	\
			$(INCDIR)/ctype.h	\
			$(INCDIR)/canon.h	\
			$(INCDIR)/l.out.h	\
			$(SYSINCDIR)/proc.h	\
			$(INCDIR)/signal.h	\
			$(SYSINCDIR)/uproc.h	\
			$(SYSINCDIR)/types.h	\
			i8086trace.h	\
			$(LCLDIR)/trace.h

trace2.o:	trace2.c		\
			$(INCDIR)/stdio.h	\
			$(INCDIR)/ctype.h	\
			$(INCDIR)/errno.h	\
			$(INCDIR)/l.out.h	\
			$(INCDIR)/signal.h	\
			$(SYSINCDIR)/uproc.h	\
			$(SYSINCDIR)/types.h	\
			i8086trace.h	\
			$(LCLDIR)/trace.h

trace3.o:	trace3.c		\
			$(INCDIR)/stdio.h	\
			$(INCDIR)/ctype.h	\
			$(SYSINCDIR)/types.h	\
			i8086trace.h	\
			$(LCLDIR)/trace.h

trace4.o:	trace4.c		\
			$(INCDIR)/stdio.h	\
			$(SYSINCDIR)/types.h	\
			i8086trace.h	\
			$(LCLDIR)/trace.h

trace5.o:	trace5.c		\
			$(INCDIR)/stdio.h	\
			$(INCDIR)/ctype.h	\
			$(SYSINCDIR)/types.h	\
			i8086trace.h	\
			$(LCLDIR)/trace.h

trace6.o:	trace6.c		\
			$(INCDIR)/stdio.h	\
			$(INCDIR)/ctype.h	\
			$(INCDIR)/canon.h	\
			$(INCDIR)/l.out.h	\
			$(SYSINCDIR)/types.h	\
			i8086trace.h	\
			$(LCLDIR)/trace.h

i8086a.o:	i8086a.c	\
			$(INCDIR)/stdio.h	\
			$(SYSINCDIR)/param.h 	\
			$(INCDIR)/l.out.h	\
			$(INCDIR)/signal.h	\
			$(SYSINCDIR)/uproc.h	\
			$(LCLDIR)/trace.h	\
			$(SYSINCDIR)/types.h	\
			i8086trace.h	\
			i8086.h

i8086b.o:	i8086b.c	\
			$(INCDIR)/stdio.h	\
			$(SYSINCDIR)/param.h	\
			$(LCLDIR)/trace.h	\
			$(SYSINCDIR)/types.h	\
			i8086trace.h	\
			i8086.h

i8086c.o:	i8086c.c	\
			$(INCDIR)/stdio.h	\
			$(SYSINCDIR)/param.h	\
			$(INCDIR)/l.out.h	\
			$(LCLDIR)/trace.h	\
			$(SYSINCDIR)/types.h	\
			i8086trace.h	\
			i8086.h

i8086d.o:	i8086d.c	\
			$(INCDIR)/stdio.h	\
			$(SYSINCDIR)/param.h	\
			$(INCDIR)/l.out.h	\
			$(LCLDIR)/trace.h	\
			$(SYSINCDIR)/types.h	\
			i8086trace.h	\
			i8086.h
@


1.1
log
@Initial revision
@
text
@a0 1
# $Header: /usr/src/cmd/db/RCS/Makefile,v 1.2 88/10/17 06:16:36 src Exp $
a7 10
#					Angus Telfer (Oct 1984)
#
# $Log:	/usr/src/cmd/db/RCS/Makefile,v $
# Revision 1.2	88/10/17  06:16:36 	src
# Modified for use with RCS and complete use of 'objects' directory (ART).
# 
# Revision 1.1	88/10/17  11:06:14	src
# Initial revision
# 

d20 1
a20 1
CPPFLAGS=
d24 1
a24 1
LIBC=/lib/libc386.a /lib/libc.a
a40 1
	nm -vp db | sort >db.nlist
a135 20

shrink:
	rm -f *.a
		for FILE in *.c *.h Makefile ; \
		do ; \
		  if [ -r $$FILE -a ! -w $$FILE -a -r "RCS/$${FILE},v" ] ; \
		  then \
			rm -fv $$FILE; \
		  fi ; \
		done ; true
		for FILE in i8086*.c i8086*.h ; \
		do ; \
		  if [ -r $$FILE -a ! -w $$FILE -a -r "RCS/$${FILE},v" ] ; \
		  then \
			rm -fv $$FILE; \
		  fi ; \
		done ; true

install:
	cp db $(RUNDIR)/db
@
