summaryrefslogtreecommitdiffstats
path: root/tools/ddcprobe/Makefile
diff options
context:
space:
mode:
authorGwenolé Beauchesne <gbeauchesne@mandriva.org>2004-08-25 05:49:03 +0000
committerGwenolé Beauchesne <gbeauchesne@mandriva.org>2004-08-25 05:49:03 +0000
commitb9e6ef4447684d5786c51ea7b447a6b874f67a9b (patch)
tree125e1eeb01eb19fea42476d4efc2425843781aec /tools/ddcprobe/Makefile
parentcec9fd9a69aa91a6f3de3becfdfe7eb8eeff7e3a (diff)
downloaddrakx-b9e6ef4447684d5786c51ea7b447a6b874f67a9b.tar
drakx-b9e6ef4447684d5786c51ea7b447a6b874f67a9b.tar.gz
drakx-b9e6ef4447684d5786c51ea7b447a6b874f67a9b.tar.bz2
drakx-b9e6ef4447684d5786c51ea7b447a6b874f67a9b.tar.xz
drakx-b9e6ef4447684d5786c51ea7b447a6b874f67a9b.zip
Extensive rewrite and cleanups to use the new int10 interface. Plus add
some 64-bit fixes and a last-resort means to get VBE/EDID information from special -BOOT kernel during early boot.
Diffstat (limited to 'tools/ddcprobe/Makefile')
-rw-r--r--tools/ddcprobe/Makefile41
1 files changed, 19 insertions, 22 deletions
diff --git a/tools/ddcprobe/Makefile b/tools/ddcprobe/Makefile
index bcbf1464d..0b96f3c44 100644
--- a/tools/ddcprobe/Makefile
+++ b/tools/ddcprobe/Makefile
@@ -1,29 +1,26 @@
-CFLAGS=-Wall -O # -g -DDEBUG
-LDFLAGS = -lm
-TARGETS=ddcxinfos
+CC = gcc
+CFLAGS = -O -Wall # -g -DDEBUG
+INCS = -I.
+LDFLAGS = -lm -L. -lint10 -lx86emu
+OBJS = ddcxinfos.o vesamode.o vbe.o
+LIBS = libint10.a libx86emu.a
+TARGETS = ddcxinfos
-ARCH := $(patsubst i%86,i386,$(shell uname -m))
-ARCH := $(patsubst sparc%,sparc,$(ARCH))
+all: $(TARGETS)
-ifeq (i386,$(ARCH))
+ddcxinfos: $(OBJS) $(LIBS)
+ $(CC) -o $@ $(OBJS) $(CFLAGS) $(LDFLAGS)
-ddcxinfos: lrmi.o vesamode.o vbe.o ddcxinfos.o
+libx86emu.a:
+ $(MAKE) -C x86emu
-libvbe.a: lrmi.o vesamode.o vbe.o
- $(AR) cru $@ $^
+libint10.a: libx86emu.a
+ $(MAKE) -C int10
-#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 $@ $<
-endif
+%.o: %.c
+ $(CC) $(CFLAGS) $(INCS) -c $< -o $@
clean:
- $(RM) $(TARGETS) *.o core
+ $(MAKE) -C int10 clean
+ $(MAKE) -C x86emu clean
+ $(RM) $(TARGETS) $(LIBS) *.o core