# This Makefile is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.

CC = gcc

all: helloWorld

X3dSceneGraph.h: helloWorld.x3dv helloWorld2.x3dv ../../../bin/dune
	../../../bin/dune -prefix Pre_ -c helloWorld.x3dv > X3dSceneGraph.h
	../../../bin/dune -prefix Pre2_ -c helloWorld2.x3dv >> X3dSceneGraph.h
	
helloWorld: mainHelloWorld.c X3dSceneGraph.h
	$(CC) -g -o helloWorld mainHelloWorld.c 

../../../bin/dune:
	(cd ../../.. && make)

clean:
	rm -f X3dSceneGraph.h helloWorld core libCRWD/CExport.c libCRWD/render

allNodesTest: allNodesTestX3d.x3dv ../../../bin/dune
	../../../bin/dune -c allNodesTestX3d.x3dv > X3dSceneGraph.h
	$(CC) -g -o helloWorld mainHelloWorld.c 

