summaryrefslogtreecommitdiff
path: root/hw/kdrive
diff options
context:
space:
mode:
authorEric Anholt <anholt@freebsd.org>2006-02-10 07:52:05 +0000
committerEric Anholt <anholt@freebsd.org>2006-02-10 07:52:05 +0000
commitefc3fab7f4b29f56fffd21304c64c03a48aa5b4b (patch)
treed409131a93d0f7e9742fb48d88755ca5b510be01 /hw/kdrive
parentfa3a65e33d8c893c7867ea507afc7caa1361aa9c (diff)
Make kdrive (i.e. Xephyr only) buildable on FreeBSD and probably other OSes
without linux VT switching, fbdev, and vm86 support.
Diffstat (limited to 'hw/kdrive')
-rw-r--r--hw/kdrive/linux/Makefile.am11
-rw-r--r--hw/kdrive/linux/agp.c1
-rw-r--r--hw/kdrive/src/Makefile.am9
3 files changed, 16 insertions, 5 deletions
diff --git a/hw/kdrive/linux/Makefile.am b/hw/kdrive/linux/Makefile.am
index cf3183b8f..4243a1124 100644
--- a/hw/kdrive/linux/Makefile.am
+++ b/hw/kdrive/linux/Makefile.am
@@ -13,17 +13,22 @@ if H3600_TS
TS_C = ts.c
endif
+if KDRIVE_HW
+KDRIVE_HW_SOURCES = \
+ evdev.c \
+ keyboard.c \
+ linux.c
+endif
+
liblinux_a_SOURCES = \
agp.c \
agp.h \
bus.c \
- keyboard.c \
klinux.h \
- linux.c \
mouse.c \
- evdev.c \
ms.c \
ps2.c \
+ $(KDRIVE_HW_SOURCES) \
$(TSLIB_C) \
$(TS_C)
diff --git a/hw/kdrive/linux/agp.c b/hw/kdrive/linux/agp.c
index a874c7d4b..c2ae62568 100644
--- a/hw/kdrive/linux/agp.c
+++ b/hw/kdrive/linux/agp.c
@@ -45,6 +45,7 @@ of the copyright holder.
#include <kdrive-config.h>
#endif
#include <X11/X.h>
+#include "misc.h"
#include <unistd.h>
#include <sys/types.h>
diff --git a/hw/kdrive/src/Makefile.am b/hw/kdrive/src/Makefile.am
index 192665ec2..872d29551 100644
--- a/hw/kdrive/src/Makefile.am
+++ b/hw/kdrive/src/Makefile.am
@@ -4,6 +4,12 @@ INCLUDES = \
noinst_LIBRARIES = libkdrive.a libkdrivestubs.a
+if KDRIVE_HW
+KDRIVE_HW_SOURCES = \
+ vga.c \
+ vga.h
+endif
+
libkdrive_a_SOURCES = \
fourcc.h \
kaa.c \
@@ -25,8 +31,7 @@ libkdrive_a_SOURCES = \
ktest.c \
kxv.c \
kxv.h \
- vga.c \
- vga.h \
+ $(KDRIVE_HW_SOURCES) \
$(top_srcdir)/mi/miinitext.c
libkdrivestubs_a_SOURCES = \