summaryrefslogtreecommitdiffstats
path: root/tools/ddcprobe/Makefile
diff options
context:
space:
mode:
authorGwenolé Beauchesne <gbeauchesne@mandriva.org>2003-10-23 16:55:43 +0000
committerGwenolé Beauchesne <gbeauchesne@mandriva.org>2003-10-23 16:55:43 +0000
commitc5b81552b9abf8ef78056bd1db685aa7d9362620 (patch)
tree4f8391755177717abde3876e2c77c8f08e383032 /tools/ddcprobe/Makefile
parenta8f5fcc9b9597beb0672f54301fcf59ee51c65c0 (diff)
downloaddrakx-c5b81552b9abf8ef78056bd1db685aa7d9362620.tar
drakx-c5b81552b9abf8ef78056bd1db685aa7d9362620.tar.gz
drakx-c5b81552b9abf8ef78056bd1db685aa7d9362620.tar.bz2
drakx-c5b81552b9abf8ef78056bd1db685aa7d9362620.tar.xz
drakx-c5b81552b9abf8ef78056bd1db685aa7d9362620.zip
Remove unreachable code. Add support for AMD64 through parsing of
/proc/BOOT/{edid,vbe} blocks obtained early during the boot process. However, this is a -BOOT kernel specific since there is no way to dynamically fetch updated info at runtime. i.e. terrific HACKage!
Diffstat (limited to 'tools/ddcprobe/Makefile')
-rw-r--r--tools/ddcprobe/Makefile27
1 files changed, 10 insertions, 17 deletions
diff --git a/tools/ddcprobe/Makefile b/tools/ddcprobe/Makefile
index bcbf1464d..83f3e3df5 100644
--- a/tools/ddcprobe/Makefile
+++ b/tools/ddcprobe/Makefile
@@ -6,24 +6,17 @@ 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
- $(AR) cru $@ $^
-
-#install: $(DESTDIR)/usr/include/vbe.h $(DESTDIR)/usr/lib/libvbe.a
-
-$(DESTDIR)/usr/include/vbe.h:
- install -m 644 vbe.h $(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 $@ $<
+OBJS = ddcxinfos.o vesamode.o vbe.o lrmi.o
+endif
+ifeq (x86_64,$(ARCH))
+OBJS = ddcxinfos.o vesamode.o vbe.o
endif
+ifeq (,$(OBJS))
+OBJS = not_handled.o
+endif
+
+ddcxinfos: $(OBJS)
+ $(CC) -o $@ $(OBJS) $(CFLAGS) $(LDFLAGS)
clean:
$(RM) $(TARGETS) *.o core