mirror of
https://github.com/Perlmint/glew-cmake.git
synced 2024-11-11 09:33:49 +00:00
fix cygming build
git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@486 783a27ee-832a-0410-bc00-9f386506c6dd
This commit is contained in:
parent
2dde3c1f7e
commit
2e56d766c7
@ -18,7 +18,7 @@
|
|||||||
#define __GLEXT_H_
|
#define __GLEXT_H_
|
||||||
#define __gl_ATI_h_
|
#define __gl_ATI_h_
|
||||||
|
|
||||||
#if defined(_WIN32) || defined(__MINGW32__)
|
#if defined(_WIN32)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* GLEW does not include <windows.h> to avoid name space pollution.
|
* GLEW does not include <windows.h> to avoid name space pollution.
|
||||||
|
@ -1,4 +1,8 @@
|
|||||||
NAME = glew32
|
NAME = glew32
|
||||||
|
GLEW_DEST = /usr
|
||||||
|
BINDIR = /usr/bin
|
||||||
|
LIBDIR = /usr/lib/mingw
|
||||||
|
INCDIR = /usr/include/mingw/GL
|
||||||
CC = gcc -mno-cygwin
|
CC = gcc -mno-cygwin
|
||||||
# use gcc for linking, with ld it does not work
|
# use gcc for linking, with ld it does not work
|
||||||
LD = gcc -mno-cygwin
|
LD = gcc -mno-cygwin
|
||||||
@ -6,10 +10,9 @@ ifneq (undefined, $(origin GLEW_MX))
|
|||||||
CFLAGS.EXTRA = -DGLEW_MX
|
CFLAGS.EXTRA = -DGLEW_MX
|
||||||
endif
|
endif
|
||||||
CFLAGS.SO = -DGLEW_BUILD
|
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)
|
LDFLAGS.SO = -shared -Wl,-soname,$(LIB.SONAME) -Wl,--out-implib,lib/$(LIB.DEVLNK)
|
||||||
LDFLAGS.GL = -lglu32 -lopengl32 -lgdi32 -luser32 -lkernel32
|
LDFLAGS.GL = -lglu32 -lopengl32 -lgdi32 -luser32 -lkernel32
|
||||||
LDFLAGS.EXTRA = -L/mingw/lib
|
LDFLAGS.EXTRA = -L$(LIBDIR)
|
||||||
WARN = -Wall -W
|
WARN = -Wall -W
|
||||||
POPT = -O2
|
POPT = -O2
|
||||||
BIN.SUFFIX = .exe
|
BIN.SUFFIX = .exe
|
||||||
|
Loading…
Reference in New Issue
Block a user