########################################################################
#
# TITLE:
#	Makefile
#
# AUTHOR:
#	Kevin J. Miller
#
# DESCRIPTION:
#	Generic Makefile for OEL releases.  Identification is by
#	the $(PROJ) and $(RELEASE) macros.
#
#				CHANGE HISTORY
#
# $Log: Makefile.release,v $
# Revision 2.28  1995/01/25  04:33:13  kevin
# fixed local lib and hosts
#
# Revision 2.27  1995/01/25  01:03:32  kevin
# fixed library paths
#
# Revision 2.26  1995/01/22  05:24:22  kevin
# added shared library support
#
# Revision 2.25  1995/01/07  03:04:05  kevin
# standardized machine
#
# Revision 2.24  1994/11/21  01:55:07  kevin
# fixed include path
#
# Revision 2.23  1994/11/20  23:30:06  kevin
# added SFOC include and library paths by default
#
# Revision 2.22  1994/11/20  00:12:38  kevin
# updated paths
#
# Revision 2.21  1994/11/19  22:42:11  kevin
# added INCLROOT
#
# Revision 2.20  1994/11/19  22:32:30  kevin
# updated with BLDDIR
#
# Revision 2.19  1994/11/17  19:34:20  kevin
# merged dev changes
#
# Revision 2.18  1994/10/20  18:41:14  dsfa
# update include path
#
# Revision 2.17  1994/10/18  04:18:33  jeffb
# carry over PREFIX from pro, clean up BHEAD
#
# Revision 2.16  1994/10/18  00:08:21  jeffb
# add BSRC and FSRC definitions
#
# Revision 2.15  1994/10/17  23:50:59  jeffb
# add -i option to flex options
#
# Revision 2.14  1994/10/17  23:46:14  kevin
# added bison and flex support
#
# Revision 2.13  1994/05/20  22:37:22  kevin
# port updates
#
# Revision 2.12  1994/05/05  00:52:49  kevin
# added MACH includes and libs
#
# Revision 2.11  1994/02/10  22:44:49  kevin
# fixed BINDIR
#
# Revision 2.10  1994/02/10  22:41:32  kevin
# fixed install directories
#
# Revision 2.9  1994/01/05  00:51:43  kevin
# simplified porting
#
# Revision 2.8  1994/01/04  01:38:13  kevin
# port updates
#
# Revision 2.7  1994/01/04  00:35:31  kevin
# updated for port
#
# Revision 2.6  1993/07/01  00:45:31  kevin
# added SFOCDIR
#
# Revision 2.5  1993/06/29  02:03:24  kevin
# deliver from release directory
#
# Revision 2.4  1993/06/25  21:56:25  kevin
# updated to deliver from release directory
#
# Revision 2.3  1991/12/19  23:23:16  kevin
# added static target for static link
#
# Revision 2.2  1991/11/07  01:02:12  kevin
# added DRAWINGS and HELP
#
# Revision 2.1  1991/09/27  01:28:20  kevin
# created common template for OEL release Makefile
#
########################################################################

SHELL = /bin/sh

#
# Machine dependent definitions
#

include Defines.$(MACH)

#
# Program definition
#

PROJ = xopps
RELEASE = 1.8

#
# Installation locations (edit to suit your system)
#

ROOTDIR = /usr/local
BINDIR = $(ROOTDIR)/bin
RSCDIR = $(ROOTDIR)/lib/X11/app-defaults
MAN1DIR = $(ROOTDIR)/man/man1
HELPDIR = $(ROOTDIR)/lib/help
BITDIR = $(ROOTDIR)/lib/bitmaps

#
# You generally should not edit below this line
#

OPTIMIZEFLAG = -O
BLDDIR = .
SYSDEFS = $(MACHDEFS) -D$(MACH) -DRELEASE='"$(RELEASE)"' $(DEFINES)
FULLINCLPATH = $(MACHINCLPATH) $(INCLPATH)

RM = rm -f

CFLAGS = $(OPTIMIZEFLAG) $(SYSDEFS) $(FULLINCLPATH)

MALLOC =

LDFLAGS = $(OPTIMIZEFLAG) $(MACHDEFS)
LIBS = -lXm_s -lXt_s -lX11_s
FULLLIBPATH = $(MACHLIBPATH) $(LIBPATH)

LINT = lint
LINTFLAGS = -abhqvx

CFLOW = cflow
CFLOWFLAGS = -ix

PRINT = enscript -2rG

SRCS = activity.c beware.c bitmaps.c chart.c chdate.c color.c \
	dialog.c drawing.c dynarray.c event.c export.c fileio.c filemenu.c \
	gr_plot.c help.c hline.c image.c internals.c level.c line.c \
	main.c marker.c menu_calls.c message.c mover.c mxutil.c \
	object.c page.c pline.c plot.c print.c rectlist.c \
	sactivity.c selectfile.c sequence.c shellmgmt.c slip.c status.c \
	symbol.c text.c utc.c util.c
HEAD = xopps.bm beware.h dialog.h dynarray.h gr_plot.h help.h message.h \
	rectlist.h selectfile.h shellmgmt.h utc.h xopps.h
OBJS = $(SRCS:.c=.o) $(YSRC:.y=.o) $(BSRC:.y=.o) $(FSRC:.l=.o) $(TSRC:.d=.o)

RSRC = XOpps
MAN1 = xopps.1
HELP = xopps.info
PERLEXE = opps2xopps
BITMAPS = jpl1.bm jpl2.bm

all: $(PROJ)

$(PROJ): $(OBJS)
	$(RM) $(PROJ)
	$(CC) $(LDFLAGS) $(OBJS) $(MALLOC) -o $(PROJ) $(FULLLIBPATH) $(LIBS) $(MACHLIBS)

.c.o:
	$(RM) $@
	$(CC) -c $(CFLAGS) $<

clean:
	$(RM) $(PROJ) $(OBJS) $(TEMPS) $(BHEAD) $(THEAD)

lint:
	$(LINT) $(LINTFLAGS) $(SYSDEFS) $(FULLINCLPATH) $(SRCS)

cflow:
	$(CFLOW) $(CFLOWFLAGS) $(SYSDEFS) $(FULLINCLPATH) $(SRCS)

print:
	$(PRINT) $(SRCS) $(HEAD) $(RSRC) $(PERLLIB) $(PERLEXE) $(TABLES) \
	$(HELP) $(DRAWINGS)

install:
	install -c -m 755 $(PROJ) $(BINDIR)
	install -c -m 644 $(RSRC) $(RSCDIR)
	install -c -m 644 $(MAN1) $(MAN1DIR)
	install -c -m 644 $(HELP) $(HELPDIR)
	install -c -m 755 $(PERLEXE) $(BINDIR)
	install -c -m 444 $(BITMAPS) $(BITDIR)

$(BLDDIR)/activity.o: beware.h
$(BLDDIR)/activity.o: dialog.h
$(BLDDIR)/activity.o: gr_plot.h
$(BLDDIR)/activity.o: help.h
$(BLDDIR)/activity.o: message.h
$(BLDDIR)/activity.o: rectlist.h
$(BLDDIR)/activity.o: selectfile.h
$(BLDDIR)/activity.o: shellmgmt.h
$(BLDDIR)/activity.o: utc.h
$(BLDDIR)/activity.o: xopps.h
$(BLDDIR)/beware.o: beware.h
$(BLDDIR)/beware.o: shellmgmt.h
$(BLDDIR)/bitmaps.o: beware.h
$(BLDDIR)/bitmaps.o: dialog.h
$(BLDDIR)/bitmaps.o: gr_plot.h
$(BLDDIR)/bitmaps.o: help.h
$(BLDDIR)/bitmaps.o: message.h
$(BLDDIR)/bitmaps.o: rectlist.h
$(BLDDIR)/bitmaps.o: selectfile.h
$(BLDDIR)/bitmaps.o: shellmgmt.h
$(BLDDIR)/bitmaps.o: utc.h
$(BLDDIR)/bitmaps.o: xopps.h
$(BLDDIR)/chart.o: beware.h
$(BLDDIR)/chart.o: dialog.h
$(BLDDIR)/chart.o: gr_plot.h
$(BLDDIR)/chart.o: help.h
$(BLDDIR)/chart.o: message.h
$(BLDDIR)/chart.o: rectlist.h
$(BLDDIR)/chart.o: selectfile.h
$(BLDDIR)/chart.o: shellmgmt.h
$(BLDDIR)/chart.o: utc.h
$(BLDDIR)/chart.o: xopps.h
$(BLDDIR)/chdate.o: beware.h
$(BLDDIR)/chdate.o: dialog.h
$(BLDDIR)/chdate.o: gr_plot.h
$(BLDDIR)/chdate.o: help.h
$(BLDDIR)/chdate.o: message.h
$(BLDDIR)/chdate.o: rectlist.h
$(BLDDIR)/chdate.o: selectfile.h
$(BLDDIR)/chdate.o: shellmgmt.h
$(BLDDIR)/chdate.o: utc.h
$(BLDDIR)/chdate.o: xopps.h
$(BLDDIR)/color.o: beware.h
$(BLDDIR)/color.o: dialog.h
$(BLDDIR)/color.o: gr_plot.h
$(BLDDIR)/color.o: help.h
$(BLDDIR)/color.o: message.h
$(BLDDIR)/color.o: rectlist.h
$(BLDDIR)/color.o: selectfile.h
$(BLDDIR)/color.o: shellmgmt.h
$(BLDDIR)/color.o: utc.h
$(BLDDIR)/color.o: xopps.h
$(BLDDIR)/dialog.o: dialog.h
$(BLDDIR)/dialog.o: shellmgmt.h
$(BLDDIR)/dialog.o: utc.h
$(BLDDIR)/drawing.o: beware.h
$(BLDDIR)/drawing.o: dialog.h
$(BLDDIR)/drawing.o: gr_plot.h
$(BLDDIR)/drawing.o: help.h
$(BLDDIR)/drawing.o: message.h
$(BLDDIR)/drawing.o: rectlist.h
$(BLDDIR)/drawing.o: selectfile.h
$(BLDDIR)/drawing.o: shellmgmt.h
$(BLDDIR)/drawing.o: utc.h
$(BLDDIR)/drawing.o: xopps.h
$(BLDDIR)/dynarray.o: dynarray.h
$(BLDDIR)/event.o: beware.h
$(BLDDIR)/event.o: dialog.h
$(BLDDIR)/event.o: gr_plot.h
$(BLDDIR)/event.o: help.h
$(BLDDIR)/event.o: message.h
$(BLDDIR)/event.o: rectlist.h
$(BLDDIR)/event.o: selectfile.h
$(BLDDIR)/event.o: shellmgmt.h
$(BLDDIR)/event.o: utc.h
$(BLDDIR)/event.o: xopps.h
$(BLDDIR)/export.o: beware.h
$(BLDDIR)/export.o: dialog.h
$(BLDDIR)/export.o: gr_plot.h
$(BLDDIR)/export.o: help.h
$(BLDDIR)/export.o: message.h
$(BLDDIR)/export.o: rectlist.h
$(BLDDIR)/export.o: selectfile.h
$(BLDDIR)/export.o: shellmgmt.h
$(BLDDIR)/export.o: utc.h
$(BLDDIR)/export.o: xopps.h
$(BLDDIR)/fileio.o: beware.h
$(BLDDIR)/fileio.o: dialog.h
$(BLDDIR)/fileio.o: gr_plot.h
$(BLDDIR)/fileio.o: help.h
$(BLDDIR)/fileio.o: message.h
$(BLDDIR)/fileio.o: rectlist.h
$(BLDDIR)/fileio.o: selectfile.h
$(BLDDIR)/fileio.o: shellmgmt.h
$(BLDDIR)/fileio.o: utc.h
$(BLDDIR)/fileio.o: xopps.h
$(BLDDIR)/filemenu.o: beware.h
$(BLDDIR)/filemenu.o: dialog.h
$(BLDDIR)/filemenu.o: gr_plot.h
$(BLDDIR)/filemenu.o: help.h
$(BLDDIR)/filemenu.o: message.h
$(BLDDIR)/filemenu.o: rectlist.h
$(BLDDIR)/filemenu.o: selectfile.h
$(BLDDIR)/filemenu.o: shellmgmt.h
$(BLDDIR)/filemenu.o: utc.h
$(BLDDIR)/filemenu.o: xopps.h
$(BLDDIR)/gr_plot.o: gr_plot.h
$(BLDDIR)/help.o: help.h
$(BLDDIR)/hline.o: beware.h
$(BLDDIR)/hline.o: dialog.h
$(BLDDIR)/hline.o: gr_plot.h
$(BLDDIR)/hline.o: help.h
$(BLDDIR)/hline.o: message.h
$(BLDDIR)/hline.o: rectlist.h
$(BLDDIR)/hline.o: selectfile.h
$(BLDDIR)/hline.o: shellmgmt.h
$(BLDDIR)/hline.o: utc.h
$(BLDDIR)/hline.o: xopps.h
$(BLDDIR)/image.o: beware.h
$(BLDDIR)/image.o: dialog.h
$(BLDDIR)/image.o: gr_plot.h
$(BLDDIR)/image.o: help.h
$(BLDDIR)/image.o: message.h
$(BLDDIR)/image.o: rectlist.h
$(BLDDIR)/image.o: selectfile.h
$(BLDDIR)/image.o: shellmgmt.h
$(BLDDIR)/image.o: utc.h
$(BLDDIR)/image.o: xopps.h
$(BLDDIR)/internals.o: beware.h
$(BLDDIR)/internals.o: dialog.h
$(BLDDIR)/internals.o: gr_plot.h
$(BLDDIR)/internals.o: help.h
$(BLDDIR)/internals.o: message.h
$(BLDDIR)/internals.o: rectlist.h
$(BLDDIR)/internals.o: selectfile.h
$(BLDDIR)/internals.o: shellmgmt.h
$(BLDDIR)/internals.o: utc.h
$(BLDDIR)/internals.o: xopps.h
$(BLDDIR)/level.o: beware.h
$(BLDDIR)/level.o: dialog.h
$(BLDDIR)/level.o: gr_plot.h
$(BLDDIR)/level.o: help.h
$(BLDDIR)/level.o: message.h
$(BLDDIR)/level.o: rectlist.h
$(BLDDIR)/level.o: selectfile.h
$(BLDDIR)/level.o: shellmgmt.h
$(BLDDIR)/level.o: utc.h
$(BLDDIR)/level.o: xopps.h
$(BLDDIR)/line.o: beware.h
$(BLDDIR)/line.o: dialog.h
$(BLDDIR)/line.o: gr_plot.h
$(BLDDIR)/line.o: help.h
$(BLDDIR)/line.o: message.h
$(BLDDIR)/line.o: rectlist.h
$(BLDDIR)/line.o: selectfile.h
$(BLDDIR)/line.o: shellmgmt.h
$(BLDDIR)/line.o: utc.h
$(BLDDIR)/line.o: xopps.h
$(BLDDIR)/main.o: beware.h
$(BLDDIR)/main.o: dialog.h
$(BLDDIR)/main.o: gr_plot.h
$(BLDDIR)/main.o: help.h
$(BLDDIR)/main.o: message.h
$(BLDDIR)/main.o: rectlist.h
$(BLDDIR)/main.o: selectfile.h
$(BLDDIR)/main.o: shellmgmt.h
$(BLDDIR)/main.o: utc.h
$(BLDDIR)/main.o: xopps.bm
$(BLDDIR)/main.o: xopps.h
$(BLDDIR)/marker.o: beware.h
$(BLDDIR)/marker.o: dialog.h
$(BLDDIR)/marker.o: gr_plot.h
$(BLDDIR)/marker.o: help.h
$(BLDDIR)/marker.o: message.h
$(BLDDIR)/marker.o: rectlist.h
$(BLDDIR)/marker.o: selectfile.h
$(BLDDIR)/marker.o: shellmgmt.h
$(BLDDIR)/marker.o: utc.h
$(BLDDIR)/marker.o: xopps.h
$(BLDDIR)/menu_calls.o: beware.h
$(BLDDIR)/menu_calls.o: dialog.h
$(BLDDIR)/menu_calls.o: gr_plot.h
$(BLDDIR)/menu_calls.o: help.h
$(BLDDIR)/menu_calls.o: message.h
$(BLDDIR)/menu_calls.o: rectlist.h
$(BLDDIR)/menu_calls.o: selectfile.h
$(BLDDIR)/menu_calls.o: shellmgmt.h
$(BLDDIR)/menu_calls.o: utc.h
$(BLDDIR)/menu_calls.o: xopps.h
$(BLDDIR)/message.o: message.h
$(BLDDIR)/mover.o: beware.h
$(BLDDIR)/mover.o: dialog.h
$(BLDDIR)/mover.o: gr_plot.h
$(BLDDIR)/mover.o: help.h
$(BLDDIR)/mover.o: message.h
$(BLDDIR)/mover.o: rectlist.h
$(BLDDIR)/mover.o: selectfile.h
$(BLDDIR)/mover.o: shellmgmt.h
$(BLDDIR)/mover.o: utc.h
$(BLDDIR)/mover.o: xopps.h
$(BLDDIR)/object.o: beware.h
$(BLDDIR)/object.o: dialog.h
$(BLDDIR)/object.o: gr_plot.h
$(BLDDIR)/object.o: help.h
$(BLDDIR)/object.o: message.h
$(BLDDIR)/object.o: rectlist.h
$(BLDDIR)/object.o: selectfile.h
$(BLDDIR)/object.o: shellmgmt.h
$(BLDDIR)/object.o: utc.h
$(BLDDIR)/object.o: xopps.h
$(BLDDIR)/page.o: beware.h
$(BLDDIR)/page.o: dialog.h
$(BLDDIR)/page.o: gr_plot.h
$(BLDDIR)/page.o: help.h
$(BLDDIR)/page.o: message.h
$(BLDDIR)/page.o: rectlist.h
$(BLDDIR)/page.o: selectfile.h
$(BLDDIR)/page.o: shellmgmt.h
$(BLDDIR)/page.o: utc.h
$(BLDDIR)/page.o: xopps.h
$(BLDDIR)/pline.o: beware.h
$(BLDDIR)/pline.o: dialog.h
$(BLDDIR)/pline.o: gr_plot.h
$(BLDDIR)/pline.o: help.h
$(BLDDIR)/pline.o: message.h
$(BLDDIR)/pline.o: rectlist.h
$(BLDDIR)/pline.o: selectfile.h
$(BLDDIR)/pline.o: shellmgmt.h
$(BLDDIR)/pline.o: utc.h
$(BLDDIR)/pline.o: xopps.h
$(BLDDIR)/plot.o: beware.h
$(BLDDIR)/plot.o: dialog.h
$(BLDDIR)/plot.o: gr_plot.h
$(BLDDIR)/plot.o: help.h
$(BLDDIR)/plot.o: message.h
$(BLDDIR)/plot.o: rectlist.h
$(BLDDIR)/plot.o: selectfile.h
$(BLDDIR)/plot.o: shellmgmt.h
$(BLDDIR)/plot.o: utc.h
$(BLDDIR)/plot.o: xopps.h
$(BLDDIR)/print.o: beware.h
$(BLDDIR)/print.o: dialog.h
$(BLDDIR)/print.o: gr_plot.h
$(BLDDIR)/print.o: help.h
$(BLDDIR)/print.o: message.h
$(BLDDIR)/print.o: rectlist.h
$(BLDDIR)/print.o: selectfile.h
$(BLDDIR)/print.o: shellmgmt.h
$(BLDDIR)/print.o: utc.h
$(BLDDIR)/print.o: xopps.h
$(BLDDIR)/rectlist.o: message.h
$(BLDDIR)/rectlist.o: rectlist.h
$(BLDDIR)/sactivity.o: beware.h
$(BLDDIR)/sactivity.o: dialog.h
$(BLDDIR)/sactivity.o: gr_plot.h
$(BLDDIR)/sactivity.o: help.h
$(BLDDIR)/sactivity.o: message.h
$(BLDDIR)/sactivity.o: rectlist.h
$(BLDDIR)/sactivity.o: selectfile.h
$(BLDDIR)/sactivity.o: shellmgmt.h
$(BLDDIR)/sactivity.o: utc.h
$(BLDDIR)/sactivity.o: xopps.h
$(BLDDIR)/selectfile.o: beware.h
$(BLDDIR)/selectfile.o: help.h
$(BLDDIR)/selectfile.o: message.h
$(BLDDIR)/selectfile.o: selectfile.h
$(BLDDIR)/selectfile.o: shellmgmt.h
$(BLDDIR)/sequence.o: beware.h
$(BLDDIR)/sequence.o: dialog.h
$(BLDDIR)/sequence.o: gr_plot.h
$(BLDDIR)/sequence.o: help.h
$(BLDDIR)/sequence.o: message.h
$(BLDDIR)/sequence.o: rectlist.h
$(BLDDIR)/sequence.o: selectfile.h
$(BLDDIR)/sequence.o: shellmgmt.h
$(BLDDIR)/sequence.o: utc.h
$(BLDDIR)/sequence.o: xopps.h
$(BLDDIR)/shellmgmt.o: message.h
$(BLDDIR)/shellmgmt.o: shellmgmt.h
$(BLDDIR)/slip.o: beware.h
$(BLDDIR)/slip.o: dialog.h
$(BLDDIR)/slip.o: gr_plot.h
$(BLDDIR)/slip.o: help.h
$(BLDDIR)/slip.o: message.h
$(BLDDIR)/slip.o: rectlist.h
$(BLDDIR)/slip.o: selectfile.h
$(BLDDIR)/slip.o: shellmgmt.h
$(BLDDIR)/slip.o: utc.h
$(BLDDIR)/slip.o: xopps.h
$(BLDDIR)/status.o: beware.h
$(BLDDIR)/status.o: dialog.h
$(BLDDIR)/status.o: gr_plot.h
$(BLDDIR)/status.o: help.h
$(BLDDIR)/status.o: message.h
$(BLDDIR)/status.o: rectlist.h
$(BLDDIR)/status.o: selectfile.h
$(BLDDIR)/status.o: shellmgmt.h
$(BLDDIR)/status.o: utc.h
$(BLDDIR)/status.o: xopps.h
$(BLDDIR)/symbol.o: beware.h
$(BLDDIR)/symbol.o: dialog.h
$(BLDDIR)/symbol.o: gr_plot.h
$(BLDDIR)/symbol.o: help.h
$(BLDDIR)/symbol.o: message.h
$(BLDDIR)/symbol.o: rectlist.h
$(BLDDIR)/symbol.o: selectfile.h
$(BLDDIR)/symbol.o: shellmgmt.h
$(BLDDIR)/symbol.o: utc.h
$(BLDDIR)/symbol.o: xopps.h
$(BLDDIR)/text.o: beware.h
$(BLDDIR)/text.o: dialog.h
$(BLDDIR)/text.o: gr_plot.h
$(BLDDIR)/text.o: help.h
$(BLDDIR)/text.o: message.h
$(BLDDIR)/text.o: rectlist.h
$(BLDDIR)/text.o: selectfile.h
$(BLDDIR)/text.o: shellmgmt.h
$(BLDDIR)/text.o: utc.h
$(BLDDIR)/text.o: xopps.h
$(BLDDIR)/utc.o: utc.h
$(BLDDIR)/util.o: beware.h
$(BLDDIR)/util.o: dialog.h
$(BLDDIR)/util.o: gr_plot.h
$(BLDDIR)/util.o: help.h
$(BLDDIR)/util.o: message.h
$(BLDDIR)/util.o: rectlist.h
$(BLDDIR)/util.o: selectfile.h
$(BLDDIR)/util.o: shellmgmt.h
$(BLDDIR)/util.o: utc.h
$(BLDDIR)/util.o: xopps.h
