mirror of
https://github.com/Perlmint/glew-cmake.git
synced 2024-11-26 08:31:56 +00:00
Update support for Cygwin 2.10.0 without X11. Based on MSYS toolchain config.
This commit is contained in:
parent
e0e17b923e
commit
c849b3f00b
@ -4,9 +4,10 @@ GLEW_DEST ?= /usr
|
|||||||
CC := cc
|
CC := cc
|
||||||
LD := cc
|
LD := cc
|
||||||
LN :=
|
LN :=
|
||||||
|
CFLAGS.EXTRA += -D_WIN32
|
||||||
LDFLAGS.EXTRA =
|
LDFLAGS.EXTRA =
|
||||||
LIBDIR = $(GLEW_DEST)/lib
|
LIBDIR = $(GLEW_DEST)/lib
|
||||||
LDFLAGS.GL = -lGL -lX11
|
LDFLAGS.GL = -lOpenGL32 -mwindows
|
||||||
LDFLAGS.STATIC = -Wl,-Bstatic
|
LDFLAGS.STATIC = -Wl,-Bstatic
|
||||||
LDFLAGS.DYNAMIC = -Wl,-Bdynamic
|
LDFLAGS.DYNAMIC = -Wl,-Bdynamic
|
||||||
WARN = -Wall -W
|
WARN = -Wall -W
|
||||||
|
19
config/Makefile.cygwin-x11
Normal file
19
config/Makefile.cygwin-x11
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
NAME = GLEW
|
||||||
|
GLEW_DEST ?= /usr
|
||||||
|
# use gcc for linking, with ld it does not work
|
||||||
|
CC := cc
|
||||||
|
LD := cc
|
||||||
|
LN :=
|
||||||
|
LDFLAGS.EXTRA =
|
||||||
|
LIBDIR = $(GLEW_DEST)/lib
|
||||||
|
LDFLAGS.GL = -lGL -lX11
|
||||||
|
LDFLAGS.STATIC = -Wl,-Bstatic
|
||||||
|
LDFLAGS.DYNAMIC = -Wl,-Bdynamic
|
||||||
|
WARN = -Wall -W
|
||||||
|
POPT = -O2
|
||||||
|
BIN.SUFFIX = .exe
|
||||||
|
LIB.SONAME = cyg$(NAME)-$(GLEW_MAJOR)-$(GLEW_MINOR).dll
|
||||||
|
LIB.DEVLNK = lib$(NAME).dll.a
|
||||||
|
LIB.SHARED = cyg$(NAME)-$(GLEW_MAJOR)-$(GLEW_MINOR).dll
|
||||||
|
LIB.STATIC = lib$(NAME).a
|
||||||
|
LDFLAGS.SO = -shared -Wl,--out-implib,lib/$(LIB.DEVLNK)
|
Loading…
Reference in New Issue
Block a user