blob: 8219d186d8923976f67ce3b0fb70a2bd65d1e882 (
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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
|
# $XFree86: xc/programs/Xserver/hw/xfree86/SuperProbe/Makefile.std,v 3.14tsi Exp $
# $XConsortium: Makefile.std /main/8 1996/10/27 11:04:00 kaleb $
#
# Installation parameters
#
BINDIR = /usr/local/bin
MANDIR = /usr/share/man/man1
OWNER = root
GROUP = bin
MODE = 4755
#
# OS-specific library
#
# SVR3 & SVR4
#OS_DEF = -DSYSV
#OS_DEF = -DSYSV -DSCO
#OS_DEF = -DSYSV -DESIX
#OS_DEF = -DSVR4 -Dsun
OS_DEF = -DSYSV -DSVR4
OS_SRC = OS_SYSV.c
OS_OBJ = OS_SYSV.o
# For Solarix x86 with ProWorks compiler only
#IO_SRC = SolX86IO.s
#IO_OBJ = SolX86IO.o
# Linux
#OS_DEF = -Dlinux -DGCCUSESGAS
#OS_SRC = OS_Linux.c
#OS_OBJ = OS_Linux.o
# 386BSD
#OS_DEF = -DCSRG_BASED -D__386BSD__ -DGCCUSESGAS $(CONS_DEF)
#OS_SRC = OS_386BSD.c
#OS_OBJ = OS_386BSD.o
#CONS_DEF = -DPCCONS_SUPPORT
# NetBSD
#OS_DEF = -DCSRG_BASED -D__NetBSD__ -DGCCUSESGAS $(CONS_DEF)
#OS_SRC = OS_386BSD.c
#OS_OBJ = OS_386BSD.o
#CONS_DEF = -DPCCONS_SUPPORT -DPCVT_SUPPORT
# OpenBSD
#OS_DEF = -DCSRG_BASED -D__OpenBSD__ -DGCCUSESGAS $(CONS_DEF)
#OS_SRC = OS_386BSD.c
#OS_OBJ = OS_386BSD.o
#CONS_DEF = -DPCCONS_SUPPORT -DPCVT_SUPPORT
# FreeBSD
#OS_DEF = -DCSRG_BASED -D__FreeBSD__ -DGCCUSESGAS $(CONS_DEF)
#OS_SRC = OS_386BSD.c
#OS_OBJ = OS_386BSD.o
#CONS_DEF = -DPCCONS_SUPPORT -DSYSCONS_SUPPORT -DPCVT_SUPPORT
# BSD/386
#OS_DEF = -DCSRG_BASED -D__bsdi__ -DGCCUSESGAS
#OS_SRC = OS_386BSD.c
#OS_OBJ = OS_386BSD.o
# Minix
#OS_DEF = -D_MINIX -D_POSIX_SOURCE
#OS_SRC = OS_Minix.c
#OS_OBJ = OS_Minix.o
# Mach (BSD Tree)
#OS_DEF = -DMACH386 -DGCCUSESGAS -I/usr/mach/include -I/usr/include
#OS_SRC = OS_Mach.c
#OS_OBJ = OS_Mach.o
#OS_LIB = /usr/lib/libmach.a
# Mach
#OS_DEF = -DMACH386 -DGCCUSESGAS
#OS_SRC = OS_Mach.c
#OS_OBJ = OS_Mach.o
#OS_LIB = /usr/misc/.mach/lib/libmach.a
# OS/2 with EMX
#OS_DEF = -D__EMX__ -DGCCUSESGAS
#OS_SRC = OS_Os2.c
#OS_OBJ = OS_Os2.o
#OS_LIB = -lemxio
# LynxOS
#OS_DEF =
#OS_SRC = OS_LynxOS.c
#OS_OBJ = OS_LynxOS.o
HDRS = Probe.h
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) $(IO_SRC)
OBJS = Main.o $(SVGA_OBJ) $(COPROC_OBJ) $(BASE_OBJ) Print.o \
Utils.o $(OS_OBJ) $(IO_OBJ)
LIBS = $(OS_LIB)
#PROG = SuperProbe.exe # OS/2
PROG = SuperProbe
# Options for gcc
CC = gcc
CCOPTS = -m486 -ansi -pedantic
DEBUG_OR_OPT = -g -Wall
#DEBUG_OR_OPT = -O2
# Options for ProWorks compiler on Solaris 2.x
#PROWORKSHOME = /opt/SUNWspro
#CC = $(PROWORKSHOME)/bin/cc
#AS = /usr/ccs/bin/as
#CCOPTS = -Xa
#DEBUG_OR_OPT = -g
#DEBUG_OR_OPT = -O
# Options for OS/2
#CC= gcc
#CCOPTS = -m486
#LDFLAGS = -Zexe
CFLAGS = $(CCOPTS) $(DEBUG_OR_OPT) $(OS_DEF)
#
# Assemblier -> object format rule (Solaris x86 ProWorks compiler only)
# NOTE: AS must be defined to the assemblier to be used. Currently only
# the default assemblier supplied with Solaris/ProWorks is supported
#
.s.o:
$(RM) $@
$(AS) -o $*.o $*.s
all: $(PROG)
$(PROG): $(OBJS)
$(CC) $(LDFLAGS) -o $(PROG) $(OBJS) $(LIBS)
$(OBJS): $(HDRS)
Utils.o: AsmMacros.h
Main.o: PatchLevel.h
clean:
rm -f $(OBJS)
clobber: clean
rm -f $(PROG)
install: $(PROG)
rm -f $(BINDIR)/$(PROG)
cp $(PROG) $(BINDIR)
chown $(OWNER) $(BINDIR)/$(PROG)
chgrp $(GROUP) $(BINDIR)/$(PROG)
chmod $(MODE) $(BINDIR)/$(PROG)
cp $(PROG).1 $(MANDIR)/$(PROG).1
|