chiark / gitweb /
rename things more sensibly; now it can optimise but the edgewise vertex formula...
[moebius2.git] / Makefile
1
2 TARGETS= minimise primer view lumpy.cfm sgtatham.cfm
3
4 CWARNS= -Wall -Wwrite-strings -Wpointer-arith -Werror -Wshadow
5 CXXWARNS= $(CWARNS) -Wno-shadow -Wno-error
6
7 OPTIMISE=       -O2
8 CFLAGS=         -MMD $(OPTIMISE) -g $(CWARNS)
9 CXXFLAGS=       -MMD $(OPTIMISE) -g $(CXXWARNS)
10
11 LIBGSL= -lgsl -lgslcblas
12
13 o= >$@.new && mv -f $@.new $@
14
15 all:            $(TARGETS)
16
17 minimise:       energy.o bgl.o common.o mgraph.o
18                 $(CXX) $(CXXFLAGS) -o $@ $^ $(LIBGSL)
19
20 primer:         primer.o common.o
21                 $(CC) $(CFLAGS) -o $@ $^ $(LIBGSL)
22
23 prime.data:     primer
24                 ./$^ $o
25
26 view:           view.o common.o mgraph.o
27                 $(CC) $(CFLAGS) -o $@ $^ $(LIBGSL) -L/usr/X11R6/lib -lX11
28
29 sgtatham.cfm:   sgtatham-regenerator prime.data sgtatham/z.typescript
30                 ./$^ -T -o$@
31
32 lumpy.cfm: oldmoebius-converter prime.data ../moebius/ins-new ../moebius/a.out
33                 ./$^ -o$@
34
35 clean:
36                 rm -f prime.data $(TARGETS)
37                 rm -f *.o *.new *.tmp *.rej *.orig core vgcore.* *~
38                 rm -f *.d
39
40 realclean:      clean
41                 rm -f best
42
43 -include *.d