# Makefile generated by imake - do not edit!
# $XConsortium: imake.c,v 1.51 89/12/12 12:37:30 jim Exp $

# $Id: imake.tmpl,v 1.69.1.1 1993/02/01 19:53:35 rr2b Exp $
#==================================================
# Copyright IBM Corporation 1988,1991 - All Rights Reserved
# For full copyright information see:'andrew/config/COPYRITE'
#==================================================

###################################################
# This Makefile is automatically generated by
# imake... do not modify or you may lose your
# changes when imake generates makefiles again.
# Ignore this message if you are not using imake.
###################################################

# $Disclaimer:
# $Disclaimer: This software is part of version 5.2.0 of the
# Andrew User Interface System and is the
# property of IBM, Carnegie Mellon University,
# and the other copyright holders.  The source
# code of this version is for the sole use of
# members of the Andrew Consortium with
# memberships extending into calendar year
# 1993.  This source code is not to be distributed
# to non-members of the consortium nor beyond
# a fifty-mile radius from the membership address.
# Binary object code compiled or derived from
# these sources is not to be distributed to non-
# members.  Members may have additional
# distribution rights granted by prior written
# permission of Carnegie Mellon University.
#
# IBM, CARNEGIE MELLON UNIVERSITY,
# AND THE OTHER COPYRIGHT HOLDERS
#  DISCLAIM ALL WARRANTIES WITH
# REGARD TO THIS SOFTWARE, INCLUDING
# ALL IMPLIED WARRANTIES OF MERCHANT-
# ABILITY AND FITNESS. IN
# NO EVENT SHALL  IBM, CARNEGIE
# MELLON UNIVERSITY, OR ANY OTHER
# COPYRIGHT HOLDER BE LIABLE FOR
# ANY SPECIAL, INDIRECT OR CONSE-
# QUENTIAL DAMAGES OR ANY DAMAGES
# WHATSOEVER RESULTING FROM LOSS OF
# USE, DATA OR PROFITS, WHETHER IN AN
# ACTION OF CONTRACT, NEGLIGENCE OR
# OTHER TORTIOUS ACTION, ARISING OUT
# OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.
#  $
#  $

.SUFFIXES: .PS .do .o .ih .eh .fwm .snf .rtx .c .s .spp .y .l .ch .mss .fdb .bdf .fb .pcf

        ALL_INCLUDES = -I. $(LOCALINCLUDES) $(INCLUDES)
        ALL_DEFINES = $(STD_DEFINES) $(DEFINES)
        CFLAGS = $(COMPILERFLAGS) $(CDEBUGFLAGS) $(ALL_INCLUDES) $(ALL_DEFINES)
        TESTING_CFLAGS = -DTESTINGONLYTESTING $(CFLAGS)
        CLASSFLAGS = $(CLASSINCLUDES)
        LDFLAGS = $(SYS_LIBRARIES) \
	$(SYSAUX_LIBRARIES) \
	$(SHARED_LIB_PATH) \
	$(DYN_LINK_LIB)

###################################################
# The following comes from the platform.tmpl
###################################################

#
# The following comes from the macro file
#

        SYSTEM_H_FILE = system.h

        SYS_IDENT = vax_43
        SYS_OS_ARCH = dec_vax

#
# The following is from the allsys.mcr file, and may be over-ridden
# by the platform-specific system.mcr file or the
# site-specific site.mcr file.
#

        XBASEDIR =

        XSRCDIR =

        KRBLIB =

        BASEDIR = /mit/andrew/5.2/vax
        DESTDIR = ${BASEDIR}

        XBINDIR = /usr/bin/X11

        XUTILDIR = /usr/bin/X11

        CDEBUGFLAGS = -O

        MAKEDODEBUG =

        SHELL = /bin/sh
        CSHELL = /bin/csh
        CC = cc

        MALLOCALIGNMENT = 4

        CRT0PATH = /lib/crt0.o
        CLIB = /lib/libc.a

        RESOLVLIB =

        NETLIBS =

        SUPLIBS =

        ADDALIASES = $(BASEDIR)/etc/addalias
        CLASS = ${BASEDIR}/bin/class
        MAKEDO = ${BASEDIR}/bin/makedo
        MAKEDOFLAGS = ${MAKEDODEBUG} -d ${BASEDIR}/lib -b ${BASEDIR}/bin
        DOINDEX = $(BASEDIR)/bin/doindex
        XINCDIR = $(XBASEDIR)/usr/include

        INCLUDES =  -I${BASEDIR}/include/atk -I${BASEDIR}/include -I${XINCDIR}

        CLASSINCLUDES = $(LOCALINCLUDES) $(INCLUDES)
        DEPENDSCRIPT = $(TOP)/config/depend.csh
        XMAKEDEPEND = $(XUTILDIR)/makedepend
        IMAKE = $(XUTILDIR)/imake
        XLIBDIR = $(XBASEDIR)/usr/lib
        OLDXLIB = $(XLIBDIR)/liboldX.a
        IRULESRC = $(TOP)/config
        FDBWM = $(BASEDIR)/bin/fdbwm
        FDBBDF = $(BASEDIR)/bin/fdbbdf

        XFC = $(XBASEDIR)/$(XBINDIR)/bdftosnf

        XMKFONTDIR = $(XBASEDIR)/$(XBINDIR)/mkfontdir
        MACH = and

        TOP = ./../../../../../../../mit/andrew/5.2/vax
        AS = as
        CPP = /lib/cpp
        LD = ld
        LINT = lint

        INSTALL = $(BASEDIR)/etc/install

        TAGS = ctags
        RM = rm -f
        MV = mv
        CP = cp
        LN = ln -s
        RANLIB = ranlib
        AR = ar clq
        ARDEL = ar d
        CHMODW = chmod +w
        LS = ls
        AWK = awk
        SORT = sort
        TR = tr
        NM = nm
        MAKE = make
        SED = sed
        LEX = lex
        YACC = yacc
        SCRIBE = scribe
        LINTOPTS = -axz
        LINTLIBFLAG = -C
        STD_DEFINES =

# This MATHLIB macro is a workaround for a bug in HPUX8.0 ld.
# That loader has problems linking normal archive libraries
# into a shared library.  [console/cmd, ness/objects]
# This macro is made empty in the appropriate hp system.mcr
# files.
        MATHLIB = -lm

        JPEGLIB = ${BASEDIR}/lib/libjpeg.a
#        JPEGINCLUDES = ${BASEDIR}/include

        TIFFLIB = ${BASEDIR}/lib/libtiff.a
#        TIFFINCLUDES = ${BASEDIR}/include

#
# End of what comes from the allsys.mcr file.
#

SYS_LIBRARIES = $(DESTDIR)/lib/libossup.a

        CDEBUGFLAGS = -g
        MAKEDODEBUG = -g

        XUTILDIR =
        XBASEDIR = /usr/athena
        XINCDIR = ${XBASEDIR}/include/X11
        XLIBDIR = ${XBASEDIR}/lib

        XFC = bdftosnf

        XMKFONTDIR = mkfontdir
        XMAKEDEPEND = makedepend
        IMAKE = imake

        KRBLIB = /usr/athena/lib/libkrb.a

        INCLUDES =  -I${BASEDIR}/include/atk -I${BASEDIR}/include -I${XINCDIR} -I/usr/athena/include

        BASEDIR = /mit/andydevo/texport/5.2/vax

        XMAKEDEPEND = /usr/athena/bin/makedepend

        GNULIB = /mit/gnu/vaxlib/gcc/vax-bsd/1.40/libgcc.a

        CC = gcc1 -pipe
        CDEBUGFLAGS = -O -g

#
# Back from the macro file
#

###################################################
# Back from platform.tmpl
###################################################

INSTMODEFLAGS = -c -m

        INSTUIDFLAGS = $(INSTMODEFLAGS) 4755

        INSTLIBFLAGS = $(INSTMODEFLAGS) 0664
        INSTDOFLAGS = $(INSTMODEFLAGS) 0444

        INSTINCFLAGS = $(INSTMODEFLAGS) 0444
        INSTMANFLAGS = $(INSTMODEFLAGS) 0444
        INSTAPPFLAGS = $(INSTMODEFLAGS) 0444
        INSTPROGFLAGS = $(INSTMODEFLAGS) 0555
        INSTPROGRWFLAGS = $(INSTMODEFLAGS) 0755
        INSTCLASSPROGFLAGS = $(INSTPROGFLAGS)

        AFSUTILS = $(BASEDIR)/lib/libafs.a

MACROFILE = system.mcr

        UTILLIB = $(BASEDIR)/lib/libutil.a $(BASEDIR)/lib/libafs.a
        PRSLIB =

        MALLOCLIB = $(BASEDIR)/lib/libplumber.a

        IMAKE_CMD = $(IMAKE) -Timake.tmpl -I. -I$(IRULESRC) -s Makefile
        DOTDOTIMAKE_CMD = $(IMAKE) -Timake.tmpl -I. -I../$(IRULESRC) -s Makefile

###################################################
# The following comes from andrew.rls
###################################################

SHARED =

MKDOFLGS = $(MAKEDOFLAGS)

ASMPP_CC = $(CPP)
AS_FLAGS =

FONTEXT = snf

###################################################
# Back from andrew.rls
###################################################

All:: all
Doc:: doc
doc:: install.doc
Aliases:: aliases
aliases:: install.alias
Install:: install
install:: all install.time doc
system: Install
World:: world
world:: depend install
Tidy:: tidy
Clean:: clean
clean:: tidy

dependInstall:: depend
	make DESTDIR=$(DESTDIR) install

dependAll:: depend
	make DESTDIR=$(DESTDIR) all

depend::
all::

dependInstallClean:: depend install clean

tidy::
	$(RM) \#* ,* *~ *.CKP *.BAK *.bas errs core
	$(RM) *.ln *.o *.dog tags TAGS make.log
clean::
	$(RM) *.do *.eh *.ih *.a *.fwm *.snf *.pcf *.rtx *.fb
	$(RM) install.time install.doc

Makefile:: Imakefile \
	$(IRULESRC)/andyenv.h \
	$(IRULESRC)/imake.tmpl \
	$(IRULESRC)/andrew.rls \
	$(IRULESRC)/allsys.h \
	$(IRULESRC)/allsys.mcr \
	$(IRULESRC)/site.rls \
	$(IRULESRC)/site.h \
	$(IRULESRC)/site.mcr \
	$(IRULESRC)/$(MACROFILE) \
	$(IRULESRC)/$(SYSTEM_H_FILE)
		$(IMAKE_CMD) -DTOPDIR=$(TOP) ; \
		touch .depends; \
		cat .depends >>Makefile

tags::
	$(TAGS) -w *.[ch]
	$(TAGS) -xw *.[ch] > TAGS

###################################################
# The following comes from the local Imakefile
###################################################

OBJS = main.o parse.o misc.o 2RFunctions.o

all:: $(SHARED)
.c.o:
	$(RM) $@
	$(CC) -c $(CFLAGS) $*.c

install.alias:: doc do.alias
	@sh -c 'if [ -f ,help.alias ]; then  \
\
		$(ADDALIASES) ,help.alias \
\
		$(DESTDIR)/help/help.aliases;\
\
		fi; \
\
	exit 0'

do.alias::
	@$(RM) ,help.alias

all:: 2rtf
2rtf:  main.o parse.o misc.o 2RFunctions.o input.o  ${UTILLIB}
	$(RM) $@
	$(CC) $(CFLAGS) -o $@  main.o parse.o misc.o 2RFunctions.o input.o  ${UTILLIB}   $(LDFLAGS)
clean:: ; $(RM) 2rtf

install.time:: 2rtf
	@(case '$(MFLAGS)' in *[i]*) set +e;; esac; \
	for i in $?; do \
		(set -x; $(INSTALL)  $(INSTPROGFLAGS) $$i    $(DESTDIR)/bin/$$i) done)

install.time:: 2rtf.trans
	@(case '$(MFLAGS)' in *[i]*) set +e;; esac; \
	for i in $?; do \
		(set -x; $(INSTALL)   $(INSTINCFLAGS) $$i   $(DESTDIR)/lib/$$i) done)

install.time:: 2rtf.help
	@(case '$(MFLAGS)' in *[i]*) set +e;; esac; \
	for i in $?; do \
		(set -x; $(INSTALL)  $(INSTINCFLAGS) $$i   $(DESTDIR)/help/$$i) done)

depend::
	$(DEPENDSCRIPT) $(XMAKEDEPEND) $(CLASS) \
	"$(ALL_INCLUDES)" "$(ALL_DEFINES)"

###################################################
# Back from the local Imakefile
###################################################

Makefiles:: Makefile

install.time::
	touch install.time

install.doc::
	touch install.doc

install.alias::

listdirs:
	@echo ${SUBDIRS}

##### DEPENDENCY LINE - DO NOT DELETE #####


2RFunctions.o: 2RFunctions.c /usr/include/stdio.h /usr/include/sys/file.h
2RFunctions.o: /usr/include/ctype.h 2rtf.h stvec.h input.h
input.o: input.c /usr/include/stdio.h /usr/include/ctype.h
main.o: main.c /usr/include/stdio.h /usr/include/sys/file.h
main.o: /usr/include/sys/errno.h /usr/include/strings.h 2rtf.h stvec.h
main.o: input.h
misc.o: misc.c /usr/include/stdio.h /usr/include/ctype.h 2rtf.h stvec.h
misc.o: input.h
parse.o: parse.c /usr/include/stdio.h /usr/include/ctype.h 2rtf.h stvec.h
parse.o: input.h
