diff options
author | Gwenolé Beauchesne <gbeauchesne@mandriva.org> | 2004-08-25 05:49:03 +0000 |
---|---|---|
committer | Gwenolé Beauchesne <gbeauchesne@mandriva.org> | 2004-08-25 05:49:03 +0000 |
commit | b9e6ef4447684d5786c51ea7b447a6b874f67a9b (patch) | |
tree | 125e1eeb01eb19fea42476d4efc2425843781aec /tools/ddcprobe/Makefile | |
parent | cec9fd9a69aa91a6f3de3becfdfe7eb8eeff7e3a (diff) | |
download | drakx-backup-do-not-use-b9e6ef4447684d5786c51ea7b447a6b874f67a9b.tar drakx-backup-do-not-use-b9e6ef4447684d5786c51ea7b447a6b874f67a9b.tar.gz drakx-backup-do-not-use-b9e6ef4447684d5786c51ea7b447a6b874f67a9b.tar.bz2 drakx-backup-do-not-use-b9e6ef4447684d5786c51ea7b447a6b874f67a9b.tar.xz drakx-backup-do-not-use-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/Makefile | 41 |
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 |