From 3507110b9e2f60e615983a93003dc0cc4e140808 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwenol=C3=A9=20Beauchesne?= Date: Tue, 30 Jul 2002 12:12:20 +0000 Subject: lib64 fixes --- tools/Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'tools/Makefile') diff --git a/tools/Makefile b/tools/Makefile index f689235a1..e632cc1e3 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -5,6 +5,13 @@ DIRS = ddcprobe serial_probe aewm-drakx BASE = $(ROOTDEST)/Mandrake/base CFLAGS = -Wall +ARCH := $(shell arch | egrep "(x86_64|sparc64|s390x)") +ifneq ("x$(ARCH)", "x") +LIB_NAME = lib64 +else +LIB_NAME = lib +endif + .PHONY: clean install $(DIRS) all: $(DIRS) xhost+ rpcinfo-flushed install @@ -22,7 +29,7 @@ install: @mkdir -p $(DEST)/usr/bin xhost+: %: %.c - $(CC) $(CFLAGS) $< -L/usr/X11R6/lib -lX11 -o $@ + $(CC) $(CFLAGS) $< -L/usr/X11R6/$(LIB_NAME) -lX11 -o $@ ddcprobe/ddcxinfos: $(MAKE) -C ddcprobe ddcxinfos -- cgit v1.2.1