<commit_before># This is a subinclude file used to define the rules needed
# to build the NEW (Render3d) OpenGL 3D driver -- gl_render3d

# Driver description
DESCRIPTION.gl_render3d = Crystal Space Render3d OpenGL driver

#------------------------------------------------------------- rootdefines ---#
ifeq ($(MAKESECTION),rootdefines)

# Driver-specific help commands
DRIVERHELP += \
  $(NEWLINE)echo $"  make gl_render3d         Make the $(DESCRIPTION.gl3d)$"

endif # ifeq ($(MAKESECTION),rootdefines)

#------------------------------------------------------------- roottargets ---#
ifeq ($(MAKESECTION),roottargets)

.PHONY: gl_render3d
all plugins drivers drivers3d: gl_render3d

gl_render3d:
	$(MAKE_TARGET) MAKE_DLL=yes
gl_render3dclean:
	$(MAKE_CLEAN)

endif # ifeq ($(MAKESECTION),roottargets)

#------------------------------------------------------------- postdefines ---#
ifeq ($(MAKESECTION),postdefines)

ifneq (,$(strip $(LIBS.OPENGL.SYSTEM)))
  LIB.gl_render3d.LOCAL += $(LIBS.OPENGL.SYSTEM)
else
  ifdef X11_PATH
    CFLAGS.gl_render3d += -I$(X11_PATH)/include
    LIB.gl_render3d.LOCAL += -L$(X11_PATH)/lib -lXext -lX11
  endif

  ifeq ($(USE_MESA),1)
    ifdef MESA_PATH
      CFLAGS.gl_render3d += -I$(MESA_PATH)/include
      LIB.gl_render3d.LOCAL += -L$(MESA_PATH)/lib
    endif
    LIB.gl_render3d.LOCAL += -lMesaGL
  else
    ifdef OPENGL_PATH
      CFLAGS.gl_render3d += -I$(OPENGL_PATH)/include
      LIB.gl_render3d.LOCAL += -L$(OPENGL_PATH)/lib
    endif
    LIB.gl_render3d.LOCAL += -lGL
  endif
endif

ifeq ($(USE_PLUGINS),yes)
  gl_render3d = $(OUTDLL)/gl_render3d$(DLL)
  LIB.gl_render3d = $(foreach d,$(DEP.gl_render3d),$($d.LIB))
  LIB.gl_render3d.SPECIAL = $(LIB.gl_render3d.LOCAL)
  TO_INSTALL.DYNAMIC_LIBS += $(gl_render3d)
else
  gl_render3d = $(OUT)/$(LIB_PREFIX)gl_render3d$(LIB)
  DEP.EXE += $(gl_render3d)
  LIBS.EXE += $(LIB.gl_render3d.LOCAL)
  SCF.STATIC += gl_render3d
  TO_INSTALL.STATIC_LIBS += $(gl_render3d)
endif

INC.gl_render3d = $(wildcard plugins/video/render3d/opengl/*.h) \
  plugins/video/render3d/common/txtmgr.h
SRC.gl_render3d = $(wildcard plugins/video/render3d/opengl/*.cpp) \
  plugins/video/render3d/common/txtmgr.cpp
OBJ.gl_render3d = $(addprefix $(OUT)/,$(notdir $(SRC.gl_render3d:.cpp=$O)))
DEP.gl_render3d = CSGEOM CSUTIL CSSYS CSUTIL CSGFX
CFG.gl_render3d = data/config/render3d/render3d.cfg data/config/render3d/opengl.cfg

TO_INSTALL.CONFIG += $(CFG.gl_render3d)

MSVC.DSP += gl_render3d
DSP.gl_render3d.NAME = gl_render3d
DSP.gl_render3d.TYPE = plugin
DSP.gl_render3d.RESOURCES = $(wildcard plugins/video/render3d/opengl/ext/*.inc)
DSP.gl_render3d.LIBS = opengl32 glu32

endif # ifeq ($(MAKESECTION),postdefines)

#----------------------------------------------------------------- targets ---#
ifeq ($(MAKESECTION),targets)

.PHONY: gl_render3d gl_render3dclean

# Chain rules
clean: gl_render3dclean

gl_render3d: $(OUTDIRS) $(gl_render3d)

$(OUT)/%$O: plugins/video/render3d/opengl/%.cpp
	$(DO.COMPILE.CPP) $(CFLAGS.PIXEL_LAYOUT) $(CFLAGS.gl_render3d)

$(gl_render3d): $(OBJ.gl_render3d) $(LIB.gl_render3d)
	$(DO.PLUGIN.PREAMBLE) \
	$(DO.PLUGIN.CORE) $(LIB.gl_render3d.SPECIAL) \
	$(DO.PLUGIN.POSTAMBLE)

gl_render3dclean:
	$(RM) $(gl_render3d) $(OBJ.gl_render3d)

ifdef DO_DEPEND
dep: $(OUTOS)/gl_render3d.dep
$(OUTOS)/gl_render3d.dep: $(SRC.gl_render3d)
	$(DO.DEP1) \
	-DGL_VERSION_1_1 $(CFLAGS.PIXEL_LAYOUT) $(CFLAGS.gl_render3d) \
	$(DO.DEP2)
else
-include $(OUTOS)/gl_render3d.dep
endif

endif # ifeq ($(MAKESECTION),targets)<commit_msg>* Fixed problems created by dentoids commit-problems<commit_after># This is a subinclude file used to define the rules needed
# to build the NEW (Render3d) OpenGL 3D driver -- glrender3d

# Driver description
DESCRIPTION.glrender3d = Crystal Space Render3d OpenGL driver

#------------------------------------------------------------- rootdefines ---#
ifeq ($(MAKESECTION),rootdefines)

# Driver-specific help commands
DRIVERHELP += \
  $(NEWLINE)echo $"  make glrender3d   Make the $(DESCRIPTION.glrender3d)$"

endif # ifeq ($(MAKESECTION),rootdefines)

#------------------------------------------------------------- roottargets ---#
ifeq ($(MAKESECTION),roottargets)

.PHONY: glrender3d
all plugins drivers drivers3d: glrender3d

glrender3d:
	$(MAKE_TARGET) MAKE_DLL=yes
glrender3dclean:
	$(MAKE_CLEAN)

endif # ifeq ($(MAKESECTION),roottargets)

#------------------------------------------------------------- postdefines ---#
ifeq ($(MAKESECTION),postdefines)

ifneq (,$(strip $(LIBS.OPENGL.SYSTEM)))
  LIB.GLRENDER3D.LOCAL += $(LIBS.OPENGL.SYSTEM)
else
  ifdef X11_PATH
    CFLAGS.GLRENDER3D += -I$(X11_PATH)/include
    LIB.GLRENDER3D.LOCAL += -L$(X11_PATH)/lib -lXext -lX11
  endif

  ifeq ($(USE_MESA),1)
    ifdef MESA_PATH
      CFLAGS.GLRENDER3D += -I$(MESA_PATH)/include
      LIB.GLRENDER3D.LOCAL += -L$(MESA_PATH)/lib
    endif
    LIB.GLRENDER3D.LOCAL += -lMesaGL
  else
    ifdef OPENGL_PATH
      CFLAGS.GLRENDER3D += -I$(OPENGL_PATH)/include
      LIB.GLRENDER3D.LOCAL += -L$(OPENGL_PATH)/lib
    endif
    LIB.GLRENDER3D.LOCAL += -lGL
  endif
endif

ifeq ($(USE_PLUGINS),yes)
  GLRENDER3D = $(OUTDLL)/glrender3d$(DLL)
  LIB.GLRENDER3D = $(foreach d,$(DEP.GLRENDER3D),$($d.LIB))
  LIB.GLRENDER3D.SPECIAL = $(LIB.GLRENDER3D.LOCAL)
  TO_INSTALL.DYNAMIC_LIBS += $(GLRENDER3D)
else
  GLRENDER3D = $(OUT)/$(LIB_PREFIX)glrender3d$(LIB)
  DEP.EXE += $(GLRENDER3D)
  LIBS.EXE += $(LIB.GLRENDER3D.LOCAL)
  SCF.STATIC += glrender3d
  TO_INSTALL.STATIC_LIBS += $(GLRENDER3D)
endif

INC.GLRENDER3D = $(wildcard plugins/video/render3d/opengl/*.h) \
  plugins/video/render3d/common/txtmgr.h
SRC.GLRENDER3D = $(wildcard plugins/video/render3d/opengl/*.cpp) \
  plugins/video/render3d/common/txtmgr.cpp
OBJ.GLRENDER3D = $(addprefix $(OUT)/,$(notdir $(SRC.GLRENDER3D:.cpp=$O)))
DEP.GLRENDER3D = CSGEOM CSUTIL CSSYS CSUTIL CSGFX
CFG.GLRENDER3D = data/config/render3d/render3d.cfg data/config/render3d/opengl.cfg

TO_INSTALL.CONFIG += $(CFG.GLRENDER3D)

MSVC.DSP += GLRENDER3D
DSP.GLRENDER3D.NAME = glrender3d
DSP.GLRENDER3D.TYPE = plugin
DSP.GLRENDER3D.RESOURCES = $(wildcard plugins/video/render3d/opengl/ext/*.inc)
DSP.GLRENDER3D.LIBS = opengl32 glu32

endif # ifeq ($(MAKESECTION),postdefines)

#----------------------------------------------------------------- targets ---#
ifeq ($(MAKESECTION),targets)

.PHONY: glrender3d glrender3dclean

# Chain rules
clean: glrender3dclean

glrender3d: $(OUTDIRS) $(GLRENDER3D)

$(OUT)/%$O: plugins/video/render3d/opengl/%.cpp
	$(DO.COMPILE.CPP) $(CFLAGS.PIXEL_LAYOUT) $(CFLAGS.GLRENDER3D)

$(GLRENDER3D): $(OBJ.GLRENDER3D) $(LIB.GLRENDER3D)
	$(DO.PLUGIN.PREAMBLE) \
	$(DO.PLUGIN.CORE) $(LIB.GLRENDER3D.SPECIAL) \
	$(DO.PLUGIN.POSTAMBLE)

glrender3dclean:
	$(RM) $(GLRENDER3D) $(OBJ.GLRENDER3D)

ifdef DO_DEPEND
dep: $(OUTOS)/glrender3d.dep
$(OUTOS)/glrender3d.dep: $(SRC.GLRENDER3D)
	$(DO.DEP1) \
	-DGL_VERSION_1_1 $(CFLAGS.PIXEL_LAYOUT) $(CFLAGS.GLRENDER3D) \
	$(DO.DEP2)
else
-include $(OUTOS)/glrender3d.dep
endif

endif # ifeq ($(MAKESECTION),targets)
{'fraction_non_alphanumeric': 0.21382751247327156, 'fraction_numerical': 0.02594440484675695, 'mean_word_length': 3.299019607843137, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2757781', 'n_tokens_mistral': 2948, 'n_tokens_neox': 2814, 'n_words': 429}