From 5fd67915fadb26d49934abdcafb9c37467ce2949 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwenol=C3=A9=20Beauchesne?= Date: Wed, 25 Aug 2004 08:51:17 +0000 Subject: Only use VBE parsing code on x86 and x86_64. --- tools/ddcprobe/Makefile | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'tools/ddcprobe') 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) -- cgit v1.2.1