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:
ikits 2004-12-06 06:53:44 +00:00
parent ef080d827d
commit 48458fa725

View File

@ -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