#	Fig2dev : General Fig code translation program
#
# to include drivers for the following languages, 
# add the corresponding symbol to the DEFINES list:
#
# -DEPIC -DIBMGL -DLATEX -DPIC -DPICTEX -DPS -DPSTEX -DTEXTYL -DTPIC
#
DEFINES = -DEPIC -DIBMGL -DLATEX -DPIC -DPICTEX -DPS -DPSTEX -DTEXTYL -DTPIC

#if (defined(VaxArchitecture) && !defined(UltrixArchitecture)) || \
    (defined(RtArchitecture) && !defined(AIXArchitecture))
STRSTRC=	strstr.c
STRSTRO=	strstr.o
#endif

#define IHaveSubdirs
#define PassCDebugFlags 'CDEBUGFLAGS=$(CDEBUGFLAGS)'

SUBDIRS = dev

INCLUDES = -I..

SRCS = fig2dev.c getopt.c psfonts.c iso2tex.c \
	arrow.c bound.c free.c read.c read1_3.c latex_line.c $(STRSTRC)
OBJS = fig2dev.o getopt.o psfonts.o iso2tex.o \
	arrow.o bound.o free.o read.o read1_3.o latex_line.o $(STRSTRO) \
	dev/libtransfig.a

EXTRA_LIBRARIES = -lm

MakeSubdirs($(SUBDIRS))
DependSubdirs($(SUBDIRS))

ComplexProgramTarget(fig2dev)

InstallScript(fig2ps2tex,$(BINDIR))
InstallScript(pic2tpic,$(BINDIR))

InstallManPage(fig2ps2tex,$(MANDIR))
InstallManPage(pic2tpic,$(MANDIR))

fig2dev.man: ../doc/fig2dev.1
	ln -s ../doc/fig2dev.1 fig2dev.man

fig2ps2tex.man: ../doc/fig2ps2tex.1
	ln -s ../doc/fig2ps2tex.1 fig2ps2tex.man

pic2tpic.man: ../doc/pic2tpic.1
	ln -s ../doc/pic2tpic.1 pic2tpic.man
