#
#	Author:  Alan Rollow, CSC/CS, Digital Equipment Corp.
#	File:	 Makefile
#	Date:	 3/29/90
#	Version: 1.67
#
#	Makefile - makefile for monitor program
#
DEFINES=
VERSION=-DARCH='"(arch)"' -DULTRIX='"Vx.x"' -DVERSION='"Vx.x"'
#
CFLAGS=$(DEFINES) -O
LINK=-o $@
LOAD=
LIBS=-lcurses -ltermlib libXtoX.a
PRINTER=
CC=@echo /usr/bin/cc
#
MAIN=monitor.o
OBJECTS=version.o \
	live.o replay.o names.o collect_disk.o tables.o buf.o fork.o \
	dumpit.o save.o screen.o curses.o read.o swap.o namei.o tty.o \
	help.o options.o signals.o strings.o functions.o string_data.o \
	data.o delta.o error.o read_kernel.o value.o iovec.o get_records.o \
	cpu.o netif.o disk.o users.o magnify.o sample.o os.o pid.o float.o
SOURCES=monitor.c version.c tables.c \
	live.c replay.c names.c collect_disk.c buf.c fork.c tty.c \
	dumpit.c save.c screen.c curses.c read.c swap.c namei.c \
	help.c options.c signals.c strings.c functions.c string_data.c \
	data.c delta.c error.c read_kernel.c value.c iovec.c get_records.c \
	cpu.c netif.c disk.c users.c magnify.c sample.c os.c pid.c float.c
#
#	Other stuff
#
INCLUDES=include.h screen.h options.h extern.h monitor.h pgtok.h
DOCS=include.hlp
#
#
#
monitor	: $(MAIN) $(OBJECTS) Makefile
	$(CC) $(LINK) $(MAIN) $(OBJECTS) $(LOAD) $(LIBS)

lint	: $(SOURCES) $(INCLUDES)
	lint $(VERSION) $(DEFINES) $(SOURCES) -lcurses

sources	: $(SOURCES) $(INCLUDES) $(READ_SOURCES) $(READ_INCLUDES)

sizes	: sizes.o
	$(CC) -O -o sizes sizes.o

sizes.o	: sizes.c monitor.h

buf.o		: buf.c 	 extern.h include.h options.h monitor.h
collect_disk.o  : collect_disk.c 
cpu.o		: cpu.c		 extern.h include.h	      monitor.h
curses.o	: curses.c	                    options.h
data.o		: data.c		  include.h	      monitor.h
delta.o		: delta.c	 extern.h include.h	      monitor.h
disk.o		: disk.c		  include.h	      monitor.h
dumpit.o	: dumpit.c			    options.h
error.o		: error.c			    options.h
float.o		: float.c        extern.h           options.h monitor.h
fork.o		: fork.c 	 extern.h include.h options.h monitor.h
functions.o	: functions.c		  include.h	      monitor.h
get_records.o	: get_records.c  extern.h include.h	      monitor.h
help.o		: help.c
iovec.o		: iovec.c	 extern.h include.h options.h monitor.h
live.o		: live.c	 extern.h include.h options.h monitor.h
magnify.o	: magnify.c		  include.h options.h monitor.h
monitor.o	: monitor.c	 extern.h include.h options.h
names.o		: names.c	 extern.h include.h options.h 	        pgtok.h
namei.o		: namei.c        extern.h include.h options.h monitor.h
netif.o		: netif.c	 extern.h include.h	      monitor.h
options.o	: options.c	 extern.h include.h options.h monitor.h
os.o		: os.c		 extern.h include.h options.h monitor.h
pid.o		: pid.c		 extern.h include.h	      monitor.h
read.o		: read.c	 extern.h include.h           monitor.h
read_kernel.o	: read_kernel.c
replay.o	: replay.c	 extern.h include.h options.h monitor.h
sample.o	: sample.c	 extern.h           options.h monitor.h
save.o		: save.c	 extern.h include.h options.h monitor.h
screen.o	: screen.c	 extern.h include.h options.h monitor.h screen.h pgtok.h
signals.o	: signals.c	 extern.h	    options.h monitor.h
strings.o	: strings.c		  include.h options.h
string_data.o	: string_data.c           include.h
swap.o		: swap.c
tables.o	: tables.c                include.h
tty.o		: tty.c		 extern.h include.h options.h monitor.h
users.o		: users.c
value.o		: value.c		  include.h

version.o	: version.c Makefile
	$(CC) $(VERSION) $(CFLAGS) -c version.c

#
#	Rules for getting sources file and include files.
#
sizes.c	:
	sccs get sizes.c
#
#	Monitor.
#
buf.c 	:
	sccs get buf.c

collect_disk.c 	:
	sccs get collect_disk.c

cpu.c 	:
	sccs get cpu.c

curses.c 	:
	sccs get curses.c

data.c 	:
	sccs get data.c

delta.c 	:
	sccs get delta.c

disk.c 	:
	sccs get disk.c

dumpit.c 	:
	sccs get dumpit.c

error.c 	:
	sccs get error.c

float.c	:
	sccs get float.c

fork.c 	:
	sccs get fork.c

functions.c 	:
	sccs get functions.c

get_records.c	:
	sccs get get_records.c

help.c 	:
	sccs get help.c

iovec.c 	:
	sccs get iovec.c

live.c 	:
	sccs get live.c

magnify.c 	:
	sccs get magnify.c

monitor.c 	:
	sccs get monitor.c

namei.c	:
	sccs get namei.c

names.c 	:
	sccs get names.c

netif.c 	:
	sccs get netif.c

options.c 	:
	sccs get options.c

os.c 	:
	sccs get os.c

pid.c 	:
	sccs get pid.c

read.c 	:
	sccs get read.c

read_kernel.c 	:
	sccs get read_kernel.c

replay.c 	:
	sccs get replay.c

sample.c 	:
	sccs get sample.c

save.c 	:
	sccs get save.c

screen.c 	:
	sccs get screen.c

signals.c 	:
	sccs get signals.c

string_data.c	:
	sccs get string_data.c

strings.c 	:
	sccs get strings.c

swap.c 	:
	sccs get swap.c

tables.c	:
	sccs get tables.c

tty.c	:
	sccs get tty.c

users.c 	:
	sccs get users.c

value.c 	:
	sccs get value.c

version.c 	:
	sccs get version.c

extern.h	:
	sccs get extern.h

include.h	:
	sccs get include.h

monitor.h	:
	sccs get monitor.h

options.h	:
	sccs get options.h

pgtok.h	:
	sccs get pgtok.h

screen.h	:
	sccs get screen.h

