Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
third-party
glew
Commits
51bd94fc
Commit
51bd94fc
authored
Dec 25, 2016
by
Nigel Stewart
Browse files
Add Mac gcc6 build configuration (gcc via brew)
parent
4b9ffe44
Changes
1
Hide whitespace changes
Inline
Side-by-side
config/Makefile.darwin-gcc6
0 → 100644
View file @
51bd94fc
# For building with Brew gcc:
# $ brew install gcc
GLEW_DEST
=
/usr/local
NAME
=
$(GLEW_NAME)
CC
=
gcc-6
LD
=
gcc-6
CFLAGS.EXTRA
=
-dynamic
-fno-common
CFLAGS.EXTRA
+=
-std
=
c89
# 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'
LDFLAGS.GL
=
-L
/usr/X11R6/lib
-lGL
-lX11
else
LDFLAGS.GL
=
-framework
OpenGL
endif
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
LIB.SHARED
=
lib
$(NAME)
.
$(SO_VERSION)
.dylib
LIB.STATIC
=
lib
$(NAME)
.a
LDFLAGS.SO
=
-dynamiclib
-install_name
$(GLEW_DEST)
/lib/
$(LIB.SHARED)
-current_version
$(SO_VERSION)
-compatibility_version
$(SO_MAJOR)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment