mirror of
https://github.com/nigels-com/glew.git
synced 2024-11-25 23:31:56 +00:00
added FreeBSD support
git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@308 783a27ee-832a-0410-bc00-9f386506c6dd
This commit is contained in:
parent
ef080d827d
commit
48458fa725
27
Makefile
27
Makefile
@ -115,6 +115,32 @@ LIB.SHARED = lib$(NAME).so.$(GLEW_VERSION)
|
||||
LIB.STATIC = lib$(NAME).a
|
||||
SHARED_OBJ_EXT = pic_o
|
||||
|
||||
else
|
||||
# ----------------------------------------------------------------------------
|
||||
# FreeBSD
|
||||
# ----------------------------------------------------------------------------
|
||||
ifeq ($(patsubst FreeBSD%,FreeBSD,$(SYSTEM)), FreeBSD)
|
||||
NAME = GLEW
|
||||
CC = cc
|
||||
LD = ld
|
||||
ifneq (undefined, $(origin GLEW_MX))
|
||||
CFLAGS.EXTRA = -DGLEW_MX
|
||||
endif
|
||||
LDFLAGS.SO = -shared -soname $(LIB.SONAME)
|
||||
LDFLAGS.EXTRA = -L/usr/X11R6/lib
|
||||
LDFLAGS.GL = -lXmu -lXi -lGLU -lGL -lXext -lX11
|
||||
LDFLAGS.STATIC = -Wl,-Bstatic
|
||||
LDFLAGS.DYNAMIC = -Wl,-Bdynamic
|
||||
CFLAGS.EXTRA += -I/usr/X11R6/include
|
||||
NAME = GLEW
|
||||
WARN = -Wall -W
|
||||
POPT = -O2
|
||||
BIN.SUFFIX =
|
||||
LIB.SONAME = lib$(NAME).so.$(GLEW_MAJOR)
|
||||
LIB.DEVLNK = lib$(NAME).so
|
||||
LIB.SHARED = lib$(NAME).so.$(GLEW_VERSION)
|
||||
LIB.STATIC = lib$(NAME).a
|
||||
|
||||
else
|
||||
# ----------------------------------------------------------------------------
|
||||
# Irix
|
||||
@ -201,6 +227,7 @@ endif
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq (undefined, $(origin SHARED_OBJ_EXT))
|
||||
SHARED_OBJ_EXT = o
|
||||
|
Loading…
Reference in New Issue
Block a user