#
#   Makefile for the xvtdl program
#

#---------------------------------------------------------------------
#  $Id: Makefile,v 2.5 1992/07/15 20:54:01 jipping Exp $
#---------------------------------------------------------------------
#
#  Compilation flags.
#
#  Change CC, CFLAGS, and LDFLAGS to suit your tastes and environment
#
CC = cc
CFLAGS = -O -I$(OPENWINHOME)/include
LDFLAGS = -O -L$(OPENWINHOME)/lib

#----------------------------------------------------------------------
#
#  Location variables.  
#
#  BIN should be changed to reflect the location you want the binaries.
#  LIB should be changed to point to the directory you want info files
#  like prolog files to go.
#  MAN should be the place where man pages go.
#  MANEXT should be the suffix on the manual pages.
#  HELPDIR should point to the help directory.
#
BINDIR = /usr/local/bin
LIBDIR = /usr/local/lib
MANDIR = /usr/local/man/man1
MANEXT = 1
HELPDIR = /usr/local/lib
#
#  These should not be changed
#
PRINT_PROLOG1 = $(LIBDIR)/prolog1.ps
PRINT_PROLOG2 = $(LIBDIR)/prolog2.ps

#----------------------------------------------------------------------
#
#  Mail program.  Give the mail program you use -- it should be able to 
#  take a "-s" option for a subject.
#  
MAILPGM = mail

#----------------------------------------------------------------------
#
#  Toolkit version:  Specify the version of the XView toolkit (2 or 3)
#  you have.
#
XVIEW = 3

######################################################################
#
#   No changes should be necessary below this point.


#---------------------------------------------------------------------
#  Some global vars...

#---------------------------------------------------------------------
#  Target patterns.

#---------------------------------------------------------------------
#  Finally, the real dependencies.

#---------------------------------------------------------------------
install:
	install -s -m 755 xvtdl $(BINDIR)
	install -s -m 755 tdl $(BINDIR)
	install -m 755 prolog1.ps $(LIBDIR)
	install -m 755 prolog2.ps $(LIBDIR)
	install -m 755 xvtdl.man $(MANDIR)/xvtdl.$(MANEXT)
	install -m 755 tdl.man $(MANDIR)/tdl.$(MANEXT)
	install -m 755 help/* $(HELPDIR)
	

clean: 
	rm -f xvtdl $(OBJ) $(XVOBJ) core \#* *~ y.tab.c lex.yy.c	

