summaryrefslogtreecommitdiffstats
path: root/tools/ddcprobe/Makefile
diff options
context:
space:
mode:
authorGwenolé Beauchesne <gbeauchesne@mandriva.org>2004-08-25 08:51:17 +0000
committerGwenolé Beauchesne <gbeauchesne@mandriva.org>2004-08-25 08:51:17 +0000
commit5fd67915fadb26d49934abdcafb9c37467ce2949 (patch)
tree44cf9e63a9e67c6f56ff91c4bf886f8db2abe494 /tools/ddcprobe/Makefile
parentf9dc48ae3840aceb9c2765fc5a1b61aff37e0e4b (diff)
downloaddrakx-backup-do-not-use-5fd67915fadb26d49934abdcafb9c37467ce2949.tar
drakx-backup-do-not-use-5fd67915fadb26d49934abdcafb9c37467ce2949.tar.gz
drakx-backup-do-not-use-5fd67915fadb26d49934abdcafb9c37467ce2949.tar.bz2
drakx-backup-do-not-use-5fd67915fadb26d49934abdcafb9c37467ce2949.tar.xz
drakx-backup-do-not-use-5fd67915fadb26d49934abdcafb9c37467ce2949.zip
Only use VBE parsing code on x86 and x86_64.
Diffstat (limited to 'tools/ddcprobe/Makefile')
-rw-r--r--tools/ddcprobe/Makefile19
1 files changed, 18 insertions, 1 deletions
diff --git a/tools/ddcprobe/Makefile b/tools/ddcprobe/Makefile
index 0b96f3c44..04578ea57 100644
--- a/tools/ddcprobe/Makefile
+++ b/tools/ddcprobe/Makefile
@@ -1,9 +1,26 @@
+ARCH := $(patsubst i%86,i386,$(shell uname -m))
+ARCH := $(patsubst sparc%,sparc,$(ARCH))
+ARCH := $(patsubst amd64,x86_64,$(ARCH))
+
+ifeq (i386,$(ARCH))
+HAS_VBE = y
+endif
+ifeq (x86_64,$(ARCH))
+HAS_VBE = y
+endif
+
CC = gcc
CFLAGS = -O -Wall # -g -DDEBUG
INCS = -I.
-LDFLAGS = -lm -L. -lint10 -lx86emu
+LDFLAGS = -lm
+ifeq (y,$(HAS_VBE))
+LDFLAGS += -L. -lint10 -lx86emu
OBJS = ddcxinfos.o vesamode.o vbe.o
LIBS = libint10.a libx86emu.a
+endif
+ifeq (,$(OBJS))
+OBJS = not_handled.o
+endif
TARGETS = ddcxinfos
all: $(TARGETS)