6 LAYOUTOPTS_ALL= -ep=*Cm
7 LAYOUTOPTS= -E=*$(E_TRACK) $(LAYOUTOPTS_ALL)
8 LAYOUTOPTS_PHYS= -S1.0 $(LAYOUTOPTS) '-e*A'
9 XLAYOUTOPTS_LAYER= -e'=5AN' -E'*~=5rsm' -e'p~=5r' -e'*~=9C' -e'*=*l'
11 LAYOUTOPTS_SEGS= '-e*=*rm' '-e=5G'
14 LAYERS_PS= $(addsuffix .ps, $(LAYERS_LS))
15 LAYERS_L= $(addprefix ours-l, $(LAYERS_PS))
16 LAYERS_E= $(addprefix ours-e, $(LAYERS_PS))
17 LAYERS= $(LAYERS_L) $(LAYERS_E)
19 LPAGES= $(foreach x, 0 1 2 3 4 5 6, $(foreach y, 1 2 3 4 5, ours-p0-$xx$y.ps))
21 CPROGS= subseg2display
24 all: default lpages layers
29 o=>$@.new && mv -f $@.new $@
31 subseg2display: subseg2display.o
32 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $+ $(LIBS) -lnetpbm -lpub
34 %.d4: %.m4 $(M4INCS) Makefile
38 ./layout <$< $(LAYOUTOPTS) '-E*l' $o
41 ./layout <$< $(LAYOUTOPTS) '-e*C' '-ep=rm' $o
44 ./layout -S1.0 <$< $(LAYOUTOPTS) '-e*A' '-ep=rm' $o
46 ours-g%.ps: ours.d4 ours-g%.segcmap layout
47 ./layout <$< -l$* $(LAYOUTOPTS_SEGS) -GLours-g$*.segcmap $o
49 ours-g%.segcmap: ours-g%.segcmapreq segcmapassign
50 ./segcmapassign <$< $o
52 ours-g%.segcmapreq: ours.d4 layout
53 ./layout <$< -l$* $(LAYOUTOPTS_SEGS) -GR $o
55 ours-g%.ppm: ours-g%.ps
56 gs -dNOPAUSE -dBATCH -dSAFER -q \
57 -sDEVICE=ppmraw -r72 -g595x842 \
58 -sOutputFile=$@.new $< && mv -f $@.new $@
60 ours-l%.ps: ours.d4 layout
61 ./layout <$< -l$* $(LAYOUTOPTS) $(XLAYOUTOPTS_LAYER) $o
63 ours-e%.ps: ours.d4 layout
64 ./layout <$< -l$* -E'=*aRsclMno' \
65 -e'p=*rm' -e'=5RN' -E'*~=5rsm' -e'p~=5r' -e'*=*l' $o
67 ours-p%.ps: ours.d4 layout
68 ./layout <$< -l$$(printf %s "$*" | sed -e 's/-/ -P/') \
69 $(LAYOUTOPTS_PHYS) $(XLAYOUTOPTS_LAYER) $o
71 parts.ps: showlib.d4 layout
72 ./layout <$< $(LAYOUTOPTS_ALL) $o
75 -rm -f -- *.d4 *~ *.new
76 -rm -f ours-*.ps parts.ps
81 .PRECIOUS: ours-g%.segcmap ours-g%.segcmapreq