################################################################
# Start User Configuration

#Assertions:
#You may define -DASSERT_ON to include or -DASSERT_OFF
#to exclude assertions. Assertiions perform some consistency checks
#at certain points and terminate the program if inconsistencies 
#are being found. While this library is still in its beta stage
#and if performance is not a concern we recommend to use -DASSERT_ON
ASSERT=-DASSERT_ON

#Verbosity:
#If you compile using -DVERB_ON, you have to provide some logging
#classes! We recommend to use -DVERB_OFF currently.
VERBOSITY=-DVERB_ON

#Other Debug switches:
#Define other debug switches here. Eg. -g
ODEBUG=-g

#Optimization:
#Please do not compile using optimization unless you know
#what you are doing! gcc up to V2.7.2.2 has many bugs in the
#c++ optimization part!

# End User Configuration
################################################################

DEBUG=$(ODEBUG) $(ASSERT) $(VERBOSITY)
export DEBUG

all: nvcontainer.a

tests: nvcontainer.a
	make -C tests all

nvcontainer.a: lib/nvcontainer.a
	cp lib/nvcontainer.a .

lib/nvcontainer.a:
	make -C lib all

clean:
	rm -f nvcontainer.a
	make -C lib clean
	make -C tests clean
