X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=moebius2.git;a=blobdiff_plain;f=Makefile;h=cd1aa6c71f134872503aff514939acfd650659ba;hp=cf0bbd08caf158a7b6a07ac262cf90c23e213f93;hb=83051837693783280938bf36e9e43c7687736753;hpb=4e53c82487592a5a490e3ac6daaae979e9812338 diff --git a/Makefile b/Makefile index cf0bbd0..cd1aa6c 100644 --- 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