# VRML/Makefile
############################################################################

# use same configuration parameters as in parent directory
include ../../Config.common
include ../../Config.site

POOLSDIR = ../../POOLS
INCLUDIR = ../../include

############################################################################
# No need to change anything below here
############################################################################
# the source files in this directory
CXXSOURCES = \
	SFImage.C \
	SFNode.C \
	MFNode.C \
	Proto.C \
	ExternProto.C \
	nodeCatalog.C \
	nodeInterface.C \
	route.C \
	link.C \
	eventIn.C \
	eventOut.C \
	field.C \
	exposedField.C \
	fieldValue.C \
	world.C \
	EventManager.C \
	StackManager.C \
	renderer.C \
	phbrenderer.C \
	file.C \
	error.C \
	vrml.C
SOURCES = $(CXXSOURCES) $(CSOURCES)
OBJECTS = ${CXXSOURCES:.C=.o} ${CSOURCES:.c=.o}

# compiler and linker parameters

THISDIRFLAGS = -I$(INCLUDIR) -I$(POOLSDIR) $(MKLIBFLAGS)

# generate source file dependencies
link_includes: version.H
	-ln -sf `pwd`/*.[hH] $(INCLUDIR)

dependhere: version.H
	$(MAKEDEPEND) $(MKDEPFLAGS) $(SOURCES) > deps

depend: dependhere

all: here

here: $(OBJECTS)

# make a clean source tree again
cleanhere: cleangen
	-$(RM) version.H

clean: cleanhere

distclean: cleanhere

version.H:
	@echo "#define MAJOR_VERSION" ${MAJOR_VERSION}  > version.H
	@echo "#define MINOR_VERSION" ${MINOR_VERSION}  >> version.H
	@echo "#define RELEASE" '"'${RELEASE}'"'  >> version.H

###############################################################################
# dependencies --- automatically generated with make depend !!
###############################################################################
-include deps
