mirror of
https://github.com/nigels-com/glew.git
synced 2024-11-22 05:45:07 +00:00
Add make toolchains for msys, msys-win32 and msys-win64
This commit is contained in:
parent
f65df11fa7
commit
c45763d790
7
Makefile
7
Makefile
@ -45,6 +45,7 @@ GLEW_DEST ?= /usr
|
|||||||
BINDIR ?= $(GLEW_DEST)/bin
|
BINDIR ?= $(GLEW_DEST)/bin
|
||||||
LIBDIR ?= $(GLEW_DEST)/lib
|
LIBDIR ?= $(GLEW_DEST)/lib
|
||||||
INCDIR ?= $(GLEW_DEST)/include/GL
|
INCDIR ?= $(GLEW_DEST)/include/GL
|
||||||
|
PKGDIR ?= $(GLEW_DEST)/lib/pkgconfig
|
||||||
|
|
||||||
ifneq ($(GLEW_NO_GLU), -DGLEW_NO_GLU)
|
ifneq ($(GLEW_NO_GLU), -DGLEW_NO_GLU)
|
||||||
LIBGLU = glu
|
LIBGLU = glu
|
||||||
@ -229,9 +230,9 @@ install.include:
|
|||||||
$(INSTALL) -m 0644 include/GL/glxew.h "$(DESTDIR)$(INCDIR)/"
|
$(INSTALL) -m 0644 include/GL/glxew.h "$(DESTDIR)$(INCDIR)/"
|
||||||
|
|
||||||
install.pkgconfig: glew.pc
|
install.pkgconfig: glew.pc
|
||||||
$(INSTALL) -d -m 0755 "$(DESTDIR)$(LIBDIR)"
|
$(INSTALL) -d -m 0755 "$(DESTDIR)$(PKGDIR)"
|
||||||
$(INSTALL) -d -m 0755 "$(DESTDIR)$(LIBDIR)/pkgconfig"
|
$(INSTALL) -d -m 0755 "$(DESTDIR)$(PKGDIR)"
|
||||||
$(INSTALL) -m 0644 glew.pc "$(DESTDIR)$(LIBDIR)/pkgconfig/"
|
$(INSTALL) -m 0644 glew.pc "$(DESTDIR)$(PKGDIR)/"
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
$(RM) "$(DESTDIR)$(INCDIR)/wglew.h"
|
$(RM) "$(DESTDIR)$(INCDIR)/wglew.h"
|
||||||
|
29
README.md
29
README.md
@ -73,8 +73,37 @@ RedHat/CentOS/Fedora: `$ sudo yum install libXmu-devel libXi-devel libGL-devel g
|
|||||||
|
|
||||||
### Windows
|
### Windows
|
||||||
|
|
||||||
|
#### Visual Studio
|
||||||
|
|
||||||
Use the provided Visual Studio project file in build/vc12/
|
Use the provided Visual Studio project file in build/vc12/
|
||||||
|
|
||||||
|
Projects for vc6 and vc10 are also provided
|
||||||
|
|
||||||
|
#### MSYS/Mingw
|
||||||
|
|
||||||
|
Available from [Mingw](http://www.mingw.org/)
|
||||||
|
|
||||||
|
Requirements: bash, make, gcc
|
||||||
|
|
||||||
|
$ mingw32-make
|
||||||
|
$ mingw32-make install
|
||||||
|
$ mingw32-make install.all
|
||||||
|
|
||||||
|
Alternative toolchain: `SYSTEM=mingw-win32`
|
||||||
|
|
||||||
|
#### MSYS2/Mingw-w64
|
||||||
|
|
||||||
|
Available from [Msys2](http://msys2.github.io/) and/or [Mingw-w64](http://mingw-w64.org/)
|
||||||
|
|
||||||
|
Requirements: bash, make, gcc
|
||||||
|
|
||||||
|
$ pacman -S gcc make mingw-w64-i686-gcc mingw-w64-x86_64-gcc
|
||||||
|
$ make
|
||||||
|
$ make install
|
||||||
|
$ make install.all
|
||||||
|
|
||||||
|
Alternative toolchain: `SYSTEM=msys, SYSTEM=msys-win32, SYSTEM=msys-win64`
|
||||||
|
|
||||||
## glewinfo
|
## glewinfo
|
||||||
|
|
||||||
`glewinfo` is a command-line tool useful for inspecting the capabilities of an
|
`glewinfo` is a command-line tool useful for inspecting the capabilities of an
|
||||||
|
@ -3,6 +3,7 @@ NAME = glew32
|
|||||||
CC := gcc
|
CC := gcc
|
||||||
LD := gcc
|
LD := gcc
|
||||||
LN :=
|
LN :=
|
||||||
|
CFLAGS.EXTRA += -D_WIN32
|
||||||
LDFLAGS.GL = -lopengl32 -lgdi32 -luser32 -lkernel32
|
LDFLAGS.GL = -lopengl32 -lgdi32 -luser32 -lkernel32
|
||||||
LDFLAGS.EXTRA =
|
LDFLAGS.EXTRA =
|
||||||
LIBDIR = $(GLEW_DEST)/bin
|
LIBDIR = $(GLEW_DEST)/bin
|
||||||
|
5
config/Makefile.msys-win32
Normal file
5
config/Makefile.msys-win32
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
include config/Makefile.msys
|
||||||
|
|
||||||
|
POPT := -march=i686 -mtune=generic -O2
|
||||||
|
CFLAGS.EXTRA += -m32
|
||||||
|
LDFLAGS.EXTRA += -m32
|
5
config/Makefile.msys-win64
Normal file
5
config/Makefile.msys-win64
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
include config/Makefile.msys
|
||||||
|
|
||||||
|
POPT := -mtune=generic -O2
|
||||||
|
CFLAGS.EXTRA += -m64
|
||||||
|
LDFLAGS.EXTRA += -m64
|
Loading…
Reference in New Issue
Block a user