chiark / gitweb /
can glue to old moebius too
[moebius2.git] / Makefile
1
2 TARGETS= minimise primer initial view
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 all:            $(TARGETS)
14
15 minimise:       energy.o bgl.o common.o mgraph.o
16                 $(CXX) $(CXXFLAGS) -o $@ $^ $(LIBGSL)
17
18 primer:         primer.o common.o
19                 $(CC) $(CFLAGS) -o $@ $^ $(LIBGSL)
20
21 view:           view.o common.o mgraph.o
22                 $(CC) $(CFLAGS) -o $@ $^ $(LIBGSL) -L/usr/X11R6/lib -lX11
23
24 initial:        generator primer sgtatham/z.typescript
25                 ./$^ -T -o$@
26
27 clean:
28                 rm -f *.o $(TARGETS) *.new *.tmp *.rej *.orig core vgcore.*
29                 rm -f initial
30                 rm -f *.d
31
32 realclean:      clean
33                 rm -f best
34
35 -include *.d