AUTOMAKE_OPTIONS = subdir-objects AM_CFLAGS = -DGLEW_NO_GLU -DGLEW_STATIC -isystem$(top_srcdir)/libobs -isystem./glew/include if OS_WIN if ARCH_X86 libobs_opengldir = ../build/bin/32bit else libobs_opengldir = ../build/bin/64bit endif else libobs_opengldir = $(libdir) endif libobs_opengl_LTLIBRARIES = libobs-opengl.la libobs_opengl_la_LDFLAGS = -no-undefined libobs_opengl_la_LIBADD = ../libobs/libobs.la if OS_WIN libobs_opengl_la_LDFLAGS += -mwindows -avoid-version libobs_opengl_la_LIBADD += -lopengl32 endif libobs_opengl_la_SOURCES = gl-helpers.c \ gl-indexbuffer.c \ gl-shader.c \ gl-shaderparser.c \ gl-stagesurf.c \ gl-subsystem.c \ gl-texture2d.c \ gl-texturecube.c \ gl-vertexbuffer.c \ gl-zstencil.c \ glew/src/glew.c if OS_OSX libobs_opengl_la_SOURCES += gl-cocoa.m libobs_opengl_la_LDFLAGS += -framework Cocoa -framework IOSurface endif if OS_WIN libobs_opengl_la_SOURCES += gl-windows.c endif if OS_NIX libobs_opengl_la_SOURCES += gl-x11.c endif