aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/hw/xfree86/os-support/linux/Imakefile
blob: 8ef246842b11e3a70f5d2fa698ee250d2621677a (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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
XCOMM $XConsortium: Imakefile /main/10 1996/10/19 18:06:19 kaleb $
XCOMM $XFree86: xc/programs/Xserver/hw/xfree86/os-support/linux/Imakefile,v 3.45 2002/09/16 18:06:13 eich Exp $

#include <Server.tmpl>

#if BuildXInputExt
# if JoystickSupport
	JOYSTICK_SRC = lnx_jstk.c
# endif
# if DoLoadableServer
SHARED_CFLAGS = PositionIndependentCFlags
# else
#  if JoystickSupport
	JOYSTICK_OBJ = lnx_jstk.o
#  endif
# endif
#endif

#if HasMTRRSupport
MTRRDEFINES = -DHAS_MTRR_SUPPORT
#endif

DRI_SRC = sigio.c
DRI_OBJ = sigio.o

MOUSESRC = lnx_mouse.c
MOUSEOBJ = lnx_mouse.o

KBDSRC = lnx_kbd.c lnx_KbdMap.c at_scancode.c
KBDOBJ = lnx_kbd.o lnx_KbdMap.o at_scancode.o 

#if defined(i386Architecture) || defined(ia64Architecture) || defined(AMD64Architecture)
RES_SRCS=stdResource.c
RES_OBJS=stdResource.o
#else
RES_SRCS=lnxResource.c
RES_OBJS=lnxResource.o
#endif

#if defined(AlphaArchitecture)
PLATFORM_SRC=lnx_ev56.c xf86Axp.c lnx_axp.c
PLATFORM_OBJ=lnx_ev56.o xf86Axp.o lnx_axp.o
#endif
#if defined (ia64Architecture)
PLATFORM_SRC=ia64Pci.c lnx_ia64.c
PLATFORM_OBJ=ia64Pci.o lnx_ia64.o
PLATFORM_DEFINES=-DOS_PROBE_PCI_CHIPSET=lnxProbePciChipset
#endif

#if DoOSFontRestore
FONTSRC=lnx_font.c
FONTOBJ=lnx_font.o
# ifndef FontRestoreCheckOsVersion
#  define FontRestoreCheckOsVersion YES
# endif
FONT_DEFINES=-DDO_OS_FONTRESTORE -DCHECK_OS_VERSION=FontRestoreCheckOsVersion
#endif

SRCS = lnx_init.c lnx_video.c lnx_io.c libc_wrapper.c bios_mmap.c \
       VTsw_usl.c std_kbdEv.c posix_tty.c lnx_acpi.c $(MOUSESRC) \
       lnx_pci.c vidmem.c lnx_apm.c $(JOYSTICK_SRC) $(DRI_SRC) $(RES_SRCS) \
       $(PLATFORM_SRC) lnx_kmod.c lnx_agp.c $(FONTSRC) $(KBDSRC) /*wcHelper.c*/

OBJS = lnx_init.o lnx_video.o lnx_io.o libc_wrapper.o bios_mmap.o \
       VTsw_usl.o std_kbdEv.o posix_tty.o lnx_acpi.o $(MOUSEOBJ) \
       lnx_pci.o vidmem.o lnx_apm.o $(JOYSTICK_OBJ) $(DRI_OBJ) $(RES_OBJS) \
       $(PLATFORM_OBJ) lnx_kmod.o lnx_agp.o $(FONTOBJ) $(KBDOBJ) /*wcHelper.o*/

INCLUDES = -I$(XF86COMSRC) -I$(XF86OSSRC) -I. -I$(SERVERSRC)/include \
           -I$(XINCLUDESRC) -I$(EXTINCSRC) -I$(XF86OSSRC)/shared \
	   -I$(XF86OSSRC)/bus -I$(DRMSRCDIR)/shared-core

RESDEFINES = -DUSESTDRES

DEFINES = $(MTRRDEFINES) $(RESDEFINES) $(PLATFORM_DEFINES) $(FONT_DEFINES) -DHAVE_SYSV_IPC

#if defined(AlphaArchitecture)
SpecialObjectRule(lnx_ev56.o, lnx_ev56.c, -mcpu=ev56)
#endif

#if DoOSFontRestore
SpecialObjectRule(VTsw_usl.o, VTsw_usl.c, -DOSHEADER=\"lnx.h\" -DOSSWITCHAWAY="lnx_switchaway()")
#endif

SubdirLibraryRule($(OBJS))
NormalLibraryObjectRule()

#if BuildXF86DRI
DRISUBDIR = drm
#endif
TESTVAR = XF86INT10_BUILD

#if XF86INT10_BUILD > X86EMU_GENERIC
INT10SUBDIR = int10
#endif 

#if BuildXF86DRI || (XF86INT10_BUILD > X86EMU_GENERIC)
#define IHaveSubdirs
SUBDIRS = $(DRISUBDIR) $(INT10SUBDIR)
#endif

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

#if BuildXInputExt
# if DoLoadableServer
#  if JoystickSupport
AllTarget(lnx_jstk.o)
#if 0
InstallDynamicModule(lnx_jstk.o,$(MODULEDIR),input)
#endif
#  endif
# endif
#endif

LinkSourceFile(bios_mmap.c,../shared)
LinkSourceFile(std_kbdEv.c,../shared)
LinkSourceFile(at_scancode.c,../shared)
LinkSourceFile(posix_tty.c,../shared)
LinkSourceFile(libc_wrapper.c,../shared)
LinkSourceFile(vidmem.c,../shared)
LinkSourceFile(VTsw_usl.c,../shared)
LinkSourceFile(kmod_noop.c,../shared)

LinkSourceFile($(DRI_SRC),../shared)

#if defined(i386Architecture) || defined(ia64Architecture) || defined (AMD64Architecture)
LinkSourceFile(stdResource.c,../shared)
#endif
#if defined(AlphaArchitecture)
LinkSourceFile(xf86Axp.c,../shared)
#endif
#if defined(ia64Architecture)
LinkSourceFile(ia64Pci.c,../shared)
#endif
DependTarget()

#if 0
InstallDriverSDKDynamicModule(lnx_jstk.o,$(DRIVERSDKMODULEDIR))
#endif