summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 2 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index 118ace9..2316a01 100644
--- a/Makefile
+++ b/Makefile
@@ -44,14 +44,8 @@ LIBIVY_DEPLIBS = -livy
LIBIVY_GLFW_SHARED = $(LIBIVY_GLFW)$(DSO_EXT)
LIBIVY_GLFW_DEPLIBS = -lglfw -livy -lX11 -lXext -lXxf86vm -lGL -lpthread
-PERHAPS64= `uname -m | perl -ne "print /64/ ? '64' : '';"`
-
-ifeq ($(PERHAPS64), '64')
- LIB=lib64
-else
- LIB=lib
-endif
-
+PERHAPS64 := $(shell uname --machine | perl -ne "print /64/ ? '64' : '';")
+LIB:= lib$(PERHAPS64)
XTLIB = -L/usr/X11R6/$(LIB)/
#a mettre dans les makefiles generant les executables