chiark / gitweb /
working on rotation - this is not the decomposition I wanted
[moebius2.git] / Makefile
1
2 TARGETS= minimise primer initial project
3
4 CWARNS= -Wall -Wwrite-strings -Wpointer-arith -Werror
5
6 OPTIMISE=       -O2
7 CFLAGS=         $(CWARNS) -MMD $(OPTIMISE) -g
8 CXXFLAGS=       $(CWARNS) -MMD $(OPTIMISE) -g
9
10 LIBGSL= -lgsl -lgslcblas
11
12 all:            $(TARGETS)
13
14 minimise:       energy.o bgl.o common.o mgraph.o
15                 $(CXX) $(CXXFLAGS) -o $@ $^ $(LIBGSL)
16
17 primer:         primer.o common.o
18                 $(CC) $(CFLAGS) -o $@ $^ $(LIBGSL)
19
20 project:        project.o common.o mgraph.o
21                 $(CC) $(CFLAGS) -o $@ $^ $(LIBGSL) -L/usr/X11R6/lib -lX11
22
23 initial:        generator primer sgtatham/z.typescript
24                 ./$^ -o$@
25
26 clean:
27                 rm -f *.o $(TARGETS) *.new *.tmp
28                 rm -f best initial
29                 rm -f *.d
30
31 -include *.d