APP = fig2pstricks TST = ex HDRS = dtypes OBJS = tscan.o color.o misc.o texfunc.o unit.o chkprev.o style.o arrow.o arc.o ellipse.o polyline.o spline.o text.o compound.o fig2pstricks.o node.o #CFLAGS = -DDEBUG LIB = -lm RUNOPT = -c ifndef file file = $(TST) endif ifdef dot USEDOT = --use-dot endif ifdef prosper PROSPER = --prosper endif all: $(APP) $(APP): $(OBJS) $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIB) text.o: text.c chars.h $(CC) $(CFLAGS) -c $< %.o: %.c $(CC) $(CFLAGS) -c $< test: $(APP) @./$(APP) $(RUNOPT) $(USEDOT) $(PROSPER) -o $(file).tex $(file).fig tex: $(file).tex view: $(file).dvi @xdvi -paper a4r -fullscreen -s 7 $(file) ps: $(file).ps pdf: $(file).pdf $(file).pdf: $(file).ps @ps2pdf $< $(file).ps: $(file).dvi @dvips -t landscape $< $(file).dvi: $(file).tex @latex $< $(file).tex: $(APP) $(file).fig @./$(APP) $(RUNOPT) -o $(file).tex $(file).fig @cat $@ clean: rm -f *.o $(APP) distclean: rm -f *.o $(APP) *.pdf *.ps *.tex *.log *.out *.aux *.dvi header: @sh ./mkheader.sh $(HDRS) install: @echo "* Copy $(APP) to any directory in path"