TAR = $(HOME)/dxf2yrt.tar

all: dxf2yrt

dxf2yrt: dxf2yrt.C
	CC -o dxf2yrt dxf2yrt.C -lm

DXF_FILES = torus.dxf f117.dxf glass.dxf vvquad.dxf snowman.dxf dome.dxf

ALL_FILES = Makefile dxf2yrt.C $(DXF_FILES)

TAR: $(ALL_FILES) 
	rm -f $(TAR).gz
	tar cf $(TAR) $(ALL_FILES)	
	gzip $(TAR)
	mv $(TAR).gz $(HOME)/tar/dxf2yrt.tz

	