aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/hw/xfree86/os-support/linux/int10/Imakefile
blob: 6a23e75e51600c177ab6e8ab737e220ae1d117ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
XCOMM $XFree86: xc/programs/Xserver/hw/xfree86/os-support/linux/int10/Imakefile,v 1.15 2003/06/12 14:12:36 eich Exp $

#define IHaveModules

#include <Server.tmpl>

#define IHaveSubdirs


#if defined(XF86INT10_BUILD) && \
       ( !defined(DoLoadableServer) || !defined(Int10SubLibs))
#define DoSingleLib
# if XF86INT10_BUILD == X86VM
EXPOBJS = vm86/helper_exec.o  vm86/linux_vm86.o  vm86/xf86int10.o
SUBDIRS = vm86
# elif XF86INT10_BUILD == X86EMU_OS
EXPOBJS = x86emu/x86emu.o  x86emu/xf86int10.o x86emu/helper_exec.o \
	x86emu/xf86x86emu.o
SUBDIRS = x86emu
# endif
#else
SUBDIRS = vm86 x86emu
LNXDEF = -DDoSubModules
#endif


#ifdef IHaveSubdirs
MakeSubdirs($(SUBDIRS))
DependSubdirs($(SUBDIRS))
#endif

SRCS = pci.c xf86int10module.c helper_mem.c linux.c
OBJS = pci.o xf86int10module.o helper_mem.o linux.o


LinkSourceFile(helper_mem.c,$(XF86SRC)/int10)
LinkSourceFile(pci.c,$(XF86SRC)/int10)
LinkSourceFile(xf86int10module.c,$(XF86SRC)/int10)


INCLUDES = -I. -I$(XF86COMSRC) -I$(XF86SRC)/int10 \
           -I$(XF86OSSRC) \
           -I$(SERVERSRC)/include -I$(XINCLUDESRC) -I$(X86EMUINCLUDES)

DEFINES=-DHAVE_SYSV_IPC $(X86EMUDEFINES) $(EXTRADEFINES)

#if defined(i386Architecture) || defined (AMD64Architecture)
EXTRADEFINES=-D_PC
#endif


SpecialObjectRule(linux.o, linux.c, -DHAVE_SYSV_IPC $(LNXDEF))


#if defined(XF86INT10_BUILD) && XF86INT10_BUILD > X86EMU_GENERIC

ModuleObjectRule()

#if HasParallelMake && defined (DoSingleLib)
MakeMutex($(SUBDIRS) $(EXPOBJS) $(DONES))
#endif  

LibraryModuleTarget(int10, $(OBJS)  $(EXPOBJS))

InstallLibraryModule(int10,$(MODULEDIR),linux)

all::
	@(set -x; cd ../..; \
	RemoveFile(LibraryTargetName(int10)); \
	$(LN) linux/int10/LibraryTargetName(int10) . )

InstallDriverSDKLibraryModule(int10,$(DRIVERSDKMODULEDIR),.)

#endif

DependTarget()