From 08a9254e05f96c90edda5a0b02013daad61fc419 Mon Sep 17 00:00:00 2001 From: Danilo Margarido Date: Wed, 7 Sep 2016 15:20:59 +0100 Subject: [PATCH 1/2] Finer control over glew.lib Allows building both, shared-only or static-only. --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 88b7a54..481f379 100644 --- a/Makefile +++ b/Makefile @@ -98,7 +98,10 @@ LIB.OBJS := $(LIB.OBJS:.c=.o) LIB.SOBJS := $(addprefix tmp/$(SYSTEM)/default/shared/,$(LIB.SRCS.NAMES)) LIB.SOBJS := $(LIB.SOBJS:.c=.o) -glew.lib: lib lib/$(LIB.SHARED) lib/$(LIB.STATIC) glew.pc +glew.lib: glew.lib.shared glew.lib.static + +glew.lib.shared: lib lib/$(LIB.SHARED) glew.pc +glew.lib.static: lib lib/$(LIB.STATIC) glew.pc lib: mkdir lib From 18dc0f817a55bc16a3fe5593278c18954c787be3 Mon Sep 17 00:00:00 2001 From: Danilo Margarido Date: Wed, 7 Sep 2016 15:26:37 +0100 Subject: [PATCH 2/2] Added the glew.lib sub-targets to the target list --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1fd2bb1..36e9333 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ RedHat/CentOS/Fedora: `$ sudo yum install libXmu-devel libXi-devel libGL-devel $ sudo make install $ make clean -Targets: `all, glew.lib, glew.bin, clean, install, uninstall` +Targets: `all, glew.lib (sub-targets: glew.lib.shared, glew.lib.static), glew.bin, clean, install, uninstall` Variables: `SYSTEM=linux-clang, GLEW_DEST=/usr/local, STRIP=`