# Voro++ makefile
#
# Author : Chris H. Rycroft (LBL / UC Berkeley)
# Email  : chr@alum.mit.edu
# Date   : August 30th 2011

# from config.mk:

# C++ compiler
export CXX=g++

# Flags for the C++ compiler
export CFLAGS += -fpic -Wall -ansi -pedantic -O3 $(CPPFLAGS)

# Relative include and library paths for compilation of the examples
export E_INC=-I/usr/include/voro++
export E_LIB=-L/usr/lib/

# Installation directory
export PREFIX=/usr

# Install command
export INSTALL=install

# Flags for install command for executable
export IFLAGS_EXEC=-m 0755

# Flags for install command for non-executable files
export IFLAGS=-m 0644

# Makefile rules
all: ex_basic ex_walls ex_custom ex_extra ex_degenerate ex_interface

ex_basic:
	$(MAKE) -C basic

ex_walls:
	$(MAKE) -C walls

ex_custom:
	$(MAKE) -C custom

ex_extra:
	$(MAKE) -C extra

ex_degenerate:
	$(MAKE) -C degenerate

ex_interface:
	$(MAKE) -C interface

clean:
	$(MAKE) -C basic clean
	$(MAKE) -C walls clean
	$(MAKE) -C custom clean
	$(MAKE) -C extra clean
	$(MAKE) -C degenerate clean
	$(MAKE) -C interface clean

.PHONY: all ex_basic ex_walls ex_custom ex_extra ex_degenerate clean
