mirror of
https://github.com/Perlmint/glew-cmake.git
synced 2024-11-26 16:41:57 +00:00
*** empty log message ***
git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@263 783a27ee-832a-0410-bc00-9f386506c6dd
This commit is contained in:
parent
ef12b6f7a2
commit
bcdc9df17f
17
Makefile
17
Makefile
@ -49,6 +49,9 @@ NAME = glew32
|
||||
CC = gcc -mno-cygwin
|
||||
LD = ld
|
||||
CFLAGS.EXTRA = -DGLEW_STATIC
|
||||
ifneq (undefined, $(origin GLEW_MX))
|
||||
CFLAGS.EXTRA += -DGLEW_MX
|
||||
endif
|
||||
LDFLAGS.SO = -shared -soname $(LIB.SONAME)
|
||||
LDFLAGS.GL = -lglu32 -lopengl32 -lgdi32 -luser32 -lkernel32
|
||||
LDFLAGS.EXTRA =
|
||||
@ -69,7 +72,9 @@ NAME = glew32
|
||||
CC = gcc
|
||||
# use gcc for linking, with ld it does not work
|
||||
LD = gcc
|
||||
CFLAGS.EXTRA =
|
||||
ifneq (undefined, $(origin GLEW_MX))
|
||||
CFLAGS.EXTRA = -DGLEW_MX
|
||||
endif
|
||||
CFLAGS.SO = -DGLEW_BUILD
|
||||
#LDFLAGS.SO = -shared -soname $(LIB.SONAME) --out-implib lib/$(LIB.DEVLNK)
|
||||
LDFLAGS.SO = -shared -Wl,-soname,$(LIB.SONAME) -Wl,--out-implib,lib/$(LIB.DEVLNK)
|
||||
@ -119,7 +124,9 @@ LD = ld
|
||||
ABI = -64# -n32
|
||||
CC += $(ABI)
|
||||
LD += $(ABI)
|
||||
CFLAGS.EXTRA =
|
||||
ifneq (undefined, $(origin GLEW_MX))
|
||||
CFLAGS.EXTRA = -DGLEW_MX
|
||||
endif
|
||||
LDFLAGS.SO = -shared -soname $(LIB.SONAME)
|
||||
LDFLAGS.EXTRA =
|
||||
LDFLAGS.GL = -lGL -lXext -lX11
|
||||
@ -141,6 +148,9 @@ NAME = GLEW
|
||||
CC = cc
|
||||
LD = cc
|
||||
CFLAGS.EXTRA = -no-cpp-precomp -dynamic -fno-common
|
||||
ifneq (undefined, $(origin GLEW_MX))
|
||||
CFLAGS.EXTRA += -DGLEW_MX
|
||||
endif
|
||||
LDFLAGS.SO = -dynamiclib -install_name $(GLEW_DEST)/lib/$(LIB.SHARED)
|
||||
LDFLAGS.EXTRA =
|
||||
ifneq (undefined, $(origin GLEW_APPLE_GLX))
|
||||
@ -167,6 +177,9 @@ NAME = GLEW
|
||||
CC = cc
|
||||
LD = ld
|
||||
CFLAGS.EXTRA = -I/usr/openwin/include
|
||||
ifneq (undefined, $(origin GLEW_MX))
|
||||
CFLAGS.EXTRA += -DGLEW_MX
|
||||
endif
|
||||
LDFLAGS.SO = -G
|
||||
LDFLAGS.EXTRA = -L/usr/openwin/lib
|
||||
LDFLAGS.GL = -lXmu -lXi -lGLU -lGL -lXext -lX11
|
||||
|
@ -44,7 +44,7 @@ int main (void)
|
||||
err = glewContextInit(glewGetContext());
|
||||
#ifdef _WIN32
|
||||
err = err || wglewContextInit(wglewGetContext());
|
||||
#else
|
||||
#elif !defined(__APPLE__) || defined(GLEW_APPLE_GLX)
|
||||
err = err || glxewContextInit(glxewGetContext());
|
||||
#endif
|
||||
|
||||
|
@ -47,7 +47,7 @@ GLEWContext _glewctx;
|
||||
#ifdef _WIN32
|
||||
WGLEWContext _wglewctx;
|
||||
#define wglewGetContext() (&_wglewctx)
|
||||
#else
|
||||
#elif !defined(__APPLE__) || defined(GLEW_APPLE_GLX)
|
||||
GLXEWContext _glxewctx;
|
||||
#define glxewGetContext() (&_glxewctx)
|
||||
#endif
|
||||
|
@ -566,8 +566,8 @@ generation scripts are released under the <a href="gpl.txt">GPL</a>.
|
||||
<li><b>1.2.2</b> [05-08-04]
|
||||
<ul>
|
||||
<li> Added GL_EXT_pixel_buffer_object, removed GL_NV_element_array
|
||||
<li> Bug fix in GL_EXT_texture_rectangle
|
||||
<li> Bug fix in <tt>wglinfo</tt>
|
||||
<li> Fixed GLEW_MX problems
|
||||
<li> Bug fix in GL_EXT_texture_rectangle and <tt>wglinfo</tt>
|
||||
</ul>
|
||||
<p>
|
||||
<li><b>1.2.1</b> [03-18-04]
|
||||
|
Loading…
Reference in New Issue
Block a user