# Makefile generated by imake - do not edit!
# $XConsortium: imake.c,v 1.51 89/12/12 12:37:30 jim Exp $
#
# The cpp used on this machine replaces all newlines and multiple tabs and
# spaces in a macro expansion with a single space.  Imake tries to compensate
# for this, but is not always successful.
#

###########################################################################
# Makefile generated from "Imake.tmpl" and </tmp/IIf.a03496>.
#
# Platform-specific parameters may be set in the appropriate .cf
# configuration files.  Site-wide parameters may be set in the file
# site.def.  Full rebuilds are recommended if any parameters are changed.
#
#
# If your C preprocessor doesn't define any unique symbols, you'll need
# to set BOOTSTRAPCFLAGS when rebuilding imake (usually when doing
# "make Makefile", "make Makefiles", or "make World").
#
# If you absolutely can't get imake to work, you'll need to set the
# variables at the top of each Makefile as well as the dependencies at the
# bottom (makedepend will do this automatically).
#

###########################################################################
# platform-specific project configuration parameters
# edit sun.pcf to change

###########################################################################
# platform-specific configuration parameters - edit sun.cf to change

# platform:  sun.cf	91/07/01
# operating system:  SunOS 4.1.1

###########################################################################
# site-specific project configuration parameters - edit site.pdef to change

###########################################################################
# site-specific configuration parameters - edit site.def to change

# site:  Primate Center 89/12/22

# System characteristics.  Should be overridden as necessary in
# platform-specific .cf file.

###########################################################################
# definitions common to all Makefiles - do not edit

            SHELL = /bin/sh

          DESTDIR =
              TOP = .
      CURRENT_DIR = .

  VARARGS_DEFINES = -DVARARGS

               AR = ar clq
  BOOTSTRAPCFLAGS =
               CC = cc
              CPP = /lib/cpp $(STD_CPP_DEFINES)
    PREPROCESSCMD = cc -E $(STD_CPP_DEFINES)
          INSTALL = install
               LD = ld
             LINT = lint
      LINTLIBFLAG = -C
         LINTOPTS = -axz
               LN = ln -s
             MAKE = make
               MV = mv
               CP = cp
           RANLIB = ranlib
  RANLIBINSTFLAGS =
               RM = rm -f
     STD_INCLUDES =
  STD_CPP_DEFINES =
      STD_DEFINES =
 EXTRA_LOAD_FLAGS =
  EXTRA_LIBRARIES =
             TAGS = ctags

        INSTOWNER = -o bin
        INSTGROUP = -g bin
    INSTFILEFLAGS =
        INSTSTRIP =

     INSTBINFLAGS = -m 0755 ${INSTOWNER} ${INSTGROUP} ${INSTFILEFLAGS} ${INSTSTRIP}
     INSTUIDFLAGS = -m 04755 ${INSTOWNER} ${INSTGROUP} ${INSTFILEFLAGS} ${INSTSTRIP}
     INSTGIDFLAGS = -m 02755 ${INSTOWNER} ${INSTGROUP} ${INSTFILEFLAGS} ${INSTSTRIP}
    INSTUGIDFLAGS = -m 06755 ${INSTOWNER} ${INSTGROUP} ${INSTFILEFLAGS} ${INSTSTRIP}
     INSTLIBFLAGS = -m 0664 ${INSTOWNER} ${INSTGROUP} ${INSTFILEFLAGS}
  INSTSCRIPTFLAGS = -m 0755 ${INSTOWNER} ${INSTGROUP} ${INSTFILEFLAGS}
     INSTINCFLAGS = -m 0444 ${INSTOWNER} ${INSTGROUP} ${INSTFILEFLAGS}
     INSTDATFLAGS = -m 0444 ${INSTOWNER} ${INSTGROUP} ${INSTFILEFLAGS}
     INSTMANFLAGS = -m 0444 ${INSTOWNER} ${INSTGROUP} ${INSTFILEFLAGS}

      INCLUDEPATH = $(DESTDIR)/usr/include

   EXTRA_INCLUDES = ${PROJECT_INCLUDES}
      ALLINCLUDES = $(EXTRA_INCLUDES) $(INCLUDES) $(STD_INCLUDES)
       ALLDEFINES = $(ALLINCLUDES) $(STD_DEFINES) $(DEFINES)
           CFLAGS = $(CDEBUGFLAGS) $(CCOPTIONS) $(ALLDEFINES)
        LINTFLAGS = $(LINTOPTS) -DLINT $(ALLDEFINES)
           LDLIBS = $(SYS_LIBRARIES) $(EXTRA_LIBRARIES)
        LDOPTIONS = $(CDEBUGFLAGS) $(CCOPTIONS)

          MANPATH = $(DESTDIR)/usr/man
    MANSOURCEPATH = $(MANPATH)/man
           MANDIR = $(MANSOURCEPATH)l
        LIBMANDIR = $(MANSOURCEPATH)3
        SYSMANDIR = $(MANSOURCEPATH)8

              EQN = eqn
        MANMACROS = -man
         MEMACROS = -me
         MMMACROS = -mm
         MSMACROS = -ms
              PIC = pic
          PRINTER = lwe
           SOELIM = soelim
              TBL = gtbl
            TROFF = groff
            NROFF = nroff

      CDEBUGFLAGS = -O
        CCOPTIONS =

           RM_CMD = $(RM) *.CKP *.ln *.BAK *.bak *.o core errs ,* *.a .emacs_* tags TAGS make.log MakeOut

###########################################################################
# project-specific project group configuration parameters
# Edit Project.ptmpl to change

       PROJLIBDIR = ${USRLIBDIR}/troffcvt

            TSLIB = -ltokenscan
           ETMLIB = -letm
        MEMMGRLIB = -lmemmgr

INCLUDEINSTALLDIR = ${INCLUDEPATH}/local
    TROFFMACRODIR = ${USRLIBDIR}/tmac

       HAVEGETPID = 1

###########################################################################
# Standard project group configuration parameters
# Edit Project.tmpl to change

###########################################################################
# Standard project group configuration parameters

###########################################################################
# Section 1.  Cpp symbols

# Configuration group identification - name and release level

# Project identfication - name and release level

# Project-specific system directories and file locations

# Project-specific include file directories

# Configuration tools (files and directories)

###########################################################################
# Section 2.  Makefile symbols; needs to be coordinated with Imake.tmpl

# Configuration group identification - name and version

        CONFIGGROUPNAME = WRPRC
CONFIGGROUPMAJORRELEASE = 1
CONFIGGROUPMINORRELEASE = 03
     CONFIGGROUPRELEASE = ${CONFIGGROUPMAJORRELEASE}.${CONFIGGROUPMINORRELEASE}

# Project identfication - name and release level

        PROJECTNAME = troffcvt
PROJECTMAJORRELEASE = 1
PROJECTMINORRELEASE = 02
     PROJECTRELEASE = ${PROJECTMAJORRELEASE}.${PROJECTMINORRELEASE}

# Project-specific system directories and file locations

          PATHSEP = /

           BINDIR = $(DESTDIR)/usr/local
        USRLIBDIR = $(DESTDIR)/usr/lib

           TMPDIR = /usr/tmp

# Project-specific include file directories

       INCLUDESRC = .

 PROJECT_INCLUDES = -I${INCLUDESRC} -I${INCLUDEPATH}/local

# Configuration tools (files and directories)

    PUBCONFIGPATH = ${USRLIBDIR}/config
     PUBCONFIGDIR = ${PUBCONFIGPATH}/WRPRC
    PRIVCONFIGDIR = ${TOP}/config

        CONFIGSRC = $(TOP)/config
         IMAKESRC = $(CONFIGSRC)

          UTILSRC = $(TOP)/util
        SCRIPTSRC = $(UTILSRC)/scripts
        DEPENDSRC = $(UTILSRC)/makedepend
          MSUBSRC = $(UTILSRC)/msub
        SOELIMSRC = $(UTILSRC)/soelim

            IMAKE = imake
           DEPEND = makedepend
            IMKMF = imkmf
             MSUB = msub
        MKDIRHIER = /bin/sh $(SCRIPTSRC)/mkdirhier.sh

    IMKMF_DEFINES =
    IMAKE_DEFINES =
         IRULESRC = $(CONFIGSRC)
        MACROFILE = sun.cf

        IMAKE_CMD = $(IMAKE) -DUseInstalled -I$(NEWTOP)$(PRIVCONFIGDIR) -I$(PUBCONFIGDIR) $(IMAKE_DEFINES)

     ICONFIGFILES = $(IRULESRC)/Imake.tmpl \
			$(IRULESRC)/Imake.rules \
			$(IRULESRC)/ProjectGroup.tmpl \
			$(IRULESRC)/$(MACROFILE) \
			$(IRULESRC)/site.def \
			Imakefile \
			$(EXTRA_CONFIGFILES)

###########################################################################
# Project-specific imake rules
# Edit Imake.prules to change

###########################################################################
# Standard imake rules
# Edit Imake.rules to change

###########################################################################
# Imake rules.
# Hacked from X Window System R3 and R4 imake rules.

###########################################################################
# start of Imakefile

#	troffcvt Imakefile

#	Try "make Bootstrap" to rebuild the initial Makefile.
#	(assuming you have the WRPRC configuration project 1.03 or
#	higher installed.)

#	Look at the files in the config subdirectory to see if you want
#	to change anything.

# any special -D's or other flags for compiling
DEFINES = -D'LIBDIR="${PROJLIBDIR}"' \
	-D'MACLIBDIR="${TROFFMACRODIR}"' \
	-DHAVEGETPID=${HAVEGETPID}

# any special -I's for compiling
INCLUDES =

# any special libraries needed for linking
LIBRARIES = ${MEMMGRLIB} ${TSLIB} ${ETMLIB}

CVTSRCS = troffcvt.c input.c output.c skip.c list.c \
	parse.c action.c chartype.c text.c req.c setget.c \
	units.c math.c environ.c compat.c
CVTOBJS = troffcvt.o input.o output.o skip.o list.o \
	parse.o action.o chartype.o text.o req.o setget.o \
	units.o math.o environ.o compat.o

NULLSRCS = tc2null.c r-read.c r-font.c
NULLOBJS = tc2null.o r-read.o r-font.o

RTFSRCS = tc2rtf.c rtffont.c r-read.c r-font.c
RTFOBJS = tc2rtf.o rtffont.o r-read.o r-font.o

TEXTSRCS = tc2text.c r-read.c
TEXTOBJS = tc2text.o r-read.o

SRCS = ${CVTSRCS} ${NULLSRCS} ${RTFSRCS} ${TEXTSRCS}
OBJS = ${CVTOBJS} ${NULLOBJS} ${RTFOBJS} ${TEXTOBJS}

all:: troffcvt

clean::
	$(RM) troffcvt
troffcvt:: ${CVTOBJS}
	$(RM) $@
	$(CC) -o $@ ${CVTOBJS} $(LDOPTIONS)  ${LIBRARIES} $(LDLIBS)

install:: i.troffcvt
i.troffcvt:: troffcvt
	$(INSTALL) -c ${INSTBINFLAGS} troffcvt ${BINDIR}/troffcvt

install:: i.actions
i.actions:: actions
	$(INSTALL) -c ${INSTDATFLAGS} actions ${PROJLIBDIR}/actions

install:: i.man-redefs
i.man-redefs:: man-redefs
	$(INSTALL) -c ${INSTDATFLAGS} man-redefs ${PROJLIBDIR}/man-redefs

install:: i.me-redefs
i.me-redefs:: me-redefs
	$(INSTALL) -c ${INSTDATFLAGS} me-redefs ${PROJLIBDIR}/me-redefs

install:: i.mm-redefs
i.mm-redefs:: mm-redefs
	$(INSTALL) -c ${INSTDATFLAGS} mm-redefs ${PROJLIBDIR}/mm-redefs

install:: i.ms-redefs
i.ms-redefs:: ms-redefs
	$(INSTALL) -c ${INSTDATFLAGS} ms-redefs ${PROJLIBDIR}/ms-redefs

# troff2null stuff

all:: tc2null

clean::
	$(RM) tc2null
tc2null:: ${NULLOBJS}
	$(RM) $@
	$(CC) -o $@ ${NULLOBJS} $(LDOPTIONS)  ${LIBRARIES} $(LDLIBS)

install:: i.tc2null
i.tc2null:: tc2null
	$(INSTALL) -c ${INSTBINFLAGS} tc2null ${BINDIR}/tc2null

all:: troff2null

clean::
	$(RM) troff2null
troff2null:: troff2null.sh
	$(RM) $@
	echo "#!"${SHELL} > $@
	${MSUB} troff2null.sh >> $@
	chmod a+x $@

install:: i.troff2null
i.troff2null:: troff2null
	$(INSTALL) -c ${INSTSCRIPTFLAGS} troff2null ${BINDIR}/troff2null

# troff2rtf stuff

all:: tc2rtf

clean::
	$(RM) tc2rtf
tc2rtf:: ${RTFOBJS}
	$(RM) $@
	$(CC) -o $@ ${RTFOBJS} $(LDOPTIONS)  ${LIBRARIES} $(LDLIBS)

install:: i.tc2rtf
i.tc2rtf:: tc2rtf
	$(INSTALL) -c ${INSTBINFLAGS} tc2rtf ${BINDIR}/tc2rtf

all:: troff2rtf

clean::
	$(RM) troff2rtf
troff2rtf:: troff2rtf.sh
	$(RM) $@
	echo "#!"${SHELL} > $@
	${MSUB} troff2rtf.sh >> $@
	chmod a+x $@

install:: i.troff2rtf
i.troff2rtf:: troff2rtf
	$(INSTALL) -c ${INSTSCRIPTFLAGS} troff2rtf ${BINDIR}/troff2rtf

install:: i.tcr-fonts
i.tcr-fonts:: tcr-fonts
	$(INSTALL) -c ${INSTDATFLAGS} tcr-fonts ${PROJLIBDIR}/tcr-fonts

install:: i.rtf-fonts
i.rtf-fonts:: rtf-fonts
	$(INSTALL) -c ${INSTDATFLAGS} rtf-fonts ${PROJLIBDIR}/rtf-fonts

install:: i.rtf-spec-ansi
i.rtf-spec-ansi:: rtf-spec-ansi
	$(INSTALL) -c ${INSTDATFLAGS} rtf-spec-ansi ${PROJLIBDIR}/rtf-spec-ansi

install:: i.rtf-spec-mac
i.rtf-spec-mac:: rtf-spec-mac
	$(INSTALL) -c ${INSTDATFLAGS} rtf-spec-mac ${PROJLIBDIR}/rtf-spec-mac

install:: i.rtf-spec-pc
i.rtf-spec-pc:: rtf-spec-pc
	$(INSTALL) -c ${INSTDATFLAGS} rtf-spec-pc ${PROJLIBDIR}/rtf-spec-pc

install:: i.rtf-spec-pca
i.rtf-spec-pca:: rtf-spec-pca
	$(INSTALL) -c ${INSTDATFLAGS} rtf-spec-pca ${PROJLIBDIR}/rtf-spec-pca

# unroff stuff

all:: tc2text

clean::
	$(RM) tc2text
tc2text:: ${TEXTOBJS}
	$(RM) $@
	$(CC) -o $@ ${TEXTOBJS} $(LDOPTIONS)  ${LIBRARIES} $(LDLIBS)

install:: i.tc2text
i.tc2text:: tc2text
	$(INSTALL) -c ${INSTBINFLAGS} tc2text ${BINDIR}/tc2text

all:: unroff

clean::
	$(RM) unroff
unroff:: unroff.sh
	$(RM) $@
	echo "#!"${SHELL} > $@
	${MSUB} unroff.sh >> $@
	chmod a+x $@

install:: i.unroff
i.unroff:: unroff
	$(INSTALL) -c ${INSTSCRIPTFLAGS} unroff ${BINDIR}/unroff

install:: i.text-specials
i.text-specials:: text-specials
	$(INSTALL) -c ${INSTDATFLAGS} text-specials ${PROJLIBDIR}/text-specials

# documents

t.troffcvt.ms:: troffcvt.ms
	${SOELIM} troffcvt.ms  | ${TROFF} ${MSMACROS} |${PRINTER}

t.actions.ms.ms:: actions.ms.ms
	${SOELIM} actions.ms.ms  | ${TROFF} ${MSMACROS} |${PRINTER}

t.bugs.ms:: bugs.ms
	${SOELIM} bugs.ms  | ${TROFF} ${MSMACROS} |${PRINTER}

t.output.ms:: output.ms
	${SOELIM} output.ms |${TBL} | ${TROFF} ${MSMACROS} |${PRINTER}

t.troff2rtf.man:: troff2rtf.man
	${SOELIM} troff2rtf.man  | ${TROFF} ${MANMACROS} |${PRINTER}

# other

depend::
	$(DEPEND) -s "# DO NOT DELETE" -- $(ALLDEFINES) -I$(INCLUDEPATH) -- $(SRCS)

Bootstrap::
	${IMKMF} -d -I${PRIVCONFIGDIR} -C ${CONFIGGROUPNAME} ${IMKMF_DEFINES} ${TOP}

World::
	@echo "Making ${PROJECTNAME} project, Release ${PROJECTRELEASE}"
	${MAKE} Bootstrap
	${MAKE} clean
	${MAKE} depend
	${MAKE} all

###########################################################################
# common rules for all Makefiles - do not edit

emptyrule::

clean::
	$(RM_CMD) \#*

Makefile::
	-@if [ -f Makefile ]; then \
	echo "	$(RM) Makefile.bak; $(MV) Makefile Makefile.bak"; \
	$(RM) Makefile.bak; $(MV) Makefile Makefile.bak; \
	else exit 0; fi
	$(IMAKE_CMD) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT_DIR)

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

###########################################################################
# empty rules for directories that do not have SUBDIRS - do not edit

install::
	@echo "install in $(CURRENT_DIR) done"

install.man::
	@echo "install.man in $(CURRENT_DIR) done"

Makefiles::

depend::

###########################################################################
# dependencies generated by makedepend

