# This file is part of the Visual Effects Engine
#
# Copyright Tommi Ilmonen 2001
#


include ../Makeconf

WITH_RENDERMAN  := NO


ifneq ($(RMANPATH),)
INCLUDES += -I$(RMANPATH)/include
WITH_RENDERMAN  := YES
LDFLAGS += -L$(RMANPATH)/lib
endif


ifeq ($(WITH_RENDERMAN),YES)
  LIBVEERMAN := $(LIB)/libveerman.a -lribout
  CXXFLAGS += -DVEE_WITH_RENDERMAN=1
endif

CUSTOMFLAGS   := $(DEBUGFLAGS)
# CUSTOMFLAGS   := $(RELEASEFLAGS)


LIBRARY       = veetest

PROGRAM       = vee

HDRS	      = vee_test_qt.h

SRCS	      = vee_test_qt.C

OBJS	      = vee_test_qt.o


MAINSRC = main.C

MAINOBJ = main.o

DLIBS	      = -lveeqt \
		-lveeopengl \
		$(OPCODE) \
		$(GEEGL) \
		$(GEEBASE) \
		$(VEEEXT) \
		-lveeeffects \
		-lveebase \
		$(CONFIGREADER)

#		$(LIBVEERMAN) \

SLIBS	      =	$(LIB)/libveeqt.a \
		$(LIB)/libveeopengl.a \
		$(LIB)/libveeeffects.a \
		$(LIB)/libveeextensions.a \
		$(LIB)/libveeopcode.a \
		$(LIB)/libConfigReader.a \
		$(LIB)/libgeebase.a \
		$(LIB)/libgeeopengl.a \
		$(LIB)/libveebase.a


LIBS          = $(MJWIDGETS) \
		$(MJDSP) \
		$(MJCORE) \
		$(DIVABASE) \
		-lSolarLoaders \
		-lSolarGL -lSolar \
		$(QT) \
		$(MAGIC) \
		$(CGGL) \
		-lGL -lGLU \
		-ljpeg $(MATH)


all: dlib dbin texturedir shader

texturedir:
	ln -sf ../../../crystal/vrjuggler/texturedir .


ifneq ($(RMANPATH),)

LIBS := -lribout $(LIBS)

shader: vee_particle.slc vee_polygon.slc

else

shader: 

endif

%.slc : %.sl
		$(SLC) $<
		$(NORMALPERMISSIONS) $@ $<

include ../Makelibs

