blob: 59143f435f355c93b7ff1a09a649c005241efa53 (
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
|
XCOMM $XConsortium: Imakefile /main/14 1996/10/27 11:03:56 kaleb $
XCOMM $XFree86: xc/programs/Xserver/hw/xfree86/SuperProbe/Imakefile,v 3.35 2000/02/12 20:45:13 dawes Exp $
#if (defined(SVR3Architecture) || defined(SVR4Architecture) || defined(SCOArchitecture)) && !defined(DguxArchitecture)
# define OSModule OS_SYSV
#endif
#if defined(MetroLink) && defined(NCR)
#undef NCR
#endif
#if defined(SVR4Architecture)
# include <Server.tmpl>
#endif
#if defined(DguxArchitecture)
# define OSModule OS_DGUX
#endif
#if defined(QNXArchitecture)
# define OSModule OS_QNX
CCOPTIONS = -T1
#endif
#if defined(QNX4Architecture)
# define OSModule OS_QNX4
CCOPTIONS = -T1
#endif
#if defined(NTOArchitecture)
# define OSModule OS_NTO
#endif
#if defined(SVR4Architecture) && defined(SunArchitecture) && !HasGcc
OS_IO_SRC = SolX86IO.s
OS_IO_OBJ = SolX86IO.o
#endif
#if defined(LinuxArchitecture)
# define OSModule OS_Linux
#if defined(AlphaArchitecture) && !UseElfFormat /* fix/replacement for broken libc-0.43 io.c */
OS_IO_SRC = glibcAxpIo.c
OS_IO_OBJ = glibcAxpIo.o
#endif
#endif
#if defined(LynxOSArchitecture)
# define OSModule OS_LynxOS
#endif
#if defined(i386BsdArchitecture)
# define OSModule OS_386BSD
#endif
#if defined(AlphaBsdArchitecture)
# define OSModule OS_386BSD
SYS_LIBRARIES = -lio
#endif
#if defined(MinixArchitecture)
# define OSModule OS_Minix
#endif
#if defined(i386MachArchitecture)
#if defined(GNUMachArchitecture)
SYS_LIBRARIES =
# define OSModule OS_GNUmach
#else
SYS_LIBRARIES = /usr/lib/libmach.a
# define OSModule OS_Mach
#endif
#endif
#if defined(cygwinArchitecture)
#define OSModule OS_cygwin
#endif
#if defined(OS2Architecture)
# define OSModule OS_Os2
CCOPTIONS = -Zmts
#endif
#if defined(OpenBSDArchitecture) || defined(NetBSDArchitecture) \
&& ((OSMajorVersion == 1 && OSMinorVersion >= 1) || OSMajorVersion >= 2)
IOPERMDEFINES = -DUSE_I386_IOPL
SYS_LIBRARIES = -li386
#endif
OS_SRC = OSModule.c $(OS_IO_SRC)
OS_OBJ = OSModule.o $(OS_IO_OBJ)
BASE_SRC = MDA.c Herc.c CGA.c VGA.c RamDac.c MemProbe.c PCI.c
BASE_OBJ = MDA.o Herc.o CGA.o VGA.o RamDac.o MemProbe.o PCI.o
SVGA_SRC = Tseng.c WD.c ChipsTech.c Video7.c Genoa.c Trident.c Oak.c \
Cirrus.c Ahead.c ATI.c S3.c AL.c Yamaha.c NCR.c MX.c \
RealTek.c Primus.c Compaq.c HMC.c UMC.c Weitek.c SiS.c \
ARK.c Alliance.c Matrox.c SigmaDesigns.c Intergraphics.c \
Epson.c Rendition.c
SVGA_OBJ = Tseng.o WD.o ChipsTech.o Video7.o Genoa.o Trident.o Oak.o \
Cirrus.o Ahead.o ATI.o S3.o AL.o Yamaha.o NCR.o MX.o \
RealTek.o Primus.o Compaq.o HMC.o UMC.o Weitek.o SiS.o \
ARK.o Alliance.o Matrox.o SigmaDesigns.o Intergraphics.o \
Epson.o Rendition.o
COPROC_SRC = 8514.c ATIMach.c I128.c GLINT.c
COPROC_OBJ = 8514.o ATIMach.o I128.o GLINT.o
SRCS = Main.c $(SVGA_SRC) $(COPROC_SRC) $(BASE_SRC) Print.c Utils.c $(OS_SRC)
OBJS = Main.o $(SVGA_OBJ) $(COPROC_OBJ) $(BASE_OBJ) Print.o Utils.o $(OS_OBJ)
#ifdef GccGasOption
GASDEFINES = GccGasOption
#endif
CONSDEFINES = XFree86ConsoleDefines
#ifdef OS2Architecture
SPECIALS= sprobe.def
#endif
DEFINES = $(GASDEFINES) $(CONSDEFINES) $(IOPERMDEFINES)
PROG = SuperProbe
AllTarget(ProgramTargetName($(PROG)))
NormalProgramTarget($(PROG),$(OBJS),NullParameter,$(SPECIALS),NullParameter)
InstallProgram($(PROG),$(BINDIR))
InstallManPage($(PROG),$(MANDIR))
#if defined(LinuxArchitecture) && defined(AlphaArchitecture) && !UseElfFormat
LinkSourceFile(glibcAxpIo.c,../common_hw)
#endif
DependTarget()
|