Update support for Cygwin 2.10.0 without X11. Based on MSYS toolchain config.

This commit is contained in:
Paul Steinbrecher 2018-08-08 17:23:15 -06:00 committed by Nigel Stewart
parent e0e17b923e
commit c849b3f00b
2 changed files with 21 additions and 1 deletions

View File

@ -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

View 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)