2005-01-05 20:19:03 +00:00
|
|
|
NAME = $(GLEW_NAME)
|
2014-02-20 00:38:55 +00:00
|
|
|
CC = cc
|
|
|
|
LD = cc
|
2009-02-20 05:59:07 +00:00
|
|
|
M_ARCH ?= $(shell uname -m)
|
2012-09-17 22:42:14 +00:00
|
|
|
ARCH64 = false
|
2007-03-01 06:49:21 +00:00
|
|
|
ifeq (x86_64,${M_ARCH})
|
2012-09-17 22:42:14 +00:00
|
|
|
ARCH64 = true
|
|
|
|
endif
|
|
|
|
ifeq (ppc64,${M_ARCH})
|
|
|
|
ARCH64 = true
|
|
|
|
endif
|
|
|
|
ifeq (${ARCH64},true)
|
|
|
|
LDFLAGS.EXTRA = -L/usr/X11R6/lib64 -L/usr/lib64
|
|
|
|
LIBDIR = $(GLEW_DEST)/lib64
|
2007-03-01 06:49:21 +00:00
|
|
|
else
|
2012-09-17 22:42:14 +00:00
|
|
|
LDFLAGS.EXTRA = -L/usr/X11R6/lib -L/usr/lib
|
|
|
|
LIBDIR = $(GLEW_DEST)/lib
|
2007-01-18 22:11:56 +00:00
|
|
|
endif
|
2014-02-20 00:21:33 +00:00
|
|
|
LDFLAGS.GL = -lGL -lX11
|
2004-12-07 17:28:58 +00:00
|
|
|
LDFLAGS.STATIC = -Wl,-Bstatic
|
|
|
|
LDFLAGS.DYNAMIC = -Wl,-Bdynamic
|
|
|
|
NAME = GLEW
|
|
|
|
WARN = -Wall -W
|
|
|
|
POPT = -O2
|
2012-08-08 02:54:20 +00:00
|
|
|
CFLAGS.EXTRA += -fPIC
|
2014-10-14 09:24:49 +00:00
|
|
|
CFLAGS.EXTRA += -Wcast-qual
|
2015-02-21 13:44:40 +00:00
|
|
|
CFLAGS.EXTRA += -ansi -pedantic
|
2016-01-07 12:07:00 +00:00
|
|
|
CFLAGS.EXTRA += -fno-stack-protector
|
2004-12-07 17:28:58 +00:00
|
|
|
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)
|