From: ian Date: Fri, 22 Oct 2004 19:04:29 +0000 (+0000) Subject: actual makefile stuff for subseg2display X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ijackson/git?a=commitdiff_plain;h=bdb6588fa5b727cbc9c01ab6a27cac416adce630;p=trains.git actual makefile stuff for subseg2display --- diff --git a/layout/.cvsignore b/layout/.cvsignore index fc66568..ca50c33 100644 --- a/layout/.cvsignore +++ b/layout/.cvsignore @@ -4,3 +4,4 @@ ours-g[0-9]*.ppm *.new *.segcmapreq *.segcmap +subseg2display diff --git a/layout/Makefile b/layout/Makefile index 9c6306a..d354748 100644 --- a/layout/Makefile +++ b/layout/Makefile @@ -1,3 +1,4 @@ +include ../cprogs.make M4INCS= parts.i4 @@ -17,14 +18,19 @@ 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)) -default: layers -all: default lpages +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 + %.d4: %.m4 $(M4INCS) Makefile m4 -s <$< $o @@ -69,6 +75,7 @@ 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