mirror of
https://github.com/nigels-com/glew.git
synced 2024-11-22 05:45:07 +00:00
Tidy-up for Mac makefile build configs
This commit is contained in:
parent
a9e50908a1
commit
b34af4d1e3
@ -2,9 +2,9 @@ GLEW_DEST = /usr/local
|
||||
NAME = $(GLEW_NAME)
|
||||
CC = cc
|
||||
LD = cc
|
||||
CFLAGS.EXTRA = -dynamic -fno-common
|
||||
CFLAGS.EXTRA += -dynamic -fno-common
|
||||
CFLAGS.EXTRA += -std=c89 -pedantic
|
||||
#CFLAGS.EXTRA += -no-cpp-precomp
|
||||
CFLAGS.EXTRA += -fPIC
|
||||
LDFLAGS.EXTRA =
|
||||
ifneq (undefined, $(origin GLEW_APPLE_GLX))
|
||||
CFLAGS.EXTRA += -I/usr/X11R6/include -D'GLEW_APPLE_GLX'
|
||||
@ -16,7 +16,6 @@ LDFLAGS.STATIC =
|
||||
LDFLAGS.DYNAMIC =
|
||||
WARN = -Wall -W
|
||||
POPT = -Os
|
||||
CFLAGS.EXTRA += -fPIC
|
||||
BIN.SUFFIX =
|
||||
LIB.SONAME = lib$(NAME).$(SO_MAJOR).dylib
|
||||
LIB.DEVLNK = lib$(NAME).dylib
|
||||
|
@ -6,10 +6,10 @@ CC = gcc-6
|
||||
LD = gcc-6
|
||||
CFLAGS.EXTRA = -dynamic -fno-common
|
||||
CFLAGS.EXTRA += -std=c89
|
||||
CFLAGS.EXTRA += -fPIC
|
||||
# Lots of warnings with -pedantic
|
||||
# warning: ISO C forbids conversion of object pointer to function pointer type
|
||||
#CFLAGS.EXTRA += -pedantic
|
||||
#CFLAGS.EXTRA += -no-cpp-precomp
|
||||
LDFLAGS.EXTRA =
|
||||
ifneq (undefined, $(origin GLEW_APPLE_GLX))
|
||||
CFLAGS.EXTRA += -I/usr/X11R6/include -D'GLEW_APPLE_GLX'
|
||||
@ -21,7 +21,6 @@ LDFLAGS.STATIC =
|
||||
LDFLAGS.DYNAMIC =
|
||||
WARN = -Wall -W
|
||||
POPT = -Os
|
||||
CFLAGS.EXTRA += -fPIC
|
||||
BIN.SUFFIX =
|
||||
LIB.SONAME = lib$(NAME).$(SO_MAJOR).dylib
|
||||
LIB.DEVLNK = lib$(NAME).dylib
|
||||
|
@ -1,11 +1,13 @@
|
||||
# Note: PPC is no longer actively maintained for GLEW, but this configuration
|
||||
# Note: Mac PPC is obsolete but the configuration
|
||||
# is here for reference.
|
||||
GLEW_DEST = /usr/local
|
||||
NAME = $(GLEW_NAME)
|
||||
CC = cc
|
||||
LD = cc
|
||||
CFLAGS.EXTRA = -arch ppc -dynamic -fno-common
|
||||
#CFLAGS.EXTRA += -no-cpp-precomp
|
||||
CFLAGS.EXTRA += -arch ppc
|
||||
CFLAGS.EXTRA += -dynamic -fno-common
|
||||
CFLAGS.EXTRA += -std=c89 -pedantic
|
||||
CFLAGS.EXTRA += -fPIC
|
||||
LDFLAGS.EXTRA = -arch ppc
|
||||
ifneq (undefined, $(origin GLEW_APPLE_GLX))
|
||||
CFLAGS.EXTRA += -I/usr/X11R6/include -D'GLEW_APPLE_GLX'
|
||||
@ -17,7 +19,6 @@ LDFLAGS.STATIC =
|
||||
LDFLAGS.DYNAMIC =
|
||||
WARN = -Wall -W
|
||||
POPT = -Os
|
||||
CFLAGS.EXTRA += -fPIC
|
||||
BIN.SUFFIX =
|
||||
LIB.SONAME = lib$(NAME).$(SO_MAJOR).dylib
|
||||
LIB.DEVLNK = lib$(NAME).dylib
|
||||
|
@ -10,7 +10,7 @@ LIBTOOL = libtool -static -o
|
||||
STRIP =
|
||||
CFLAGS.EXTRA = -dynamic -fno-common
|
||||
CFLAGS.EXTRA += -std=c89 -pedantic
|
||||
#CFLAGS.EXTRA += -no-cpp-precomp
|
||||
CFLAGS.EXTRA += -fPIC
|
||||
CFLAGS.EXTRA += -arch i386 -arch x86_64
|
||||
LDFLAGS.EXTRA = -arch i386 -arch x86_64
|
||||
ifneq (undefined, $(origin GLEW_APPLE_GLX))
|
||||
@ -22,7 +22,6 @@ endif
|
||||
LDFLAGS.DYNAMIC =
|
||||
WARN = -Wall -W
|
||||
POPT = -Os
|
||||
CFLAGS.EXTRA += -fPIC
|
||||
BIN.SUFFIX =
|
||||
LIB.SONAME = lib$(NAME).$(SO_MAJOR).dylib
|
||||
LIB.DEVLNK = lib$(NAME).dylib
|
||||
|
@ -2,9 +2,10 @@ GLEW_DEST = /usr/local
|
||||
NAME = $(GLEW_NAME)
|
||||
CC = cc
|
||||
LD = cc
|
||||
CFLAGS.EXTRA = -arch x86_64 -dynamic -fno-common
|
||||
CFLAGS.EXTRA += -arch x86_64
|
||||
CFLAGS.EXTRA += -dynamic -fno-common
|
||||
CFLAGS.EXTRA += -std=c89 -pedantic
|
||||
#CFLAGS.EXTRA += -no-cpp-precomp
|
||||
CFLAGS.EXTRA += -fPIC
|
||||
LDFLAGS.EXTRA = -arch x86_64
|
||||
ifneq (undefined, $(origin GLEW_APPLE_GLX))
|
||||
CFLAGS.EXTRA += -I/usr/X11R6/include -D'GLEW_APPLE_GLX'
|
||||
@ -16,7 +17,6 @@ LDFLAGS.STATIC =
|
||||
LDFLAGS.DYNAMIC =
|
||||
WARN = -Wall -W
|
||||
POPT = -Os
|
||||
CFLAGS.EXTRA += -fPIC
|
||||
BIN.SUFFIX =
|
||||
LIB.SONAME = lib$(NAME).$(SO_MAJOR).dylib
|
||||
LIB.DEVLNK = lib$(NAME).dylib
|
||||
|
Loading…
Reference in New Issue
Block a user