summaryrefslogtreecommitdiff
path: root/xc/programs/Xserver/hw/xfree86/os-support/Imakefile
blob: c42f5b2b76b4533d6caf25dbb4fe72ed6190abc6 (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
XCOMM $XFree86: xc/programs/Xserver/hw/xfree86/os-support/Imakefile,v 3.37 2000/02/22 01:02:34 mvojkovi Exp $





XCOMM $XConsortium: Imakefile /main/9 1996/10/25 15:38:46 kaleb $

#include <Server.tmpl>

#define IHaveSubdirs

#if defined(i386Architecture) || defined(ia64Architecture) || \
	(defined(LinuxArchitecture) && defined(AlphaArchitecture)) || \
	(defined(FreeBSDArchitecture) && defined(AlphaArchitecture)) || \
	defined(PpcArchitecture) || defined(SparcArchitecture)
BUS_SUBDIR = bus
#endif

#if defined(QNX4Architecture)
OS_SUBDIR = qnx4
#endif

#if defined(NTOArchitecture)
OS_SUBDIR = nto
#endif

#if defined(ArcArchitecture)
OS_SUBDIR = bsd
#endif

#if defined(SVR3Architecture) 
# if defined(i386ScoArchitecture)
OS_SUBDIR = sco
# else
OS_SUBDIR = sysv
# endif
#endif

#if defined(SVR4Architecture) 
# if defined(SunArchitecture)
#  if OSMinorVersion < 8
OS_SUBDIR = solx86
#  else
OS_SUBDIR = sol8_x86
#  endif
# elif defined(PmaxOSArchitecture)
OS_SUBDIR = pmax
# elif defined(DguxArchitecture)
OS_SUBDIR = dgux
# else
OS_SUBDIR = sysv
# endif
#endif

#if defined(LinuxArchitecture)
OS_SUBDIR = linux
#endif

#if defined(LynxOSArchitecture)
OS_SUBDIR = lynxos
#endif

#if defined(i386BsdArchitecture) || defined(AlphaBsdArchitecture)
# if defined(BSD386Architecture)
OS_SUBDIR = bsdi
# else
OS_SUBDIR = bsd
# endif
#endif

#if defined(NetBSDArchitecture) && defined(Arm32Architecture)
OS_SUBDIR = bsd
#endif

#if defined(i386MachArchitecture) || defined(OsfArchitecture)
#if defined(GNUMachArchitecture)
OS_SUBDIR = hurd
#else
OS_SUBDIR = mach
#endif
#endif

#if defined(AmoebaArchitecture)
OS_SUBDIR = amoeba
#endif

#if defined(MinixArchitecture)
OS_SUBDIR = minix
#endif

#if defined(OS2Architecture)
OS_SUBDIR = os2
#endif

#if defined(i386Sco325Architecture)
OS_SUBDIR = sco
#endif

#if BuildXF86DRI && !DoLoadableServer
DRM_SRC = $(OS_SUBDIR)/drm/?*.c
DRM_OBJ = $(OS_SUBDIR)/drm/?*.o
DRM_DONES = $(OS_SUBDIR)/drm/DONE
#endif

SUBDIRS = $(OS_SUBDIR) $(BUS_SUBDIR) misc vbe

SRCS = $(OS_SUBDIR)/?*.c $(BUS_SUBDIR)/?*.c misc/?*.c vbe/?*.c $(DRM_SRC)
OBJS = $(OS_SUBDIR)/?*.o $(BUS_SUBDIR)/?*.o misc/?*.o vbe/?*.o $(DRM_OBJ)

DONES = $(OS_SUBDIR)/DONE $(BUS_SUBDIR)/DONE misc/DONE vbe/DONE $(DRM_DONES)

#if HasParallelMake
MakeMutex($(SUBDIRS) $(OBJS) $(DONES))
#endif

#if HasGnuMake || HasBsdMake 
$(DONES): $(SUBDIRS)
#endif

NormalDepLibraryTarget(xf86_os,$(SUBDIRS) $(DONES),$(OBJS))

#if !HasSnprintf
LinkSourceFile(snprintf.c,$(LIBSRC)/misc)
#endif

ForceSubdirs($(SUBDIRS))

DependSubdirs($(SUBDIRS))

InstallDriverSDKNonExecFile(xf86_OSproc.h,$(DRIVERSDKINCLUDEDIR))
InstallDriverSDKNonExecFile(xf86_ansic.h,$(DRIVERSDKINCLUDEDIR))
InstallDriverSDKNonExecFile(xf86_libc.h,$(DRIVERSDKINCLUDEDIR))
InstallDriverSDKNonExecFile(xf86drm.h,$(DRIVERSDKINCLUDEDIR))