include $(MAYA_LOCATION)/devkit/plug-ins/buildconfig #overwrite the INCLUDES from buildconfig. -I. messes up the standard C++ includes due to file name issues INCLUDES = -I$(MAYA_LOCATION)/include -I/usr/X11R6/include -I../../libs/glew/include -I/usr/share/doc/NVIDIA_GLX-1.0/include/ VERS=1.0 DEBUG_FLAGS= default: linux/bin/maya2q3.$(EXT) #These files need -fno-for-scope NVMeshMender.o: NVMeshMender.cpp $(C++) -c $(INCLUDES) $(C++FLAGS) $(DEBUG_FLAGS) -fno-for-scope $< NvTriStrip.o: NvTriStrip.cpp $(C++) -c $(INCLUDES) $(C++FLAGS) $(DEBUG_FLAGS) -fno-for-scope $< .cpp.o: $(C++) -c $(INCLUDES) $(C++FLAGS) $(DEBUG_FLAGS) $< OBJS = math.o maya2q3_cmd.o maya_entry.o md3.o q3shader.o q3shader_imageloader.o q3shader_parse.o q3shader_render.o shader_node.o util.o x42_maya.o x42_modeldata.o x42_modeldata_gather.o NVMeshMender.o NvTriStrip.o NvTriStripObjects.o clean: -rm -f $(OBJS) linux/bin/maya2q3.$(EXT): $(OBJS) mkdir -p linux/bin -rm -f $@ $(LD) -o $@ $(OBJS) $(LIBS) $(DEBUG_FLAGS) -lOpenMayaAnim -lOpenMayaUI ../physfs/.libs/libphysfs.a ../glew/lib/libGLEW.a