chiark / gitweb /
make ring.cfm
[moebius2.git] / Makefile
1
2 TARGETS= minimise primer view lumpy.cfm sgtatham.cfm ring.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 ring.cfm: oldmoebius-converter prime.data /dev/null ../moebius/a.out
36                 ./$^ -o$@
37
38 clean:
39                 rm -f prime.data $(TARGETS)
40                 rm -f *.o *.new *.tmp *.rej *.orig core vgcore.* *~
41                 rm -f *.d
42
43 realclean:      clean
44                 rm -f best
45
46 -include *.d