2005-01-05 20:19:03 +00:00
|
|
|
NAME = $(GLEW_NAME)
|
2004-12-07 17:28:58 +00:00
|
|
|
CC = cc
|
2006-04-25 20:39:07 +00:00
|
|
|
LD = cc
|
2004-12-07 17:28:58 +00:00
|
|
|
PICFLAG = -fPIC
|
2009-02-20 05:59:07 +00:00
|
|
|
M_ARCH ?= $(shell uname -m)
|
2007-03-01 06:49:21 +00:00
|
|
|
ifeq (x86_64,${M_ARCH})
|
2007-03-01 06:01:39 +00:00
|
|
|
LDFLAGS.EXTRA = -L/usr/X11R6/lib64
|
2007-03-01 05:19:49 +00:00
|
|
|
LIBDIR = $(GLEW_DEST)/lib64
|
2007-03-01 06:49:21 +00:00
|
|
|
else
|
2007-03-01 06:01:39 +00:00
|
|
|
LDFLAGS.EXTRA = -L/usr/X11R6/lib
|
2007-03-01 05:19:49 +00:00
|
|
|
LIBDIR = $(GLEW_DEST)/lib
|
2007-01-18 22:11:56 +00:00
|
|
|
endif
|
2004-12-07 17:28:58 +00:00
|
|
|
LDFLAGS.GL = -lXmu -lXi -lGLU -lGL -lXext -lX11
|
|
|
|
LDFLAGS.STATIC = -Wl,-Bstatic
|
|
|
|
LDFLAGS.DYNAMIC = -Wl,-Bdynamic
|
|
|
|
NAME = GLEW
|
|
|
|
WARN = -Wall -W
|
|
|
|
POPT = -O2
|
|
|
|
BIN.SUFFIX =
|
2005-01-05 20:19:03 +00:00
|
|
|
LIB.SONAME = lib$(NAME).so.$(SO_MAJOR)
|
2004-12-07 17:28:58 +00:00
|
|
|
LIB.DEVLNK = lib$(NAME).so
|
2005-01-05 20:19:03 +00:00
|
|
|
LIB.SHARED = lib$(NAME).so.$(SO_VERSION)
|
2004-12-07 17:28:58 +00:00
|
|
|
LIB.STATIC = lib$(NAME).a
|
2011-03-29 01:21:13 +00:00
|
|
|
LDFLAGS.SO = -shared -Wl,-soname=$(LIB.SONAME)
|
2011-02-19 05:02:26 +00:00
|
|
|
LIB.SONAME.MX = lib$(NAME)mx.so.$(SO_MAJOR)
|
|
|
|
LIB.DEVLNK.MX = lib$(NAME)mx.so
|
|
|
|
LIB.SHARED.MX = lib$(NAME)mx.so.$(SO_VERSION)
|
|
|
|
LIB.STATIC.MX = lib$(NAME)mx.a
|
2011-03-29 01:21:13 +00:00
|
|
|
LDFLAGS.SO.MX = -shared -Wl,-soname=$(LIB.SONAME.MX)
|