# VRML/PROGS/vrmlint/Makefile
############################################################################

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

POOLSDIR = ../../POOLS
INCLUDIR = ../../include
LIBDIR = ../../lib
BINDIR = ../../bin

############################################################################
# No need to change anything below here
############################################################################
# the source files in this directory
CXXSOURCES = main.C
SOURCES = $(CXXSOURCES) $(CSOURCES)
OBJECTS = ${CXXSOURCES:.C=.o} ${CSOURCES:.c=.o}

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

#default target: compile
all: vrmlint

# generate source file dependencies
depend:
	$(MAKEDEPEND) $(MKDEPFLAGS) $(SOURCES) > deps

vrmlint: $(OBJECTS)
	$(CXX) $(LDFLAGS) -o vrmlint $(OBJECTS) \
		-L$(LIBDIR) -lxrml \
		-L$(POOLSDIR) -lpools \
		-lm
	-ln -sf `pwd`/vrmlint $(BINDIR)

cleanhere: cleangen
	-${RM} vrmlint

clean: cleanhere

distclean: cleanhere

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