01cbd4d9c0
ok phesssler@
37 lines
1.0 KiB
Plaintext
37 lines
1.0 KiB
Plaintext
$OpenBSD: patch-Makefile,v 1.4 2011/11/16 22:42:02 pascal Exp $
|
|
--- Makefile.orig Thu Aug 25 10:17:55 2011
|
|
+++ Makefile Fri Nov 11 14:50:20 2011
|
|
@@ -65,7 +65,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)
|
|
@@ -101,11 +101,6 @@ lib/$(LIB.STATIC): $(LIB.OBJS)
|
|
|
|
lib/$(LIB.SHARED): $(LIB.SOBJS)
|
|
$(LD) $(LDFLAGS.SO) -o $@ $^ $(LIB.LDFLAGS) $(LIB.LIBS)
|
|
-ifeq ($(filter-out mingw% cygwin,$(SYSTEM)),)
|
|
-else
|
|
- $(LN) $(LIB.SHARED) lib/$(LIB.SONAME)
|
|
- $(LN) $(LIB.SHARED) lib/$(LIB.DEVLNK)
|
|
-endif
|
|
|
|
glew.pc: glew.pc.in
|
|
sed \
|
|
@@ -133,11 +128,6 @@ lib/$(LIB.STATIC.MX): $(LIB.OBJS.MX)
|
|
|
|
lib/$(LIB.SHARED.MX): $(LIB.SOBJS.MX)
|
|
$(LD) $(LDFLAGS.SO.MX) -o $@ $^ $(LIB.LDFLAGS) $(LIB.LIBS)
|
|
-ifeq ($(filter-out mingw% cygwin,$(SYSTEM)),)
|
|
-else
|
|
- $(LN) $(LIB.SHARED.MX) lib/$(LIB.SONAME.MX)
|
|
- $(LN) $(LIB.SHARED.MX) lib/$(LIB.DEVLNK.MX)
|
|
-endif
|
|
|
|
glewmx.pc: glew.pc.in
|
|
sed \
|