96da4e2934
The goal of the OpenGL Extension Wrangler Library (GLEW) is to assist C/C++ OpenGL developers with two tedious tasks: initializing and using extensions and writing portable applications. GLEW provides an efficient run-time mechanism to determine whether a certain extension is supported by the driver or not. OpenGL core and extension functionality is exposed via a single header file.
35 lines
1.0 KiB
Plaintext
35 lines
1.0 KiB
Plaintext
$OpenBSD: patch-Makefile,v 1.1.1.1 2009/04/13 23:24:01 sthen Exp $
|
|
--- Makefile.orig Mon Apr 13 02:13:48 2009
|
|
+++ Makefile Mon Apr 13 02:15:10 2009
|
|
@@ -59,7 +59,7 @@ else
|
|
OPT = $(POPT)
|
|
endif
|
|
INCLUDE = -Iinclude
|
|
-CFLAGS = $(OPT) $(WARN) $(INCLUDE) $(CFLAGS.EXTRA)
|
|
+CFLAGS += $(OPT) $(WARN) $(INCLUDE) $(CFLAGS.EXTRA)
|
|
|
|
LIB.SRCS = src/glew.c
|
|
LIB.OBJS = $(LIB.SRCS:.c=.o)
|
|
@@ -85,11 +85,6 @@ lib/$(LIB.STATIC): $(LIB.OBJS)
|
|
|
|
lib/$(LIB.SHARED): $(LIB.SOBJS)
|
|
$(LD) $(LDFLAGS.SO) -o $@ $^ $(LIB.LDFLAGS) $(LIB.LIBS)
|
|
-ifeq ($(patsubst mingw%,mingw,$(SYSTEM)), mingw)
|
|
-else
|
|
- $(LN) $(LIB.SHARED) lib/$(LIB.SONAME)
|
|
- $(LN) $(LIB.SHARED) lib/$(LIB.DEVLNK)
|
|
-endif
|
|
|
|
bin/$(GLEWINFO.BIN): $(GLEWINFO.BIN.SRCS) lib/$(LIB.SHARED)
|
|
$(CC) $(CFLAGS) -o $@ $(GLEWINFO.BIN.SRCS) $(BIN.LIBS)
|
|
@@ -99,6 +94,9 @@ bin/$(VISUALINFO.BIN): $(VISUALINFO.BIN.SRCS) lib/$(LI
|
|
|
|
%.o: %.c
|
|
$(CC) -c $(CFLAGS) -o $@ $<
|
|
+
|
|
+%.so: %.c
|
|
+ $(CC) -c $(CFLAGS) -fPIC -o $@ $<
|
|
|
|
src/glew.o: src/glew.c include/GL/glew.h include/GL/wglew.h include/GL/glxew.h
|
|
$(CC) $(CFLAGS) $(CFLAGS.SO) -o $@ -c $<
|