mirror of
https://github.com/Perlmint/glew-cmake.git
synced 2024-11-22 22:55:06 +00:00
added bindir and incdir
git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@485 783a27ee-832a-0410-bc00-9f386506c6dd
This commit is contained in:
parent
790f91b5f1
commit
2dde3c1f7e
26
Makefile
26
Makefile
@ -41,7 +41,9 @@ $(error "Platform '$(SYSTEM)' not supported")
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
GLEW_DEST ?= /usr
|
GLEW_DEST ?= /usr
|
||||||
|
BINDIR ?= $(GLEW_DEST)/bin
|
||||||
LIBDIR ?= $(GLEW_DEST)/lib
|
LIBDIR ?= $(GLEW_DEST)/lib
|
||||||
|
INCDIR ?= $(GLEW_DEST)/include/GL
|
||||||
SHARED_OBJ_EXT ?= o
|
SHARED_OBJ_EXT ?= o
|
||||||
TARDIR = ../glew-$(GLEW_VERSION)
|
TARDIR = ../glew-$(GLEW_VERSION)
|
||||||
TARBALL = ../glew_$(GLEW_VERSION).tar.gz
|
TARBALL = ../glew_$(GLEW_VERSION).tar.gz
|
||||||
@ -107,12 +109,12 @@ src/glew.pic_o: src/glew.c include/GL/glew.h include/GL/wglew.h include/GL/glxew
|
|||||||
|
|
||||||
install: all
|
install: all
|
||||||
# directories
|
# directories
|
||||||
$(INSTALL) -d -m 0755 $(GLEW_DEST)/bin
|
$(INSTALL) -d -m 0755 $(BINDIR)
|
||||||
$(INSTALL) -d -m 0755 $(GLEW_DEST)/include/GL
|
$(INSTALL) -d -m 0755 $(INCDIR)
|
||||||
$(INSTALL) -d -m 0755 $(LIBDIR)
|
$(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) $(BINDIR)/
|
||||||
else
|
else
|
||||||
ifeq ($(patsubst darwin%,darwin,$(SYSTEM)), darwin)
|
ifeq ($(patsubst darwin%,darwin,$(SYSTEM)), darwin)
|
||||||
strip -x lib/$(LIB.SHARED)
|
strip -x lib/$(LIB.SHARED)
|
||||||
@ -124,9 +126,9 @@ else
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
# development files
|
# development files
|
||||||
$(INSTALL) -m 0644 include/GL/wglew.h $(GLEW_DEST)/include/GL
|
$(INSTALL) -m 0644 include/GL/wglew.h $(INCDIR)/
|
||||||
$(INSTALL) -m 0644 include/GL/glew.h $(GLEW_DEST)/include/GL
|
$(INSTALL) -m 0644 include/GL/glew.h $(INCDIR)/
|
||||||
$(INSTALL) -m 0644 include/GL/glxew.h $(GLEW_DEST)/include/GL
|
$(INSTALL) -m 0644 include/GL/glxew.h $(INCDIR)/
|
||||||
ifeq ($(patsubst mingw%,mingw,$(SYSTEM)), mingw)
|
ifeq ($(patsubst mingw%,mingw,$(SYSTEM)), mingw)
|
||||||
$(INSTALL) -m 0644 lib/$(LIB.DEVLNK) $(LIBDIR)/
|
$(INSTALL) -m 0644 lib/$(LIB.DEVLNK) $(LIBDIR)/
|
||||||
else
|
else
|
||||||
@ -140,21 +142,21 @@ else
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
# utilities
|
# utilities
|
||||||
$(INSTALL) -s -m 0755 bin/$(GLEWINFO.BIN) bin/$(VISUALINFO.BIN) $(GLEW_DEST)/bin/
|
$(INSTALL) -s -m 0755 bin/$(GLEWINFO.BIN) bin/$(VISUALINFO.BIN) $(BINDIR)/
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
$(RM) $(GLEW_DEST)/include/GL/wglew.h
|
$(RM) $(INCDIR)/wglew.h
|
||||||
$(RM) $(GLEW_DEST)/include/GL/glew.h
|
$(RM) $(INCDIR)/glew.h
|
||||||
$(RM) $(GLEW_DEST)/include/GL/glxew.h
|
$(RM) $(INCDIR)/glxew.h
|
||||||
$(RM) $(LIBDIR)/$(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) $(BINDIR)/$(LIB.SHARED)
|
||||||
else
|
else
|
||||||
$(RM) $(LIBDIR)/$(LIB.SONAME)
|
$(RM) $(LIBDIR)/$(LIB.SONAME)
|
||||||
$(RM) $(LIBDIR)/$(LIB.SHARED)
|
$(RM) $(LIBDIR)/$(LIB.SHARED)
|
||||||
$(RM) $(LIBDIR)/$(LIB.STATIC)
|
$(RM) $(LIBDIR)/$(LIB.STATIC)
|
||||||
endif
|
endif
|
||||||
$(RM) $(GLEW_DEST)/bin/$(GLEWINFO.BIN) $(GLEW_DEST)/bin/$(VISUALINFO.BIN)
|
$(RM) $(BINDIR)/$(GLEWINFO.BIN) $(BINDIR)/$(VISUALINFO.BIN)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(RM) $(LIB.OBJS)
|
$(RM) $(LIB.OBJS)
|
||||||
|
@ -84,7 +84,8 @@ width="88" height="32" border="0" alt="Support This Project"></a></td></tr>
|
|||||||
<li> Bug fixes:
|
<li> Bug fixes:
|
||||||
<ul>
|
<ul>
|
||||||
<li> Missing include guards in glxew.h
|
<li> Missing include guards in glxew.h
|
||||||
<li> Makefile problems for Linux AMD64 builds
|
<li> Makefile and install problems for Cygwin builds
|
||||||
|
<li> Install problem for Linux AMD64 builds
|
||||||
<li> Incorrent token in GL_ATI_texture_compression_3dc
|
<li> Incorrent token in GL_ATI_texture_compression_3dc
|
||||||
<li> Missing tokens from GL_ATIX_point_sprites
|
<li> Missing tokens from GL_ATIX_point_sprites
|
||||||
</ul>
|
</ul>
|
||||||
|
Loading…
Reference in New Issue
Block a user