chiark
/
gitweb
/
~ian
/
moebius2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
linear interpolation works; view presets
[moebius2.git]
/
Makefile
diff --git
a/Makefile
b/Makefile
index 8d3d188aa9093b58d779c92ad7d0245111c99182..dd4b218ed001f0eb33ec5f901a29e70c2679efef 100644
(file)
--- 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
SGTATHAM=sgtatham
CWARNS= -Wall -Wwrite-strings -Wpointer-arith -Werror -Wshadow
@@
-15,6
+19,8
@@
o= >$@.new && mv -f $@.new $@
all: $(TARGETS)
all: $(TARGETS)
+compute: best.CFM
+
minimise: energy.o graph.o common.o mgraph.o minimise.o half.o
$(CXX) $(CXXFLAGS) -o $@ $^ $(LIBGSL)
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$@
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
$(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.* *~
clean:
rm -f prime.data $(TARGETS)
rm -f *.o *.new *.tmp *.rej *.orig core vgcore.* *~
- rm -f *.d
+ rm -f *.d
*.cfm
realclean: clean
realclean: clean
- rm -f best
+ rm -f *.CFM
+
+%.d:
-include *.d
-include *.d