From 3745796284f82d0b8576fcf48d302b9ca2e81180 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwenol=C3=A9=20Beauchesne?= Date: Sat, 19 Apr 2003 07:52:24 +0000 Subject: make it lib64 aware --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 $@ $< -- cgit v1.2.1