#include "../Imake.Config"

         BINDIR = $(TEX_BINDIR)
         MANDIR = $(TEX_MANDIR)

          FILES	= Imakefile iptex.man iptex.proto iptex.man $(SRCS) \
		  imPcodes.h imagen.h

       INCLUDES = -I$(LIBTEXROOT)

LOCAL_LIBRARIES = $(LIBTEX)
        DEPLIBS = $(DEPLIBTEX) 
        SYSLIBS = -lm

           SRCS	= imagen1.c imagen1-special.c
           OBJS	= imagen1.o imagen1-special.o

all: imagen1 iptex.script

iptex.script: iptex.proto Imakefile Makefile
	sed -e 's|=BIN|=$(BINDIR)|' -e 's|=IPRBIN|=$(IPRBIN)|' < iptex.proto > iptex.script

NormalProgramTarget(imagen1,$(OBJS),$(DEPLIBS),$(LOCAL_LIBRARIES),$(SYSLIBS))
InstallProgram(imagen1, $(BINDIR))
InstallScript(iptex,$(BINDIR))
InstallManPage(iptex,$(MANDIR))
DependTarget()
TagsTarget()

tar:
	cd ../..;\
	for file in $(FILES); \
	do \
	  tar rf $(TARFILE) $(PRODUCT)/Iptex/$$file; \
	done
