diff --git a/config/Makefile.darwin b/config/Makefile.darwin index 924adfc..8030f05 100644 --- a/config/Makefile.darwin +++ b/config/Makefile.darwin @@ -3,13 +3,16 @@ NAME = $(GLEW_NAME) CC = cc LD = cc CFLAGS.EXTRA += -dynamic -fno-common -CFLAGS.EXTRA += -std=c89 -pedantic +CFLAGS.EXTRA += -pedantic CFLAGS.EXTRA += -fPIC LDFLAGS.EXTRA = ifneq (undefined, $(origin GLEW_APPLE_GLX)) +CFLAGS.EXTRA += -std=c99 CFLAGS.EXTRA += -I/usr/X11R6/include -D'GLEW_APPLE_GLX' LDFLAGS.GL = -L/usr/X11R6/lib -lGL -lX11 else +CFLAGS.EXTRA += -std=c89 +GLEW_NO_GLU = -DGLEW_NO_GLU LDFLAGS.GL = -framework OpenGL endif LDFLAGS.STATIC = diff --git a/config/Makefile.darwin-gcc6 b/config/Makefile.darwin-gcc6 index fe06b4c..ecb61b3 100644 --- a/config/Makefile.darwin-gcc6 +++ b/config/Makefile.darwin-gcc6 @@ -4,17 +4,19 @@ GLEW_DEST = /usr/local NAME = $(GLEW_NAME) CC = gcc-6 LD = gcc-6 -CFLAGS.EXTRA = -dynamic -fno-common -CFLAGS.EXTRA += -std=c89 +CFLAGS.EXTRA += -dynamic -fno-common CFLAGS.EXTRA += -fPIC # Lots of warnings with -pedantic # warning: ISO C forbids conversion of object pointer to function pointer type #CFLAGS.EXTRA += -pedantic LDFLAGS.EXTRA = ifneq (undefined, $(origin GLEW_APPLE_GLX)) +CFLAGS.EXTRA += -std=c99 CFLAGS.EXTRA += -I/usr/X11R6/include -D'GLEW_APPLE_GLX' LDFLAGS.GL = -L/usr/X11R6/lib -lGL -lX11 else +CFLAGS.EXTRA += -std=c89 +GLEW_NO_GLU = -DGLEW_NO_GLU LDFLAGS.GL = -framework OpenGL endif LDFLAGS.STATIC = diff --git a/config/Makefile.darwin-ppc b/config/Makefile.darwin-ppc index 9fbaadd..7a41736 100644 --- a/config/Makefile.darwin-ppc +++ b/config/Makefile.darwin-ppc @@ -6,13 +6,16 @@ CC = cc LD = cc CFLAGS.EXTRA += -arch ppc CFLAGS.EXTRA += -dynamic -fno-common -CFLAGS.EXTRA += -std=c89 -pedantic +CFLAGS.EXTRA += -pedantic CFLAGS.EXTRA += -fPIC LDFLAGS.EXTRA = -arch ppc ifneq (undefined, $(origin GLEW_APPLE_GLX)) +CFLAGS.EXTRA += -std=c99 CFLAGS.EXTRA += -I/usr/X11R6/include -D'GLEW_APPLE_GLX' LDFLAGS.GL = -L/usr/X11R6/lib -lGL -lX11 else +CFLAGS.EXTRA += -std=c89 +GLEW_NO_GLU = -DGLEW_NO_GLU LDFLAGS.GL = -framework OpenGL endif LDFLAGS.STATIC = diff --git a/config/Makefile.darwin-universal b/config/Makefile.darwin-universal index 9fe8b67..f2412e3 100644 --- a/config/Makefile.darwin-universal +++ b/config/Makefile.darwin-universal @@ -9,14 +9,17 @@ AR = LIBTOOL = libtool -static -o STRIP = CFLAGS.EXTRA = -dynamic -fno-common -CFLAGS.EXTRA += -std=c89 -pedantic +CFLAGS.EXTRA += -pedantic CFLAGS.EXTRA += -fPIC CFLAGS.EXTRA += -arch i386 -arch x86_64 LDFLAGS.EXTRA = -arch i386 -arch x86_64 ifneq (undefined, $(origin GLEW_APPLE_GLX)) +CFLAGS.EXTRA += -std=c99 CFLAGS.EXTRA += -I/usr/X11R6/include -D'GLEW_APPLE_GLX' LDFLAGS.GL = -L/usr/X11R6/lib -lGL -lX11 else +CFLAGS.EXTRA += -std=c89 +GLEW_NO_GLU = -DGLEW_NO_GLU LDFLAGS.GL = -framework OpenGL endif LDFLAGS.DYNAMIC = diff --git a/config/Makefile.darwin-x86_64 b/config/Makefile.darwin-x86_64 index 3bce8e0..dbed967 100644 --- a/config/Makefile.darwin-x86_64 +++ b/config/Makefile.darwin-x86_64 @@ -4,13 +4,16 @@ CC = cc LD = cc CFLAGS.EXTRA += -arch x86_64 CFLAGS.EXTRA += -dynamic -fno-common -CFLAGS.EXTRA += -std=c89 -pedantic +CFLAGS.EXTRA += -pedantic CFLAGS.EXTRA += -fPIC LDFLAGS.EXTRA = -arch x86_64 ifneq (undefined, $(origin GLEW_APPLE_GLX)) +CFLAGS.EXTRA += -std=c99 CFLAGS.EXTRA += -I/usr/X11R6/include -D'GLEW_APPLE_GLX' LDFLAGS.GL = -L/usr/X11R6/lib -lGL -lX11 else +CFLAGS.EXTRA += -std=c89 +GLEW_NO_GLU = -DGLEW_NO_GLU LDFLAGS.GL = -framework OpenGL endif LDFLAGS.STATIC =