Fixed typo in delete_connection routine.
[voro++.git] / trunk / src / Makefile
blobf205a54b79db39c18834e5f0a18c16bdd6c32e19
1 # Voro++ makefile
3 # Author : Chris H. Rycroft (LBL / UC Berkeley)
4 # Email : chr@alum.mit.edu
5 # Date : August 30th 2011
7 # Load the common configuration file
8 include ../config.mk
10 # List of the common source files
11 objs=cell.o common.o container.o unitcell.o v_compute.o c_loops.o \
12 v_base.o wall.o pre_container.o container_prd.o
13 src=$(patsubst %.o,%.cc,$(objs))
15 # Makefile rules
16 all: libvoro++.a voro++
18 depend:
19 $(CXX) -MM $(src) >Makefile.dep
21 include Makefile.dep
23 libvoro++.a: $(objs)
24 rm -f libvoro++.a
25 ar rs libvoro++.a $^
27 voro++: libvoro++.a cmd_line.cc
28 $(CXX) $(CFLAGS) -L. -o voro++ cmd_line.cc -lvoro++
30 %.o: %.cc
31 $(CXX) $(CFLAGS) -c $<
33 help: Doxyfile $(SOURCE)
34 doxygen Doxyfile
36 clean:
37 rm -f $(objs) voro++ libvoro++.a
39 .PHONY: all help execs depend