aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGwenolé Beauchesne <gbeauchesne@mandriva.org>2003-04-19 07:52:24 +0000
committerGwenolé Beauchesne <gbeauchesne@mandriva.org>2003-04-19 07:52:24 +0000
commit3745796284f82d0b8576fcf48d302b9ca2e81180 (patch)
treef50d7e7c1a8ad6e4361bc47d5d94394f050b37c3
parentd5f481421c1d12f326b1b1cf0de94b8096717a7b (diff)
downloadnumlock-3745796284f82d0b8576fcf48d302b9ca2e81180.tar
numlock-3745796284f82d0b8576fcf48d302b9ca2e81180.tar.gz
numlock-3745796284f82d0b8576fcf48d302b9ca2e81180.tar.bz2
numlock-3745796284f82d0b8576fcf48d302b9ca2e81180.tar.xz
numlock-3745796284f82d0b8576fcf48d302b9ca2e81180.zip
make it lib64 aware
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 5ff29e5..a09fa7a 100644
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,15 @@
NAME= numlock
VERSION = $(shell awk '/define version/ { print $$3 }' $(NAME).spec)
+LIB_NAME = lib
+ifneq (,$(shell uname -m | grep "\(x86_64\|sparc64\|ppc64\|s390x\)"))
+LIB_NAME = lib64
+endif
+
TOP=
CFLAGS=-g -O2 -Wall
CC=gcc
-FLAGS=-lX11 -lXtst -I/usr/X11R6/include -L/usr/X11R6/lib
+FLAGS=-lX11 -lXtst -I/usr/X11R6/include -L/usr/X11R6/$(LIB_NAME)
enable_X11_numlock: enable_X11_numlock.c
$(CC) $(CFLAGS) $(FLAGS) -o $@ $<