X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=blobdiff_plain;f=Makefile;h=dd4b218ed001f0eb33ec5f901a29e70c2679efef;hb=c01a4fe080a448234b39afb7ea7f7a3c9c229fb7;hp=8d3d188aa9093b58d779c92ad7d0245111c99182;hpb=5ca4202677b7ae656cad03f8a5c58fc22081db8b;p=moebius2.git diff --git a/Makefile b/Makefile index 8d3d188..dd4b218 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,9 @@ -TARGETS= minimise primer view+33 view+44 lumpy.cfm sgtatham.cfm ring.cfm + +VIEWDIMS=33 64 125 +TARGETS= minimise primer lumpy.cfm sgtatham.cfm ring.cfm \ + interpolate-64 \ + $(addprefix view-, $(VIEWDIMS)) SGTATHAM=sgtatham CWARNS= -Wall -Wwrite-strings -Wpointer-arith -Werror -Wshadow @@ -15,6 +19,8 @@ o= >$@.new && mv -f $@.new $@ all: $(TARGETS) +compute: best.CFM + minimise: energy.o graph.o common.o mgraph.o minimise.o half.o $(CXX) $(CXXFLAGS) -o $@ $^ $(LIBGSL) @@ -34,27 +40,36 @@ lumpy.cfm: oldmoebius-converter prime.data ../moebius/ins-new ../moebius/a.out ring.cfm: oldmoebius-converter prime.data /dev/null ../moebius/a.out ./$^ -o$@ +best.CFM: minimise sgtatham.cfm + ./$^ -iwip.cfm -o$@ -# this ridiculous repetition is due to make being too lame - -view+%: view+%.o mgraph+%.o common.o +view-%: view+%.o mgraph+%.o common.o $(CC) $(CFLAGS) -o $@ $^ $(LIBGSL) -L/usr/X11R6/lib -lX11 -view+%.o: view.c - $(CC) -c $(CPPFLAGS) $(CFLAGS) -DDEFBITS=$* $< -o $@ +interpolate-%: interpolate+%.o mgraph+%.o common.o + $(CC) $(CFLAGS) -o $@ $^ $(LIBGSL) -mgraph+%.o: mgraph.c - $(CC) -c $(CPPFLAGS) $(CFLAGS) -DDEFBITS=$* $< -o $@ +# this ridiculous repetition is due to make being too lame + +view+%.o: view.c + $(CC) -c $(CPPFLAGS) $(CFLAGS) -DDEFSZ=$* $< -o $@ -.PRECIOUS: view+%.o mgraph+%.o +mgraph+%.o: mgraph.c + $(CC) -c $(CPPFLAGS) $(CFLAGS) -DDEFSZ=$* $< -o $@ +interpolate+%.o: interpolate.c + $(CC) -c $(CPPFLAGS) $(CFLAGS) -DDEFSZ=$* $< -o $@ + +.PRECIOUS: view+%.o mgraph+%.o interpolate+%.o clean: rm -f prime.data $(TARGETS) rm -f *.o *.new *.tmp *.rej *.orig core vgcore.* *~ - rm -f *.d + rm -f *.d *.cfm realclean: clean - rm -f best + rm -f *.CFM + +%.d: -include *.d