1
XCOMM $XFree86: xc/programs/Xserver/hw/xfree86/os-support/os2/int10/Imakefile,v 1.1 2000/04/05 18:13:55 dawes Exp $
7
SRCS1 = pci.c xf86int10module.c helper_exec.c helper_mem.c xf86int10.c
8
OBJS1 = pci.o xf86int10module.o helper_exec.o helper_mem.o xf86int10.o
10
LinkSourceFile(helper_mem.c,$(XF86SRC)/int10)
11
LinkSourceFile(helper_exec.c,$(XF86SRC)/int10)
12
LinkSourceFile(xf86int10.c,$(XF86SRC)/int10)
13
LinkSourceFile(pci.c,$(XF86SRC)/int10)
14
LinkSourceFile(xf86int10module.c,$(XF86SRC)/int10)
15
LinkSourceFile(xf86x86emu.c,$(XF86SRC)/int10)
16
LinkSourceFile(generic.c,$(XF86SRC)/int10)
18
INCLUDES = -I. -I$(XF86COMSRC) -I$(XF86SRC)/int10 \
20
-I$(SERVERSRC)/include -I$(XINCLUDESRC)
22
DEFINES=-DHAVE_SYSV_IPC
27
#undef XF86INT10_BUILD
28
#define XF86INT10_BUILD X86EMU_GENERIC
29
#define X86EMU_LIBPATH /usr/local/lib
32
#if defined(i386Architecture)
36
/* XXX keep this temporarily for reference */
38
#if (XF86INT10_BUILD == X86EMU_GENERIC)
40
SRCS = $(SRCS1) xf86x86emu.c generic.c
41
OBJS = $(OBJS1) xf86x86emu.o generic.o x86emu.o
42
SpecialObjectRule(pci.o, pci.c, -D_X86EMU)
43
SpecialObjectRule(helper_exec.o, helper_exec.c, -D_X86EMU)
44
SpecialObjectRule(xf86int10.o, xf86int10.c, -D_X86EMU -DSHOW_ALL_DEVICES)
45
SpecialObjectRule(generic.o, generic.c, -D_X86EMU)
46
SpecialObjectRule(xf86x86emu.o, xf86x86emu.c, -D_X86EMU)
47
BuildObjectFromLibraryWithPath(X86EMU_LIBPATH,x86emu,x86emu)
51
#if defined(XF86INT10_BUILD) && (XF86INT10_BUILD == X86VM)
53
SRCS = $(SRCS1) linux.c
54
OBJS = $(OBJS1) linux.o
55
SpecialObjectRule(pci.o, pci.c, -D_VM86_LINUX)
56
SpecialObjectRule(helper_exec.o, helper_exec.c, -D_VM86_LINUX)
57
SpecialObjectRule(xf86int10.o, xf86int10.c, -D_VM86_LINUX -DSHOW_ALL_DEVICES)
58
SpecialObjectRule(linux.o, linux.c, -D_VM86_LINUX -DHAVE_SYSV_IPC)
60
#elif (XF86INT10_BUILD == X86EMU_OS)
62
SpecialObjectRule(pci.o, pci.c, -D_X86EMU)
63
SpecialObjectRule(helper_exec.o, helper_exec.c, -D_X86EMU)
64
SpecialObjectRule(xf86int10.o, xf86int10.c, -D_X86EMU -DSHOW_ALL_DEVICES)
65
SpecialObjectRule(linux.o, linux.c, -D_X86EMU -DHAVE_SYSV_IPC)
67
X86TOPDIR = $(TOP)/extras/x86emu
68
X86SRCDIR = $(X86TOPDIR)/src/x86emu
69
X86EMUINCLUDES = -I$(X86TOPDIR)/include -I$(X86SRCDIR)
71
# if !defined(X86EMU_LIBPATH)
72
X86EMUSRCS = debug.c decode.c fpu.c ops.c ops2.c prim_ops.c sys.c
73
X86EMUOBJS = debug.o decode.o fpu.o ops.o ops2.o prim_ops.o sys.o
75
LinkSourceFile(debug.c,$(X86SRCDIR))
76
LinkSourceFile(decode.c,$(X86SRCDIR))
77
LinkSourceFile(fpu.c,$(X86SRCDIR))
78
LinkSourceFile(ops.c,$(X86SRCDIR))
79
LinkSourceFile(ops2.c,$(X86SRCDIR))
80
LinkSourceFile(prim_ops.c,$(X86SRCDIR))
81
LinkSourceFile(sys.c,$(X86SRCDIR))
83
BuildObjectFromLibraryWithPath(X86EMU_LIBPATH,x86emu,x86emu)
87
SRCS = $(SRCS1) xf86x86emu.c linux.c $(X86EMUSRCS)
88
OBJS = $(OBJS1) xf86x86emu.o linux.o $(X86EMUOBJS)
92
#if defined(XF86INT10_BUILD) && XF86INT10_BUILD > X86EMU_GENERIC
94
LibraryModuleTarget(int10, $(OBJS))
96
InstallLibraryModule(int10,$(MODULEDIR),linux)
100
RemoveFile(LibraryTargetName(int10)); \
101
$(LN) linux/int10/LibraryTargetName(int10) . )
103
InstallDriverSDKLibraryModule(int10,$(DRIVERSDKMODULEDIR),.)
105
InstallDriverSDKNonExecFile(../../int10/xf86int10.h,$(DRIVERSDKINCLUDEDIR))