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