summaryrefslogtreecommitdiff
path: root/xc/programs/Xserver/hw/ibm/common/Imakefile
blob: 2f58696b132efd01329f329e154658d4274b18db (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
XCOMM $XConsortium$
#include <Server.tmpl>

SRCS =		ibmColor.c \
		ibmInit.c \
		ibmIO.c \
		ibmKeybd.c \
		ibmMouse.c \
		ibmQuery.c \
		ibmScreen.c \
		ibmSave.c \
		ibmUtils.c

LIBOBJS =	ibmColor.o\
		ibmInit.o\
		ibmIO.o \
		ibmScreen.o \
		ibmKeybd.o \
		ibmMouse.o \
		ibmQuery.o \
		ibmSave.o \
		ibmUtils.o

OTHROBJS =

IMMEDIATE_OBJS = $(OTHROBJS) $(LIBOBJS)

INFOOBJS =	ibmDate.o

OBJS =		$(IMMEDIATE_OBJS) $(INFOOBJS)

#define	ListCreate(name)\
SCREENS0= name
#define	ListCreateEmpty()\
SCREENS0=
#define	ListAdd(last,new,name)\
SCREENS/**/new= $(SCREENS/**/last) name
#define	ListAddEmpty(last,new)\
SCREENS/**/new= $(SCREENS/**/last)


#if ibmInclude8514
ListCreate(-DIBM_8514)
#else
ListCreateEmpty()
#endif
#if ibmIncludeADAM
ListCreate(-DIBM_ADAM)
#else
ListCreateEmpty()
#endif
#if ibmIncludeCFBLANNO
ListAdd(0,1,-DIBM_CFBLANNO)
#else
ListAddEmpty(0,1)
#endif
#if ibmIncludeMFBLANNO
ListAdd(1,2,-DIBM_MFBLANNO)
#else
ListAddEmpty(1,2)
#endif
#if ibmIncludeAPA16
ListAdd(2,3,-DIBM_APA16)
#else
ListAddEmpty(2,3)
#endif
#if ibmIncludeEGA
ListAdd(3,4,-DIBM_EGA)
#else
ListAddEmpty(3,4)
#endif
#if ibmIncludePED
ListAdd(4,5,-DIBM_PED)
#else
ListAddEmpty(4,5)
#endif
#if ibmIncludeVGA
ListAdd(5,6,-DIBM_VGA)
#else
ListAddEmpty(5,6)
#endif
#if ibmIncludeSKYWAY
ListAdd(6,7,-DIBM_SKYWAY)
#else
ListAddEmpty(6,7)
#endif
#if ibmIncludeDSS
ListAdd(7,8,-DIBM_DSS)
#else
ListAddEmpty(7,8)
#endif
#if ibmIncludeEXPWY
ListAdd(8,9,-DIBM_EXPWY)
#else
ListAddEmpty(8,9)
#endif
SCREENS= $(SCREENS9)

#if ibmSpecialMalloc
DEFINES =  -DIBM_SPECIAL_MALLOC $(SCREENS)
#else
DEFINES = $(SCREENS)
#endif

INCLUDES = -I. -I../../../include -I$(INCLUDESRC) -I../OPERATING_SYSTEM

#if DebugServer && ProfileServer
DebuggedAndProfiledLibraryObjectRule()
#else
# if DebugServer
DebuggedLibraryObjectRule()
# else
#  if ProfileServer
ProfiledLibraryObjectRule()
#  else
NormalLibraryObjectRule()
#  endif
# endif
#endif

all::	$(OBJS)
NormalRelocatableTarget(ibmcomm,$(LIBOBJS))

#if ProfileServer
ProfiledRelocatableTarget(ibmcomm,$(LIBOBJS))
#endif
#if DebugServer
DebuggedRelocatableTarget(ibmcomm,$(LIBOBJS))
#endif

DependTarget()

#ifdef RtAIX
ibmDate.o: FRC
	$(CC) $(CFLAGS) \
	 -DDATE="\"`date`\"" \
	 -DHOST="\"`hostname | awk -f awkhprog `\"" \
	 -DDEVELOPER="\"`who -A`\"" \
	-c ibmDate.c
#else
ibmDate.o: FRC
	$(CC) $(CFLAGS) \
	 -DDATE="\"`date`\"" \
	 -DHOST="\"`hostname`\"" \
	 -DDEVELOPER="\"`who am i|sed 1q|sed -e 's/.*\!//'|sed -e 's/[	 ].*$$//'`\"" \
	-c ibmDate.c
#endif

FRC:

ibmScreen.o ibmInit.o ibmIO.o ibmUtils.o:	Imakefile

LintLibraryTarget(ibmcomm,$(SRCS))
NormalLintTarget($(SRCS))