mirror of
https://github.com/Perlmint/glew-cmake.git
synced 2024-11-23 15:15:05 +00:00
Merge https://github.com/nigels-com/glew.git into master HEAD at Sat Sep 27 17:52:51 GMT 2014
This commit is contained in:
commit
4b50556664
4
Makefile
4
Makefile
@ -125,7 +125,7 @@ tmp/$(SYSTEM)/default/static/glew.o: src/glew.c include/GL/glew.h include/GL/wgl
|
||||
|
||||
tmp/$(SYSTEM)/default/shared/glew.o: src/glew.c include/GL/glew.h include/GL/wglew.h include/GL/glxew.h
|
||||
@mkdir -p $(dir $@)
|
||||
$(CC) -DGLEW_NO_GLU $(CFLAGS) $(CFLAGS.SO) -o $@ -c $<
|
||||
$(CC) -DGLEW_NO_GLU -DGLEW_BUILD $(CFLAGS) $(CFLAGS.SO) -o $@ -c $<
|
||||
|
||||
# Force re-write of glew.pc, GLEW_DEST can vary
|
||||
|
||||
@ -166,7 +166,7 @@ tmp/$(SYSTEM)/mx/static/glew.o: src/glew.c include/GL/glew.h include/GL/wglew.h
|
||||
|
||||
tmp/$(SYSTEM)/mx/shared/glew.o: src/glew.c include/GL/glew.h include/GL/wglew.h include/GL/glxew.h
|
||||
@mkdir -p $(dir $@)
|
||||
$(CC) -DGLEW_NO_GLU -DGLEW_MX $(CFLAGS) $(CFLAGS.SO) -o $@ -c $<
|
||||
$(CC) -DGLEW_NO_GLU -DGLEW_MX -DGLEW_BUILD $(CFLAGS) $(CFLAGS.SO) -o $@ -c $<
|
||||
|
||||
# Force re-write of glewmx.pc, GLEW_DEST can vary
|
||||
|
||||
|
@ -4,6 +4,8 @@ If you downloaded the tarball from the GLEW website, you just need to:
|
||||
|
||||
Unix:
|
||||
|
||||
make extensions
|
||||
|
||||
make
|
||||
|
||||
sudo -s
|
||||
@ -14,7 +16,7 @@ If you downloaded the tarball from the GLEW website, you just need to:
|
||||
|
||||
Windows:
|
||||
|
||||
use the project file in build/vc6/
|
||||
use the project file in build/vc12/
|
||||
|
||||
If you wish to build GLEW from scratch (update the extension data from
|
||||
the net or add your own extension information), you need a Unix
|
||||
@ -22,3 +24,8 @@ environment (including wget, perl, and GNU make). The extension data
|
||||
is regenerated from the top level source directory with:
|
||||
|
||||
make extensions
|
||||
|
||||
An alternative to generating the GLEW sources from scratch is to
|
||||
download a pre-generated (unsupported) snapshot:
|
||||
|
||||
https://sourceforge.net/projects/glew/files/glew/snapshots/
|
||||
|
@ -349,11 +349,16 @@ foreach my $spec (sort @speclist)
|
||||
} else {
|
||||
if (${$tokens}{$b} =~ /_/) {
|
||||
1
|
||||
} else {
|
||||
if (hex ${$tokens}{$a} eq hex ${$tokens}{$b})
|
||||
{
|
||||
$a cmp $b
|
||||
} else {
|
||||
hex ${$tokens}{$a} <=> hex ${$tokens}{$b}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
} keys %{$tokens})
|
||||
{
|
||||
if ($token =~ /^$prefix\_.*/i)
|
||||
|
@ -7,7 +7,6 @@ INCDIR = /usr/include/mingw/GL
|
||||
CC := gcc -mno-cygwin
|
||||
LD := gcc -mno-cygwin
|
||||
LN :=
|
||||
CFLAGS.SO = -DGLEW_BUILD
|
||||
LDFLAGS.GL = -lopengl32 -lgdi32 -luser32 -lkernel32
|
||||
LDFLAGS.EXTRA = -L$(LIBDIR)
|
||||
WARN = -Wall -W
|
||||
@ -16,10 +15,10 @@ BIN.SUFFIX = .exe
|
||||
LIB.SONAME = lib$(NAME).dll
|
||||
LIB.DEVLNK = lib$(NAME).dll.a # for mingw this is the dll import lib
|
||||
LIB.SHARED = $(NAME).dll
|
||||
LIB.STATIC = lib$(NAME).a # the static lib will be broken (see CFLAGS.SO)
|
||||
LIB.STATIC = lib$(NAME).a # the static lib will be broken
|
||||
LDFLAGS.SO = -shared -Wl,-soname,$(LIB.SONAME) -Wl,--out-implib,lib/$(LIB.DEVLNK)
|
||||
LIB.SONAME.MX = lib$(NAME)mx.dll
|
||||
LIB.DEVLNK.MX = lib$(NAME)mx.dll.a # for mingw this is the dll import lib
|
||||
LIB.SHARED.MX = $(NAME)mx.dll
|
||||
LIB.STATIC.MX = lib$(NAME)mx.a # the static lib will be broken (see CFLAGS.SO)
|
||||
LIB.STATIC.MX = lib$(NAME)mx.a # the static lib will be broken
|
||||
LDFLAGS.SO.MX = -shared -Wl,-soname,$(LIB.SONAME.MX) -Wl,--out-implib,lib/$(LIB.DEVLNK.MX)
|
||||
|
@ -9,7 +9,6 @@ CC := i686-w64-mingw32-gcc
|
||||
LD := i686-w64-mingw32-ld
|
||||
LN :=
|
||||
STRIP :=
|
||||
CFLAGS.SO = -DGLEW_BUILD
|
||||
LDFLAGS.GL = -lopengl32 -lgdi32 -luser32 -lkernel32
|
||||
WARN = -Wall -W
|
||||
POPT = -O2
|
||||
@ -17,10 +16,10 @@ BIN.SUFFIX = .exe
|
||||
LIB.SONAME = lib$(NAME).dll
|
||||
LIB.DEVLNK = lib$(NAME).dll.a # for mingw this is the dll import lib
|
||||
LIB.SHARED = $(NAME).dll
|
||||
LIB.STATIC = lib$(NAME).a # the static lib will be broken (see CFLAGS.SO)
|
||||
LIB.STATIC = lib$(NAME).a # the static lib will be broken
|
||||
LDFLAGS.SO = -shared -soname $(LIB.SONAME) --out-implib lib/$(LIB.DEVLNK)
|
||||
LIB.SONAME.MX = lib$(NAME)mx.dll
|
||||
LIB.DEVLNK.MX = lib$(NAME)mx.dll.a # for mingw this is the dll import lib
|
||||
LIB.SHARED.MX = $(NAME)mx.dll
|
||||
LIB.STATIC.MX = lib$(NAME)mx.a # the static lib will be broken (see CFLAGS.SO)
|
||||
LIB.STATIC.MX = lib$(NAME)mx.a # the static lib will be broken
|
||||
LDFLAGS.SO.MX = -shared -soname $(LIB.SONAME.MX) --out-implib lib/$(LIB.DEVLNK.MX)
|
||||
|
@ -9,7 +9,6 @@ CC := i586-mingw32msvc-gcc
|
||||
LD := i586-mingw32msvc-ld
|
||||
LN :=
|
||||
STRIP :=
|
||||
CFLAGS.SO = -DGLEW_BUILD
|
||||
LDFLAGS.GL = -lopengl32 -lgdi32 -luser32 -lkernel32
|
||||
WARN = -Wall -W
|
||||
POPT = -O2
|
||||
@ -17,10 +16,10 @@ BIN.SUFFIX = .exe
|
||||
LIB.SONAME = lib$(NAME).dll
|
||||
LIB.DEVLNK = lib$(NAME).dll.a # for mingw this is the dll import lib
|
||||
LIB.SHARED = $(NAME).dll
|
||||
LIB.STATIC = lib$(NAME).a # the static lib will be broken (see CFLAGS.SO)
|
||||
LIB.STATIC = lib$(NAME).a # the static lib will be broken
|
||||
LDFLAGS.SO = -shared -soname $(LIB.SONAME) --out-implib lib/$(LIB.DEVLNK)
|
||||
LIB.SONAME.MX = lib$(NAME)mx.dll
|
||||
LIB.DEVLNK.MX = lib$(NAME)mx.dll.a # for mingw this is the dll import lib
|
||||
LIB.SHARED.MX = $(NAME)mx.dll
|
||||
LIB.STATIC.MX = lib$(NAME)mx.a # the static lib will be broken (see CFLAGS.SO)
|
||||
LIB.STATIC.MX = lib$(NAME)mx.a # the static lib will be broken
|
||||
LDFLAGS.SO.MX = -shared -soname $(LIB.SONAME.MX) --out-implib lib/$(LIB.DEVLNK.MX)
|
||||
|
@ -5,11 +5,10 @@
|
||||
#
|
||||
|
||||
NAME := glew32
|
||||
CC := amd64-mingw32msvc-gcc
|
||||
LD := amd64-mingw32msvc-ld
|
||||
CC := i686-w64-mingw32-gcc
|
||||
LD := i686-w64-mingw32-ld
|
||||
LN :=
|
||||
STRIP :=
|
||||
CFLAGS.SO = -DGLEW_BUILD
|
||||
LDFLAGS.GL = -lopengl32 -lgdi32 -luser32 -lkernel32
|
||||
WARN = -Wall -W
|
||||
POPT = -O2
|
||||
@ -17,10 +16,10 @@ BIN.SUFFIX = .exe
|
||||
LIB.SONAME = lib$(NAME).dll
|
||||
LIB.DEVLNK = lib$(NAME).dll.a # for mingw this is the dll import lib
|
||||
LIB.SHARED = $(NAME).dll
|
||||
LIB.STATIC = lib$(NAME).a # the static lib will be broken (see CFLAGS.SO)
|
||||
LIB.STATIC = lib$(NAME).a # the static lib will be broken
|
||||
LDFLAGS.SO = -shared -soname $(LIB.SONAME) --out-implib lib/$(LIB.DEVLNK)
|
||||
LIB.SONAME.MX = lib$(NAME)mx.dll
|
||||
LIB.DEVLNK.MX = lib$(NAME)mx.dll.a # for mingw this is the dll import lib
|
||||
LIB.SHARED.MX = $(NAME)mx.dll
|
||||
LIB.STATIC.MX = lib$(NAME)mx.a # the static lib will be broken (see CFLAGS.SO)
|
||||
LIB.STATIC.MX = lib$(NAME)mx.a # the static lib will be broken
|
||||
LDFLAGS.SO.MX = -shared -soname $(LIB.SONAME.MX) --out-implib lib/$(LIB.DEVLNK.MX)
|
||||
|
@ -3,7 +3,6 @@ NAME = glew32
|
||||
CC := gcc
|
||||
LD := gcc
|
||||
LN :=
|
||||
CFLAGS.SO = -DGLEW_BUILD
|
||||
LDFLAGS.GL = -lopengl32 -lgdi32 -luser32 -lkernel32
|
||||
LDFLAGS.EXTRA = -L/mingw/lib
|
||||
WARN = -Wall -W
|
||||
@ -12,10 +11,10 @@ BIN.SUFFIX = .exe
|
||||
LIB.SONAME = lib$(NAME).dll
|
||||
LIB.DEVLNK = lib$(NAME).dll.a # for mingw this is the dll import lib
|
||||
LIB.SHARED = $(NAME).dll
|
||||
LIB.STATIC = lib$(NAME).a # the static lib will be broken (see CFLAGS.SO)
|
||||
LIB.STATIC = lib$(NAME).a # the static lib will be broken
|
||||
LDFLAGS.SO = -shared -Wl,-soname,$(LIB.SONAME) -Wl,--out-implib,lib/$(LIB.DEVLNK)
|
||||
LIB.SONAME.MX = lib$(NAME)mx.dll
|
||||
LIB.DEVLNK.MX = lib$(NAME)mx.dll.a # for mingw this is the dll import lib
|
||||
LIB.SHARED.MX = $(NAME)mx.dll
|
||||
LIB.STATIC.MX = lib$(NAME)mx.a # the static lib will be broken (see CFLAGS.SO)
|
||||
LIB.STATIC.MX = lib$(NAME)mx.a # the static lib will be broken
|
||||
LDFLAGS.SO.MX = -shared -Wl,-soname,$(LIB.SONAME.MX) -Wl,--out-implib,lib/$(LIB.DEVLNK.MX)
|
||||
|
Loading…
Reference in New Issue
Block a user