chiark / gitweb /
new edge enumeration arrangements; bugfixes
[moebius2.git] / Makefile
index cf0bbd08caf158a7b6a07ac262cf90c23e213f93..cd1aa6c71f134872503aff514939acfd650659ba 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -4,8 +4,8 @@ TARGETS= minimise primer initial project
 CWARNS=        -Wall -Wwrite-strings -Wpointer-arith -Werror
 
 OPTIMISE=      -O2
-CFLAGS=                $(CWARNS) $(OPTIMISE) -g
-CXXFLAGS=      $(CWARNS) $(OPTIMISE) -g
+CFLAGS=                $(CWARNS) -MMD $(OPTIMISE) -g
+CXXFLAGS=      $(CWARNS) -MMD $(OPTIMISE) -g
 
 LIBGSL= -lgsl -lgslcblas
 
@@ -26,5 +26,6 @@ initial:      generator primer sgtatham/z.typescript
 clean:
                rm -f *.o $(TARGETS) *.new *.tmp
                rm -f best initial
+               rm -f *.d
 
-%.o::          common.h mgraph.h bgl.h
+-include *.d