Strip extra spaces from code.
[voro++.git] / branches / 2d / src / Makefile
blob747fa7cfc3490b5355b1680ba96703fb8339e79f
1 # Voro++ makefile
3 # Author : Chris H. Rycroft (LBL / UC Berkeley)
4 # Email : chr@alum.mit.edu
5 # Date : February 27th 2008
7 # Load the common configuration file
8 include ../config.mk
10 # List of the common source files
11 objs=common.o cell_2d.o container_2d.o v_base_2d.o v_compute_2d.o \
12 c_loops_2d.o wall_2d.o cell_nc_2d.o ctr_boundary_2d.o
13 src=$(patsubst %.o,%.cc,$(objs))
15 # Makefile rules
16 all: libvoro++_2d.a
18 depend:
19 $(CXX) -MM $(src) >Makefile.dep
21 include Makefile.dep
23 worklist_2d.hh v_base_wl_2d.cc: worklist_gen.pl
24 perl worklist_gen.pl
26 libvoro++_2d.a: $(objs)
27 rm -f libvoro++_2d.a
28 ar rs libvoro++_2d.a $^
30 %.o: %.cc
31 $(CXX) $(CFLAGS) -c $<
33 help: Doxyfile $(SOURCE)
34 doxygen Doxyfile
35 cd ../latex && $(MAKE)
37 clean:
38 rm -f $(objs) libvoro++_2d.a
40 .PHONY: all help depend