From: Carl Worth Date: Thu, 22 Aug 2013 00:15:41 +0000 (-0700) Subject: Don't compile 32- or 64-bit components when not supported X-Git-Url: https://git.cworth.org/git?p=glaze;a=commitdiff_plain;h=f2c5ebbfe53ee598aa2b354f0e013aba3a10fffc Don't compile 32- or 64-bit components when not supported 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. --- diff --git a/Makefile b/Makefile index 0246543..f13fa87 100644 --- 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)