chiark / gitweb /
compiles
[moebius2.git] / Makefile
index 9e3aa83e3b8a14a5bb23fce18620b9f00a3cfebb..d0e7f2e70cf70e28642d7f640cc7a1d1cc591da1 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,16 @@
 
 TARGETS=minimise
 
-CFLAGS=        -Wall -Wwrite-strings -Wpointer-arith -Werror
+CWARNS=        -Wall -Wwrite-strings -Wpointer-arith -Werror
+
+OPTIMISE=      -O2
+CFLAGS=                $(CWARNS) $(OPTIMISE) -g
+CXXFLAGS=      $(CWARNS) $(OPTIMISE) -g
 
 all:           $(TARGETS)
 
 minimise:      energy.o bgl.o common.o mgraph.o
+               $(CXX) $(CXXFLAGS) -o $@ $^ -lgsl -lgslcblas
 
 clean:
                rm -f *.o $(TARGETS) *.new