TUBE = ../rpen size=r
LVPLOT = ../../lvplot/libvplot.a
FC = f77

none:
	@echo "one of:"
	@echo "vppen vppen2 rastest ellipse libvplot_example polytest"
	@echo "[cf]texttest markertest ufilltest Font"

vppen:
	plas < TEST_erase > out.vp
	../vppen out.vp gridnum=4 frame=y | $(TUBE)
	rm out.vp

vppen2:
	cat TEST_aspect_ratio DEMO_Graph TEST_colors DEMO_Tectonics DEMO_Texas TEST_align TEST_clipping DEMO_Graph TEST_aspect_ratio | plas > out.vp
	../vppen out.vp gridnum=3 | $(TUBE)
	rm out.vp

Font:
	cc -o Font Font.c

rastest:
	cc -g rastest.c $(LVPLOT) -lm -o rastest
	rastest | $(TUBE)
	rm rastest

ctexttest:
	cc -g texttest.c $(LVPLOT) -lm -o texttest
	texttest | $(TUBE)
	rm texttest

ftexttest:
	$(FC) -g texttest.f $(LVPLOT) -lm -o texttest
	texttest
	$(TUBE) < out.vp
	rm texttest out.vp

polytest:
	cc -g polytest.c $(LVPLOT) -lm -o polytest
	polytest | $(TUBE)
	rm polytest

markertest:
	$(FC) -g markertest.f $(LVPLOT) -lm -o markertest
	markertest
	$(TUBE) < out.vp
	rm markertest out.vp

ufilltest:
	cc -g ufilltest.c $(LVPLOT) -lm -o ufilltest
	ufilltest | $(TUBE)
	rm ufilltest

ellipse:
	$(FC) -g ellips.f $(LVPLOT) -o ell
	ell
	$(TUBE) < f.vp frame=y
	rm ell f.vp

libvplot_example:
	cc -g libvplot_example.c $(LVPLOT) -lm -o libvplot_example
	libvplot_example < libvplot_example.dat | $(TUBE)
	rm libvplot_example
