mirror of
https://github.com/nigels-com/glew.git
synced 2024-11-25 15:25:07 +00:00
Improved Cygwin support as proposed in Feature Request ID: 3081290
git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@626 783a27ee-832a-0410-bc00-9f386506c6dd
This commit is contained in:
parent
f55e3a1b1f
commit
0b890ef852
8
Makefile
8
Makefile
@ -90,7 +90,7 @@ lib/$(LIB.STATIC): $(LIB.OBJS)
|
||||
|
||||
lib/$(LIB.SHARED): $(LIB.SOBJS)
|
||||
$(LD) $(LDFLAGS.SO) -o $@ $^ $(LIB.LDFLAGS) $(LIB.LIBS)
|
||||
ifeq ($(patsubst mingw%,mingw,$(SYSTEM)), mingw)
|
||||
ifeq ($(filter-out mingw% cygwin,$(SYSTEM)),)
|
||||
else
|
||||
$(LN) $(LIB.SHARED) lib/$(LIB.SONAME)
|
||||
$(LN) $(LIB.SHARED) lib/$(LIB.DEVLNK)
|
||||
@ -127,7 +127,7 @@ install: all
|
||||
$(INSTALL) -d -m 0755 $(LIBDIR)
|
||||
$(INSTALL) -d -m 0755 $(LIBDIR)/pkgconfig
|
||||
# runtime
|
||||
ifeq ($(patsubst mingw%,mingw,$(SYSTEM)), mingw)
|
||||
ifeq ($(filter-out mingw% cygwin,$(SYSTEM)),)
|
||||
$(STRIP) -x lib/$(LIB.SHARED)
|
||||
$(INSTALL) -m 0644 lib/$(LIB.SHARED) $(BINDIR)/
|
||||
else
|
||||
@ -140,7 +140,7 @@ endif
|
||||
$(INSTALL) -m 0644 include/GL/glew.h $(INCDIR)/
|
||||
$(INSTALL) -m 0644 include/GL/glxew.h $(INCDIR)/
|
||||
$(INSTALL) -m 0644 glew.pc $(LIBDIR)/pkgconfig/
|
||||
ifeq ($(patsubst mingw%,mingw,$(SYSTEM)), mingw)
|
||||
ifeq ($(filter-out mingw% cygwin,$(SYSTEM)),)
|
||||
$(INSTALL) -m 0644 lib/$(LIB.DEVLNK) $(LIBDIR)/
|
||||
else
|
||||
$(STRIP) -x lib/$(LIB.STATIC)
|
||||
@ -155,7 +155,7 @@ uninstall:
|
||||
$(RM) $(INCDIR)/glew.h
|
||||
$(RM) $(INCDIR)/glxew.h
|
||||
$(RM) $(LIBDIR)/$(LIB.DEVLNK)
|
||||
ifeq ($(patsubst mingw%,mingw,$(SYSTEM)), mingw)
|
||||
ifeq ($(filter-out mingw% cygwin,$(SYSTEM)),)
|
||||
$(RM) $(BINDIR)/$(LIB.SHARED)
|
||||
else
|
||||
$(RM) $(LIBDIR)/$(LIB.SONAME)
|
||||
|
@ -6,7 +6,7 @@ LD = cc
|
||||
ifneq (undefined, $(origin GLEW_MX))
|
||||
CFLAGS.EXTRA = -DGLEW_MX
|
||||
endif
|
||||
LDFLAGS.SO = -shared -Wl,-soname=$(LIB.SONAME)
|
||||
LDFLAGS.SO = -shared -Wl,--out-implib,lib/$(LIB.DEVLNK)
|
||||
LDFLAGS.EXTRA = -L/usr/X11R6/lib
|
||||
LIBDIR = $(GLEW_DEST)/lib
|
||||
LDFLAGS.GL = -lXmu -lXi -lGLU -lGL -lXext -lX11
|
||||
@ -14,8 +14,8 @@ LDFLAGS.STATIC = -Wl,-Bstatic
|
||||
LDFLAGS.DYNAMIC = -Wl,-Bdynamic
|
||||
WARN = -Wall -W
|
||||
POPT = -O2
|
||||
BIN.SUFFIX =
|
||||
LIB.SONAME = lib$(NAME).so.$(SO_MAJOR)
|
||||
LIB.DEVLNK = lib$(NAME).so
|
||||
LIB.SHARED = lib$(NAME).so.$(SO_VERSION)
|
||||
BIN.SUFFIX = .exe
|
||||
LIB.SONAME = cyg$(NAME)-$(SO_MAJOR).dll
|
||||
LIB.DEVLNK = lib$(NAME).dll.a
|
||||
LIB.SHARED = cyg$(NAME)-$(SO_MAJOR).dll
|
||||
LIB.STATIC = lib$(NAME).a
|
||||
|
Loading…
Reference in New Issue
Block a user