mirror of
https://github.com/Perlmint/glew-cmake.git
synced 2024-11-29 10:01:56 +00:00
*** empty log message ***
git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@134 783a27ee-832a-0410-bc00-9f386506c6dd
This commit is contained in:
parent
36c73255de
commit
7cad40f8db
18
Makefile
18
Makefile
@ -49,7 +49,8 @@ NAME = glew32
|
|||||||
CC = gcc
|
CC = gcc
|
||||||
LD = ld
|
LD = ld
|
||||||
CFLAGS.EXTRA = -mno-cygwin -DGLEW_STATIC
|
CFLAGS.EXTRA = -mno-cygwin -DGLEW_STATIC
|
||||||
LDFLAGS.EXTRA = -shared -soname $(LIB.SONAME)
|
LDFLAGS.SO = -shared -soname $(LIB.SONAME)
|
||||||
|
LDFLAGS.EXTRA =
|
||||||
WARN = -Wall -W
|
WARN = -Wall -W
|
||||||
BIN.SUFFIX = .exe
|
BIN.SUFFIX = .exe
|
||||||
|
|
||||||
@ -71,7 +72,8 @@ NAME = GLEW
|
|||||||
CC = cc
|
CC = cc
|
||||||
LD = ld
|
LD = ld
|
||||||
CFLAGS.EXTRA =
|
CFLAGS.EXTRA =
|
||||||
LDFLAGS.EXTRA = -shared -soname $(LIB.SONAME) -L/usr/X11R6/lib
|
LDFLAGS.SO = -shared -soname $(LIB.SONAME)
|
||||||
|
LDFLAGS.EXTRA = -L/usr/X11R6/lib
|
||||||
NAME = GLEW
|
NAME = GLEW
|
||||||
WARN = -Wall -W
|
WARN = -Wall -W
|
||||||
BIN.SUFFIX =
|
BIN.SUFFIX =
|
||||||
@ -100,7 +102,8 @@ CC = cc
|
|||||||
LD = ld
|
LD = ld
|
||||||
ABI = -64 # -n32
|
ABI = -64 # -n32
|
||||||
CFLAGS.EXTRA = -woff 1110,1498 $(ABI)
|
CFLAGS.EXTRA = -woff 1110,1498 $(ABI)
|
||||||
LDFLAGS.EXTRA = $(ABI) -shared -soname $(LIB.SONAME)
|
LDFLAGS.SO = -shared -soname $(LIB.SONAME)
|
||||||
|
LDFLAGS.EXTRA = $(ABI)
|
||||||
NAME = GLEW
|
NAME = GLEW
|
||||||
WARN = -fullwarn
|
WARN = -fullwarn
|
||||||
BIN.SUFFIX =
|
BIN.SUFFIX =
|
||||||
@ -116,8 +119,9 @@ ifeq ($(patsubst Darwin%,Darwin,$(SYSTEM)), Darwin)
|
|||||||
NAME = GLEW
|
NAME = GLEW
|
||||||
CC = cc
|
CC = cc
|
||||||
LD = cc
|
LD = cc
|
||||||
CFLAGS.EXTRA = -I/usr/X11R6/include -I/sw/include -dynamic -fno-common
|
CFLAGS.EXTRA = -dynamic -I/usr/X11R6/include
|
||||||
LDFLAGS.EXTRA = -dynamiclib -L/usr/X11R6/lib
|
LDFLAGS.SO = -dynamiclib
|
||||||
|
LDFLAGS.EXTRA = -L/usr/X11R6/lib
|
||||||
NAME = GLEW
|
NAME = GLEW
|
||||||
BIN.SUFFIX =
|
BIN.SUFFIX =
|
||||||
WARN = -Wall -W
|
WARN = -Wall -W
|
||||||
@ -128,7 +132,7 @@ LIB.STATIC = lib$(NAME).a
|
|||||||
|
|
||||||
GL_LDFLAGS = -lGL -lXext -lX11
|
GL_LDFLAGS = -lGL -lXext -lX11
|
||||||
GLU_LDFLAGS = -lGLU
|
GLU_LDFLAGS = -lGLU
|
||||||
GLUT_LDFLAGS = -L/sw/lib -lglut -lXmu -lXi $(GLU_LDFLAGS) $(GL_LDFLAGS)
|
GLUT_LDFLAGS = -lglut -lXmu -lXi $(GLU_LDFLAGS) $(GL_LDFLAGS)
|
||||||
else
|
else
|
||||||
# ----------------------------------------------------------------------------
|
# ----------------------------------------------------------------------------
|
||||||
$(error "Platform '$(SYSTEM)' not supported")
|
$(error "Platform '$(SYSTEM)' not supported")
|
||||||
@ -170,7 +174,7 @@ lib/$(LIB.STATIC): $(LIB.OBJS)
|
|||||||
$(AR) cr $@ $^
|
$(AR) cr $@ $^
|
||||||
|
|
||||||
lib/$(LIB.SHARED): $(LIB.OBJS)
|
lib/$(LIB.SHARED): $(LIB.OBJS)
|
||||||
$(LD) -o $@ $^ $(LIB.LDFLAGS) $(LIB.LIBS)
|
$(LD) $(LDFLAGS.SO) -o $@ $^ $(LIB.LDFLAGS) $(LIB.LIBS)
|
||||||
$(LN) $(LIB.SHARED) lib/$(LIB.SONAME)
|
$(LN) $(LIB.SHARED) lib/$(LIB.SONAME)
|
||||||
$(LN) $(LIB.SHARED) lib/$(LIB.DEVLNK)
|
$(LN) $(LIB.SHARED) lib/$(LIB.DEVLNK)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user