include ../cprogs.make M4INCS= parts.i4 E_TRACK= ArsCLMNo LAYOUTOPTS_ALL= -ep=*Cm LAYOUTOPTS= -E=*$(E_TRACK) $(LAYOUTOPTS_ALL) LAYOUTOPTS_PHYS= -S1.0 $(LAYOUTOPTS) '-e*A' XLAYOUTOPTS_LAYER= -e'=5AN' -E'*~=5rsm' -e'p~=5r' -e'*~=9C' -e'*=*l' LAYOUTOPTS_SEGS= '-e*=*rm' '-e=5G' LAYERS_LS= 0 10 20 LAYERS_PS= $(addsuffix .ps, $(LAYERS_LS)) LAYERS_L= $(addprefix ours-l, $(LAYERS_PS)) LAYERS_E= $(addprefix ours-e, $(LAYERS_PS)) LAYERS= $(LAYERS_L) $(LAYERS_E) LPAGES= $(foreach x, 0 1 2 3 4 5 6, $(foreach y, 1 2 3 4 5, ours-p0-$xx$y.ps)) CPROGS= subseg2display default: $(CPROGS) all: default lpages layers layers: $(LAYERS) lpages: $(LPAGES) o=>$@.new && mv -f $@.new $@ subseg2display: subseg2display.o $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $+ $(LIBS) -lnetpbm -lpub -lm %.d4: %.m4 $(M4INCS) Makefile m4 -s <$< $o %-a.ps: %.d4 layout ./layout <$< $(LAYOUTOPTS) '-E*l' $o %-al.ps: %.d4 layout ./layout <$< $(LAYOUTOPTS) '-e*C' '-ep=rm' $o %-ap.ps: %.d4 layout ./layout -S1.0 <$< $(LAYOUTOPTS) '-e*A' '-ep=rm' $o ours-g%.ps: ours.d4 ours-g%.segcmap layout ./layout <$< -l$* $(LAYOUTOPTS_SEGS) -GLours-g$*.segcmap $o ours-g%.segcmap: ours-g%.segcmapreq segcmapassign ./segcmapassign <$< $o ours-g%.segcmapreq: ours.d4 layout ./layout <$< -l$* $(LAYOUTOPTS_SEGS) -GR $o ours-g%.ppm: ours-g%.ps gs -dNOPAUSE -dBATCH -dSAFER -q \ -sDEVICE=ppmraw -r72 -g595x842 \ -sOutputFile=$@.new $< && mv -f $@.new $@ ours-l%.ps: ours.d4 layout ./layout <$< -l$* $(LAYOUTOPTS) $(XLAYOUTOPTS_LAYER) $o ours-e%.ps: ours.d4 layout ./layout <$< -l$* -E'=*aRsclMno' \ -e'p=*rm' -e'=5RN' -E'*~=5rsm' -e'p~=5r' -e'*=*l' $o ours-p%.ps: ours.d4 layout ./layout <$< -l$$(printf %s "$*" | sed -e 's/-/ -P/') \ $(LAYOUTOPTS_PHYS) $(XLAYOUTOPTS_LAYER) $o parts.ps: showlib.d4 layout ./layout <$< $(LAYOUTOPTS_ALL) $o clean: -rm -f -- *.d4 *~ *.new -rm -f ours-*.ps parts.ps -rm -f *.oprint-*.ps -rm -f $(CPROGS) *.o .PRECIOUS: $(OPRINTS) .PRECIOUS: ours-g%.segcmap ours-g%.segcmapreq