# Makefile for filters
#
LIB    = e:\borlandc\lib
INC    = e:\borlandc\include
CFLAGS =   -I$(INC) -mt -r -O 
LFLAGS = /m/s/d
CC     = bcc
LINK   = tlink
ASM    = tasm
AFLAGS = /Mx

# Make rules

.c.obj:
	$(CC)  $(CFLAGS) -c {$< }


.asm.obj:
	$(ASM) $(AFLAGS) $<

all: filtnone.bin txt2ps.bin tagchg.bin lf2crlf.bin prt2mail.bin

filtnone.bin : filtnone.obj callback.obj xlate.obj
	$(LINK) $(LFLAGS) xlate+callback+filtnone,filtnone, filtnone, $(LIB)\cs
	exe2bin filtnone.exe filtnone.bin
	del filtnone.exe

prt2mail.bin : prt2mail.obj callback.obj xlate.obj
	$(LINK) $(LFLAGS) xlate+callback+prt2mail,prt2mail, prt2mail, $(LIB)\cs
	exe2bin prt2mail.exe prt2mail.bin
	del prt2mail.exe


tagchg.bin : tagchg.obj callback.obj xlate.obj
	$(LINK) $(LFLAGS) xlate+callback+tagchg,tagchg, tagchg, $(LIB)\cs
	exe2bin tagchg.exe tagchg.bin
	del tagchg.exe

lf2crlf.bin : lf2crlf.obj callback.obj xlate.obj
	$(LINK) $(LFLAGS) xlate+callback+lf2crlf,lf2crlf, lf2crlf, $(LIB)\cs
	exe2bin lf2crlf.exe lf2crlf.bin
	del lf2crlf.exe


txt2ps.bin : txt2ps.obj callback.obj xlate.obj
	$(LINK) $(LFLAGS) xlate+callback+txt2ps,txt2ps, txt2ps, $(LIB)\cs
	exe2bin txt2ps.exe txt2ps.bin
	del txt2ps.exe
