Commit f46e13ad authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

Initial commit

parents
all:
tar xf glew-2.2.0.tgz
patch -Np1 -d glew-2.2.0 < glew-2.2.0-no_static.patch
$(MAKE) -C glew-2.2.0 install.all
rm -rf glew-2.2.0
diff -uNr glew-2.2.0/config/Makefile.linux glew-2.2.0-no_static/config/Makefile.linux
--- glew-2.2.0/config/Makefile.linux 2020-03-15 22:23:59.000000000 +1030
+++ glew-2.2.0-no_static/config/Makefile.linux 2022-04-27 15:34:59.671470735 +0930
@@ -13,8 +13,8 @@
ARCH64 = true
endif
ifeq (${ARCH64},true)
- LDFLAGS.EXTRA = -L/usr/X11R6/lib64 -L/usr/lib64
- LIBDIR = $(GLEW_DEST)/lib64
+ LDFLAGS.EXTRA = -L/usr/X11R6/lib -L/usr/lib
+ LIBDIR = $(GLEW_DEST)/lib
else
LDFLAGS.EXTRA = -L/usr/X11R6/lib -L/usr/lib
LIBDIR = $(GLEW_DEST)/lib
diff -uNr glew-2.2.0/Makefile glew-2.2.0-no_static/Makefile
--- glew-2.2.0/Makefile 2020-03-15 22:23:59.000000000 +1030
+++ glew-2.2.0-no_static/Makefile 2022-04-27 15:35:09.200496488 +0930
@@ -99,12 +99,11 @@
LIB.SOBJS := $(addprefix tmp/$(SYSTEM)/default/shared/,$(LIB.SRCS.NAMES))
LIB.SOBJS := $(LIB.SOBJS:.c=.o)
-glew.lib: glew.lib.shared glew.lib.static
+glew.lib: glew.lib.shared
glew.lib.shared: lib $(LIB.SHARED.DIR) $(LIB.SHARED.DIR)/$(LIB.SHARED) glew.pc
-glew.lib.static: lib lib/$(LIB.STATIC) glew.pc
-.PHONY: glew.lib glew.lib.shared glew.lib.static
+.PHONY: glew.lib glew.lib.shared
lib:
mkdir lib
@@ -225,7 +224,6 @@
ifneq ($(LN),)
$(LN) $(LIB.SHARED) "$(DESTDIR)$(LIBDIR)/$(LIB.DEVLNK)"
endif
- $(INSTALL) -m 0644 lib/$(LIB.STATIC) "$(DESTDIR)$(LIBDIR)/"
install.bin: glew.bin
$(INSTALL) -d -m 0755 "$(DESTDIR)$(BINDIR)"
File added
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment