forked from Bill-Gray/PDCursesMod
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.dmc
277 lines (189 loc) · 5.5 KB
/
Makefile.dmc
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
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
# Makefile for PDCurses library - DOS Digital Mars
#
# Usage: make -f Makefile.dmc [target]
#
# where target can be any of:
# [all|demos|pdcurses.lib|testcurs.exe...]
PDCURSES_SRCDIR = ..
PDCURSES_CURSES_H = $(PDCURSES_SRCDIR)\curses.h
PDCURSES_CURSPRIV_H = $(PDCURSES_SRCDIR)\curspriv.h
PDCURSES_HEADERS = $(PDCURSES_CURSES_H) $(PDCURSES_CURSPRIV_H)
PANEL_HEADER = $(PDCURSES_SRCDIR)\panel.h
TERM_HEADER = $(PDCURSES_SRCDIR)\term.h
srcdir = $(PDCURSES_SRCDIR)\pdcurses
osdir = $(PDCURSES_SRCDIR)\vt
demodir = $(PDCURSES_SRCDIR)\demos
PDCURSES_VT_H = $(osdir)\pdcvt.h
CC = dmc
CHTYPE = -DCHTYPE_32
CFLAGS = -c -o+space -Nc -mld -DDOS
# CFLAGS = -c -o+space -Nc -mld -DDOS
CPPFLAGS = -I$(PDCURSES_SRCDIR) -msd $(CHTYPE)
LINK = dmc
LIBEXE = lib
LIBCURSES = pdcurses.lib
BUILD = $(CC) $(CFLAGS) $(CPPFLAGS)
DEMOS = calendar.exe firework.exe init_col.exe mbrot.exe \
newtest.exe ozdemo.exe picsview.exe ptest.exe rain.exe speed.exe \
testcurs.exe test_pan.exe tuidemo.exe widetest.exe worm.exe xmas.exe
all: $(LIBCURSES)
clean:
-del *.obj 2>NUL
-del *.lib 2>NUL
-del *.exe 2>NUL
-del *.map 2>NUL
-del advapi32.def 2>NUL
demos: $(LIBCURSES) $(DEMOS)
LIBOBJS = addch.obj addchstr.obj addstr.obj attr.obj beep.obj bkgd.obj \
border.obj clear.obj color.obj delch.obj deleteln.obj getch.obj \
getstr.obj getyx.obj inch.obj inchstr.obj initscr.obj inopts.obj \
insch.obj insstr.obj instr.obj kernel.obj keyname.obj mouse.obj move.obj \
outopts.obj overlay.obj pad.obj panel.obj printw.obj refresh.obj \
scanw.obj scr_dump.obj scroll.obj slk.obj termattr.obj terminfo.obj \
touch.obj util.obj window.obj debug.obj
PDCOBJS = pdcclip.obj pdcdisp.obj pdcgetsc.obj pdckbd.obj pdcscrn.obj \
pdcsetsc.obj pdcutil.obj
DEMOOBS = calendar.obj firework.obj init_col.obj mbrot.obj \
newtest.obj ozdemo.obj picsview.obj ptest.obj rain.obj speed.obj \
testcurs.obj test_pan.obj tuidemo.obj widetest.obj worm.obj xmas.obj tui.obj
$(LIBOBJS) $(PDCOBJS) : $(PDCURSES_HEADERS)
$(PDCOBJS) : $(PDCURSES_VT_H)
panel.obj ptest.obj: $(PANEL_HEADER)
terminfo.obj: $(TERM_HEADER)
$(DEMOOBJS) : $(PDCURSES_CURSES_H)
$(DEMOS) : $(LIBCURSES)
$(LIBCURSES) : $(LIBOBJS) $(PDCOBJS)
$(LIBEXE) -c $@ $(LIBOBJS) $(PDCOBJS)
SRCBUILD = $(BUILD) $(srcdir)\$*.c
OSBUILD = $(BUILD) $(osdir)\$*.c
DEMOBUILD = $(LINK) $(CPPFLAGS) -o+space $@ $**
addch.obj: $(srcdir)\addch.c
$(SRCBUILD)
addchstr.obj: $(srcdir)\addchstr.c
$(SRCBUILD)
addstr.obj: $(srcdir)\addstr.c
$(SRCBUILD)
attr.obj: $(srcdir)\attr.c
$(SRCBUILD)
beep.obj: $(srcdir)\beep.c
$(SRCBUILD)
bkgd.obj: $(srcdir)\bkgd.c
$(SRCBUILD)
border.obj: $(srcdir)\border.c
$(SRCBUILD)
clear.obj: $(srcdir)\clear.c
$(SRCBUILD)
color.obj: $(srcdir)\color.c
$(SRCBUILD)
delch.obj: $(srcdir)\delch.c
$(SRCBUILD)
deleteln.obj: $(srcdir)\deleteln.c
$(SRCBUILD)
getch.obj: $(srcdir)\getch.c
$(SRCBUILD)
getstr.obj: $(srcdir)\getstr.c
$(SRCBUILD)
getyx.obj: $(srcdir)\getyx.c
$(SRCBUILD)
inch.obj: $(srcdir)\inch.c
$(SRCBUILD)
inchstr.obj: $(srcdir)\inchstr.c
$(SRCBUILD)
initscr.obj: $(srcdir)\initscr.c
$(SRCBUILD)
inopts.obj: $(srcdir)\inopts.c
$(SRCBUILD)
insch.obj: $(srcdir)\insch.c
$(SRCBUILD)
insstr.obj: $(srcdir)\insstr.c
$(SRCBUILD)
instr.obj: $(srcdir)\instr.c
$(SRCBUILD)
kernel.obj: $(srcdir)\kernel.c
$(SRCBUILD)
keyname.obj: $(srcdir)\keyname.c
$(SRCBUILD)
mouse.obj: $(srcdir)\mouse.c
$(SRCBUILD)
move.obj: $(srcdir)\move.c
$(SRCBUILD)
outopts.obj: $(srcdir)\outopts.c
$(SRCBUILD)
overlay.obj: $(srcdir)\overlay.c
$(SRCBUILD)
pad.obj: $(srcdir)\pad.c
$(SRCBUILD)
panel.obj: $(srcdir)\panel.c
$(SRCBUILD)
printw.obj: $(srcdir)\printw.c
$(SRCBUILD)
refresh.obj: $(srcdir)\refresh.c
$(SRCBUILD)
scanw.obj: $(srcdir)\scanw.c
$(SRCBUILD)
scr_dump.obj: $(srcdir)\scr_dump.c
$(SRCBUILD)
scroll.obj: $(srcdir)\scroll.c
$(SRCBUILD)
slk.obj: $(srcdir)\slk.c
$(SRCBUILD)
termattr.obj: $(srcdir)\termattr.c
$(SRCBUILD)
terminfo.obj: $(srcdir)\terminfo.c
$(SRCBUILD)
touch.obj: $(srcdir)\touch.c
$(SRCBUILD)
util.obj: $(srcdir)\util.c
$(SRCBUILD)
window.obj: $(srcdir)\window.c
$(SRCBUILD)
debug.obj: $(srcdir)\debug.c
$(SRCBUILD)
pdcclip.obj: $(osdir)\pdcclip.c
$(OSBUILD)
pdcdisp.obj: $(osdir)\pdcdisp.c
$(OSBUILD)
pdcgetsc.obj: $(osdir)\pdcgetsc.c
$(OSBUILD)
pdckbd.obj: $(osdir)\pdckbd.c
$(OSBUILD)
pdcscrn.obj: $(osdir)\pdcscrn.c
$(OSBUILD)
pdcsetsc.obj: $(osdir)\pdcsetsc.c
$(OSBUILD)
pdcutil.obj: $(osdir)\pdcutil.c
$(OSBUILD)
calendar.exe: $(demodir)\calendar.c
$(DEMOBUILD)
firework.exe: $(demodir)\firework.c
$(DEMOBUILD)
init_col.exe: $(demodir)\init_col.c
$(DEMOBUILD)
mbrot.exe: $(demodir)\mbrot.c
$(DEMOBUILD)
newtest.exe: $(demodir)\newtest.c
$(DEMOBUILD)
ozdemo.exe: $(demodir)\ozdemo.c
$(DEMOBUILD)
picsview.exe: $(demodir)\picsview.c
$(DEMOBUILD)
ptest.exe: $(demodir)\ptest.c
$(DEMOBUILD)
rain.exe: $(demodir)\rain.c
$(DEMOBUILD)
speed.exe: $(demodir)\speed.c
$(DEMOBUILD)
testcurs.exe: $(demodir)\testcurs.c
$(DEMOBUILD) advapi32.lib
test_pan.exe: $(demodir)\test_pan.c
$(DEMOBUILD) advapi32.lib
tuidemo.exe: tuidemo.obj tui.obj
$(DEMOBUILD)
worm.exe: $(demodir)\worm.c
$(DEMOBUILD)
xmas.exe: $(demodir)\xmas.c
$(DEMOBUILD)
tui.obj: $(demodir)\tui.c $(demodir)\tui.h
$(BUILD) -I$(demodir) $(demodir)\$*.c
tuidemo.obj: $(demodir)\tuidemo.c
$(BUILD) -I$(demodir) $(demodir)\$*.c