summaryrefslogtreecommitdiffstats
path: root/tools/aewm-drakx
diff options
context:
space:
mode:
Diffstat (limited to 'tools/aewm-drakx')
-rw-r--r--tools/aewm-drakx/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/tools/aewm-drakx/Makefile b/tools/aewm-drakx/Makefile
index ed1b95ecf..ec5bbf977 100644
--- a/tools/aewm-drakx/Makefile
+++ b/tools/aewm-drakx/Makefile
@@ -1,5 +1,12 @@
+ARCH := $(shell arch | egrep "(x86_64|sparc64|s390x)")
+ifneq ("x$(ARCH)", "x")
+LIB_NAME = lib64
+else
+LIB_NAME = lib
+endif
+
CFLAGS = -Wall -Os
-LDFLAGS = -L/usr/X11R6/lib -lX11
+LDFLAGS = -L/usr/X11R6/$(LIB_NAME) -lX11
CFILES = $(wildcard *.c)
OFILES = $(CFILES:%.c=%.o)
GOAL = aewm-drakx