]> git.cworth.org Git - glaze/commitdiff
Don't compile 32- or 64-bit components when not supported
authorCarl Worth <cworth@cworth.org>
Thu, 22 Aug 2013 00:15:41 +0000 (17:15 -0700)
committerCarl Worth <cworth@cworth.org>
Thu, 22 Aug 2013 00:15:41 +0000 (17:15 -0700)
The configure script is already kind enough to detect whether we can
compile 32-bit- or 64-bit-specific components. Now, fix the Makefile
to actually pay attention and not try to compile something which we
know will not work.

Makefile

index 02465438e283872f5d114a419cc9401ba0b23ca3..f13fa877014873e702595377520cf90bd714c649 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -24,7 +24,15 @@ LIBGLAZE_LINKER_NAME = libglaze.so
 LIBGLAZE_SONAME = $(LIBGLAZE_LINKER_NAME).$(MAJOR)
 LIBGLAZE_LIBNAME = $(LIBGLAZE_SONAME).$(MINOR).$(RELEASE)
 
-TARGETS = $(LIBGLAZE_LIBNAME) lib64/libGL.so.1 lib32/libGL.so.1
+TARGETS = $(LIBGLAZE_LIBNAME)
+
+ifeq ($(COMPILER_SUPPORTS_32),Yes)
+TARGETS += lib32/libGL.so.1
+endif
+
+ifeq ($(COMPILER_SUPPORTS_64),Yes)
+TARGETS += lib64/libGL.so.1
+endif
 
 all: $(TARGETS)