Makefile.darwin-ppc 906 Bytes
Newer Older
1
# Note: Mac PPC is obsolete but the configuration
2
#       is here for reference.
3
GLEW_DEST = /usr/local
4
NAME = $(GLEW_NAME)
5 6
CC = cc
LD = cc
7 8
CFLAGS.EXTRA += -arch ppc
CFLAGS.EXTRA += -dynamic -fno-common
9
CFLAGS.EXTRA += -pedantic
10
CFLAGS.EXTRA += -fPIC
11 12
LDFLAGS.EXTRA = -arch ppc
ifneq (undefined, $(origin GLEW_APPLE_GLX))
13
CFLAGS.EXTRA += -std=c99
14
CFLAGS.EXTRA += -I/usr/X11R6/include -D'GLEW_APPLE_GLX'
15
LDFLAGS.GL = -L/usr/X11R6/lib -lGL -lX11
16
else
17 18
CFLAGS.EXTRA += -std=c89
GLEW_NO_GLU = -DGLEW_NO_GLU
19
LDFLAGS.GL = -framework OpenGL
20 21 22 23
endif
LDFLAGS.STATIC =
LDFLAGS.DYNAMIC =
WARN = -Wall -W
Loufis's avatar
Loufis committed
24
POPT = -Os
25 26 27 28 29 30
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)