# this makefile is to be used with gmake

# Global variables
include $(XSISDK_ROOT)/mkfiles/vars.gnu
include $(CROSSWALKSDK_ROOT)/mkfiles/Crosswalk.gnu

INCLUDES += -I../include -I$(XERCESC_INC_PATH)
CXXOPTS += -Wno-deprecated

# Sources to be compiled
SOURCES := \
   FTKUtil.cpp \
   cmdstubs.cpp \
   cnv_COLLADA_IO.cpp \
   cnv_camera.cpp \
   cnv_camera_anim.cpp \
   cnv_custompset.cpp \
   cnv_custompset_anim.cpp \
   cnv_dotXSI_IO.cpp \
   cnv_envelope.cpp \
   cnv_environment.cpp \
   cnv_environment_anim.cpp \
   cnv_hierarchyelementinfo.cpp \
   cnv_hierarchytraversal.cpp \
   cnv_ik.cpp \
   cnv_image.cpp \
   cnv_image_anim.cpp \
   cnv_info.cpp \
   cnv_instance.cpp \
   cnv_light.cpp \
   cnv_light_anim.cpp \
   cnv_material.cpp \
   cnv_material_anim.cpp \
   cnv_mesh.cpp \
   cnv_mesh_cluster.cpp \
   cnv_mesh_clusterprop.cpp \
   cnv_mixer.cpp \
   cnv_model.cpp \
   cnv_modelinfo.cpp \
   cnv_modelinfo_anim.cpp \
   cnv_null.cpp \
   cnv_plottedanimation.cpp \
   cnv_shapeanimation.cpp \
   cnv_userdatablob.cpp \
   dotXSIConverter.cpp \
   dotXSIConverterCallback.cpp \
   plugin_stub.cpp \
   stdafx.cpp \
   $(END_OF_LIST)

include $(wildcard custom.gnu)
   
# Target
SOTARGETS  := $(OUTDIR)/dotXSIConverter$(BITEXT).so

# Global rules
include $(XSISDK_ROOT)/mkfiles/rules.gnu

# Specific dependencies
$(SOTARGETS): $(ALLOBJECTS) $(XSISDKLIBS) $(CROSSWALK_LIBS)
$(CXXOBJECTS): $(OBJDIR)/%.o: %.cpp
$(COBJECTS): $(OBJDIR)/%.o: %.c

# Compilation dependencies
DEPFILES := $(wildcard $(OBJDIR)/*.d)
ifneq "$(DEPFILES)" ""
   include $(DEPFILES)
endif
