From 48458fa72507a60e6b08766735fd821deafe33cb Mon Sep 17 00:00:00 2001 From: ikits Date: Mon, 6 Dec 2004 06:53:44 +0000 Subject: [PATCH] added FreeBSD support git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@308 783a27ee-832a-0410-bc00-9f386506c6dd --- Makefile | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/Makefile b/Makefile index b298fa6..9db16f5 100644 --- a/Makefile +++ b/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