mirror of
https://github.com/nigels-com/glew.git
synced 2024-11-26 15:51:56 +00:00
added lib64 patch
git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@429 783a27ee-832a-0410-bc00-9f386506c6dd
This commit is contained in:
parent
385ad31ec4
commit
1910b4c021
29
Makefile
29
Makefile
@ -29,6 +29,7 @@
|
|||||||
## THE POSSIBILITY OF SUCH DAMAGE.
|
## THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
GLEW_DEST ?= /usr
|
GLEW_DEST ?= /usr
|
||||||
|
LIBDIR = $(GLEW_DEST)/lib
|
||||||
|
|
||||||
include config/version
|
include config/version
|
||||||
|
|
||||||
@ -112,18 +113,18 @@ install: all
|
|||||||
# directories
|
# directories
|
||||||
$(INSTALL) -d -m 0755 $(GLEW_DEST)/bin
|
$(INSTALL) -d -m 0755 $(GLEW_DEST)/bin
|
||||||
$(INSTALL) -d -m 0755 $(GLEW_DEST)/include/GL
|
$(INSTALL) -d -m 0755 $(GLEW_DEST)/include/GL
|
||||||
$(INSTALL) -d -m 0755 $(GLEW_DEST)/lib
|
$(INSTALL) -d -m 0755 $(LIBDIR)
|
||||||
# runtime
|
# runtime
|
||||||
ifeq ($(patsubst mingw%,mingw,$(SYSTEM)), mingw)
|
ifeq ($(patsubst mingw%,mingw,$(SYSTEM)), mingw)
|
||||||
$(INSTALL) $(STRIP) -m 0644 lib/$(LIB.SHARED) $(GLEW_DEST)/bin/
|
$(INSTALL) $(STRIP) -m 0644 lib/$(LIB.SHARED) $(GLEW_DEST)/bin/
|
||||||
else
|
else
|
||||||
ifeq ($(patsubst darwin%,darwin,$(SYSTEM)), darwin)
|
ifeq ($(patsubst darwin%,darwin,$(SYSTEM)), darwin)
|
||||||
strip -x lib/$(LIB.SHARED)
|
strip -x lib/$(LIB.SHARED)
|
||||||
$(INSTALL) -m 0644 lib/$(LIB.SHARED) $(GLEW_DEST)/lib/
|
$(INSTALL) -m 0644 lib/$(LIB.SHARED) $(LIBDIR)/
|
||||||
$(LN) $(LIB.SHARED) $(GLEW_DEST)/lib/$(LIB.SONAME)
|
$(LN) $(LIB.SHARED) $(LIBDIR)/$(LIB.SONAME)
|
||||||
else
|
else
|
||||||
$(INSTALL) $(STRIP) -m 0644 lib/$(LIB.SHARED) $(GLEW_DEST)/lib/
|
$(INSTALL) $(STRIP) -m 0644 lib/$(LIB.SHARED) $(LIBDIR)/
|
||||||
$(LN) $(LIB.SHARED) $(GLEW_DEST)/lib/$(LIB.SONAME)
|
$(LN) $(LIB.SHARED) $(LIBDIR)/$(LIB.SONAME)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
# development files
|
# development files
|
||||||
@ -131,15 +132,15 @@ endif
|
|||||||
$(INSTALL) -m 0644 include/GL/glew.h $(GLEW_DEST)/include/GL
|
$(INSTALL) -m 0644 include/GL/glew.h $(GLEW_DEST)/include/GL
|
||||||
$(INSTALL) -m 0644 include/GL/glxew.h $(GLEW_DEST)/include/GL
|
$(INSTALL) -m 0644 include/GL/glxew.h $(GLEW_DEST)/include/GL
|
||||||
ifeq ($(patsubst mingw%,mingw,$(SYSTEM)), mingw)
|
ifeq ($(patsubst mingw%,mingw,$(SYSTEM)), mingw)
|
||||||
$(INSTALL) -m 0644 lib/$(LIB.DEVLNK) $(GLEW_DEST)/lib/
|
$(INSTALL) -m 0644 lib/$(LIB.DEVLNK) $(LIBDIR)/
|
||||||
else
|
else
|
||||||
ifeq ($(patsubst darwin%,darwin,$(SYSTEM)), darwin)
|
ifeq ($(patsubst darwin%,darwin,$(SYSTEM)), darwin)
|
||||||
strip -x lib/$(LIB.STATIC)
|
strip -x lib/$(LIB.STATIC)
|
||||||
$(INSTALL) -m 0644 lib/$(LIB.STATIC) $(GLEW_DEST)/lib/
|
$(INSTALL) -m 0644 lib/$(LIB.STATIC) $(LIBDIR)/
|
||||||
$(LN) $(LIB.SHARED) $(GLEW_DEST)/lib/$(LIB.DEVLNK)
|
$(LN) $(LIB.SHARED) $(LIBDIR)/$(LIB.DEVLNK)
|
||||||
else
|
else
|
||||||
$(INSTALL) $(STRIP) -m 0644 lib/$(LIB.STATIC) $(GLEW_DEST)/lib/
|
$(INSTALL) $(STRIP) -m 0644 lib/$(LIB.STATIC) $(LIBDIR)/
|
||||||
$(LN) $(LIB.SHARED) $(GLEW_DEST)/lib/$(LIB.DEVLNK)
|
$(LN) $(LIB.SHARED) $(LIBDIR)/$(LIB.DEVLNK)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
# utilities
|
# utilities
|
||||||
@ -149,13 +150,13 @@ uninstall:
|
|||||||
$(RM) $(GLEW_DEST)/include/GL/wglew.h
|
$(RM) $(GLEW_DEST)/include/GL/wglew.h
|
||||||
$(RM) $(GLEW_DEST)/include/GL/glew.h
|
$(RM) $(GLEW_DEST)/include/GL/glew.h
|
||||||
$(RM) $(GLEW_DEST)/include/GL/glxew.h
|
$(RM) $(GLEW_DEST)/include/GL/glxew.h
|
||||||
$(RM) $(GLEW_DEST)/lib/$(LIB.DEVLNK)
|
$(RM) $(LIBDIR)/$(LIB.DEVLNK)
|
||||||
ifeq ($(patsubst mingw%,mingw,$(SYSTEM)), mingw)
|
ifeq ($(patsubst mingw%,mingw,$(SYSTEM)), mingw)
|
||||||
$(RM) $(GLEW_DEST)/bin/$(LIB.SHARED)
|
$(RM) $(GLEW_DEST)/bin/$(LIB.SHARED)
|
||||||
else
|
else
|
||||||
$(RM) $(GLEW_DEST)/lib/$(LIB.SONAME)
|
$(RM) $(LIBDIR)/$(LIB.SONAME)
|
||||||
$(RM) $(GLEW_DEST)/lib/$(LIB.SHARED)
|
$(RM) $(LIBDIR)/$(LIB.SHARED)
|
||||||
$(RM) $(GLEW_DEST)/lib/$(LIB.STATIC)
|
$(RM) $(LIBDIR)/$(LIB.STATIC)
|
||||||
endif
|
endif
|
||||||
$(RM) $(GLEW_DEST)/bin/$(GLEWINFO.BIN) $(GLEW_DEST)/bin/$(VISUALINFO.BIN)
|
$(RM) $(GLEW_DEST)/bin/$(GLEWINFO.BIN) $(GLEW_DEST)/bin/$(VISUALINFO.BIN)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user