#
#	Makefile for CDFF environment sample
#
#
MAKEFILE = Makefile
#
#	printout
#
PRINTER	= sjlbp
FILTER  = -c
PRINT	= lpr -P$(PRINTER) $(FILTER)
#
#	preview
#
#PREVIEW= xif
#
#	output selection (PRINT or PREVIEW)
#
OUTPUT	= $(PRINT)

#
#	CDIF source file
#
CIS	= bezier.cis ellifan.cis sony.cis
#
#	CDFF file
#
CDF	= gaiji.cdf linedash.cdf operation.cdf tile.cdf
#
#	liboutif.a sample program
#
PROGRAM	= boo ruler
LIBS	= -loutif


all:
	make -f $(MAKEFILE) clean
	make -f $(MAKEFILE) $(PROGRAM)

clean:
	/bin/rm -f $(PROGRAM)

$(PROGRAM):
	$(CC) $@.c $(LIBS) -o $@
	$@ | $(OUTPUT)

$(CDF):
	ctoif -i $@ | $(OUTPUT)

$(CIS):
	asif -i $@  | $(OUTPUT)

