diff options
author | Gwenolé Beauchesne <gbeauchesne@mandriva.org> | 2003-04-19 07:52:24 +0000 |
---|---|---|
committer | Gwenolé Beauchesne <gbeauchesne@mandriva.org> | 2003-04-19 07:52:24 +0000 |
commit | 3745796284f82d0b8576fcf48d302b9ca2e81180 (patch) | |
tree | f50d7e7c1a8ad6e4361bc47d5d94394f050b37c3 /Makefile | |
parent | d5f481421c1d12f326b1b1cf0de94b8096717a7b (diff) | |
download | numlock-3745796284f82d0b8576fcf48d302b9ca2e81180.tar numlock-3745796284f82d0b8576fcf48d302b9ca2e81180.tar.gz numlock-3745796284f82d0b8576fcf48d302b9ca2e81180.tar.bz2 numlock-3745796284f82d0b8576fcf48d302b9ca2e81180.tar.xz numlock-3745796284f82d0b8576fcf48d302b9ca2e81180.zip |
make it lib64 aware
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 $@ $< |