chiark / gitweb /
actual makefile stuff for subseg2display
authorian <ian>
Fri, 22 Oct 2004 19:04:29 +0000 (19:04 +0000)
committerian <ian>
Fri, 22 Oct 2004 19:04:29 +0000 (19:04 +0000)
layout/.cvsignore
layout/Makefile

index fc66568d71f16d37fd4daa247d5d26b3e18ee5bf..ca50c33d96be9020ae3a1133b98d5598f7d4bbcf 100644 (file)
@@ -4,3 +4,4 @@ ours-g[0-9]*.ppm
 *.new
 *.segcmapreq
 *.segcmap
+subseg2display
index 9c6306a6ca3f7daeb7c60ac7385b5c33c32a90e3..d354748b487d6baca0cd068f598f72ef909a318c 100644 (file)
@@ -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