summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>1999-11-24 16:45:10 +0000
committerPascal Rigaux <pixel@mandriva.com>1999-11-24 16:45:10 +0000
commit96a44ec69287273eaa346a8ebc3dafea651a4d1e (patch)
tree12a8a195e6599ef0b2db091bf8e82aa5995220ba /tools
parent851ca8f056135ff7edd9c19705ba2a4870887775 (diff)
downloaddrakx-96a44ec69287273eaa346a8ebc3dafea651a4d1e.tar
drakx-96a44ec69287273eaa346a8ebc3dafea651a4d1e.tar.gz
drakx-96a44ec69287273eaa346a8ebc3dafea651a4d1e.tar.bz2
drakx-96a44ec69287273eaa346a8ebc3dafea651a4d1e.tar.xz
drakx-96a44ec69287273eaa346a8ebc3dafea651a4d1e.zip
no_comment
Diffstat (limited to 'tools')
-rw-r--r--tools/Makefile2
-rw-r--r--tools/ddcprobe/Makefile10
2 files changed, 11 insertions, 1 deletions
diff --git a/tools/Makefile b/tools/Makefile
index c6c01dca0..c8da121e6 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -30,4 +30,4 @@ $(BASE)/hdlist: $(RPMS)
./genhdlist $(ROOTDEST)
clean:
- rm -rf *~ gendepslist rpm2header
+ rm -rf *~ gendepslist rpm2header ddcprobe/ddcxinfos */*.o
diff --git a/tools/ddcprobe/Makefile b/tools/ddcprobe/Makefile
index e2bf84011..07ba43786 100644
--- a/tools/ddcprobe/Makefile
+++ b/tools/ddcprobe/Makefile
@@ -1,6 +1,11 @@
CFLAGS=-Wall -O # -g -DDEBUG
TARGETS=ddcxinfos
+ARCH := $(patsubst i%86,i386,$(shell uname -m))
+ARCH := $(patsubst sparc%,sparc,$(ARCH))
+
+ifeq (i386,$(ARCH))
+
ddcxinfos: lrmi.o vesamode.o vbe.o ddcxinfos.o
libvbe.a: lrmi.o vesamode.o vbe.o
@@ -14,5 +19,10 @@ $(DESTDIR)/usr/include/vbe.h:
$(DESTDIR)/usr/lib/libvbe.a:
install -m 644 libvbe.a $(DESTDIR)/usr/lib/libvbe.a
+else
+ddcxinfos: not_handled.c
+ gcc -o $@ $<
+endif
+
clean:
$(RM) $(TARGETS) *.o core