mirror of
https://github.com/nigels-com/glew.git
synced 2024-11-26 07:41:58 +00:00
fixed Makefile for MACOSX compilation
git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@133 783a27ee-832a-0410-bc00-9f386506c6dd
This commit is contained in:
parent
32a42fe06a
commit
36c73255de
16
Makefile
16
Makefile
@ -47,8 +47,9 @@ SYSTEM = $(strip $(shell uname -s))
|
|||||||
ifeq ($(patsubst CYGWIN%,CYGWIN,$(SYSTEM)), CYGWIN)
|
ifeq ($(patsubst CYGWIN%,CYGWIN,$(SYSTEM)), CYGWIN)
|
||||||
NAME = glew32
|
NAME = glew32
|
||||||
CC = gcc
|
CC = gcc
|
||||||
|
LD = ld
|
||||||
CFLAGS.EXTRA = -mno-cygwin -DGLEW_STATIC
|
CFLAGS.EXTRA = -mno-cygwin -DGLEW_STATIC
|
||||||
LDFLAGS.EXTRA =
|
LDFLAGS.EXTRA = -shared -soname $(LIB.SONAME)
|
||||||
WARN = -Wall -W
|
WARN = -Wall -W
|
||||||
BIN.SUFFIX = .exe
|
BIN.SUFFIX = .exe
|
||||||
|
|
||||||
@ -68,8 +69,9 @@ else
|
|||||||
ifeq ($(patsubst Linux%,Linux,$(SYSTEM)), Linux)
|
ifeq ($(patsubst Linux%,Linux,$(SYSTEM)), Linux)
|
||||||
NAME = GLEW
|
NAME = GLEW
|
||||||
CC = cc
|
CC = cc
|
||||||
|
LD = ld
|
||||||
CFLAGS.EXTRA =
|
CFLAGS.EXTRA =
|
||||||
LDFLAGS.EXTRA = -L/usr/X11R6/lib
|
LDFLAGS.EXTRA = -shared -soname $(LIB.SONAME) -L/usr/X11R6/lib
|
||||||
NAME = GLEW
|
NAME = GLEW
|
||||||
WARN = -Wall -W
|
WARN = -Wall -W
|
||||||
BIN.SUFFIX =
|
BIN.SUFFIX =
|
||||||
@ -95,9 +97,10 @@ else
|
|||||||
ifeq ($(patsubst IRIX%,IRIX,$(SYSTEM)), IRIX)
|
ifeq ($(patsubst IRIX%,IRIX,$(SYSTEM)), IRIX)
|
||||||
NAME = GLEW
|
NAME = GLEW
|
||||||
CC = cc
|
CC = cc
|
||||||
|
LD = ld
|
||||||
ABI = -64 # -n32
|
ABI = -64 # -n32
|
||||||
CFLAGS.EXTRA = -woff 1110,1498 $(ABI)
|
CFLAGS.EXTRA = -woff 1110,1498 $(ABI)
|
||||||
LDFLAGS.EXTRA = $(ABI)
|
LDFLAGS.EXTRA = $(ABI) -shared -soname $(LIB.SONAME)
|
||||||
NAME = GLEW
|
NAME = GLEW
|
||||||
WARN = -fullwarn
|
WARN = -fullwarn
|
||||||
BIN.SUFFIX =
|
BIN.SUFFIX =
|
||||||
@ -112,8 +115,9 @@ else
|
|||||||
ifeq ($(patsubst Darwin%,Darwin,$(SYSTEM)), Darwin)
|
ifeq ($(patsubst Darwin%,Darwin,$(SYSTEM)), Darwin)
|
||||||
NAME = GLEW
|
NAME = GLEW
|
||||||
CC = cc
|
CC = cc
|
||||||
|
LD = cc
|
||||||
CFLAGS.EXTRA = -I/usr/X11R6/include -I/sw/include -dynamic -fno-common
|
CFLAGS.EXTRA = -I/usr/X11R6/include -I/sw/include -dynamic -fno-common
|
||||||
LDFLAGS.EXTRA = -L/usr/X11R6/lib
|
LDFLAGS.EXTRA = -dynamiclib -L/usr/X11R6/lib
|
||||||
NAME = GLEW
|
NAME = GLEW
|
||||||
BIN.SUFFIX =
|
BIN.SUFFIX =
|
||||||
WARN = -Wall -W
|
WARN = -Wall -W
|
||||||
@ -131,9 +135,9 @@ $(error "Platform '$(SYSTEM)' not supported")
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
AR = ar
|
AR = ar
|
||||||
LD = ld
|
|
||||||
INSTALL = install
|
INSTALL = install
|
||||||
RM = rm -f
|
RM = rm -f
|
||||||
LN = ln -sf
|
LN = ln -sf
|
||||||
@ -166,7 +170,7 @@ lib/$(LIB.STATIC): $(LIB.OBJS)
|
|||||||
$(AR) cr $@ $^
|
$(AR) cr $@ $^
|
||||||
|
|
||||||
lib/$(LIB.SHARED): $(LIB.OBJS)
|
lib/$(LIB.SHARED): $(LIB.OBJS)
|
||||||
$(LD) -shared -o $@ $^ -soname $(LIB.SONAME) $(LIB.LDFLAGS) $(LIB.LIBS)
|
$(LD) -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