-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathmk_emccw.mak
509 lines (441 loc) · 18.4 KB
/
mk_emccw.mak
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
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
# Makefile for mingw32-make (or make7), emcc from Emscripten and gcc from MinGW. Commands executed by: cmd.exe
# To compile use a Windows console and call:
# mingw32-make -f mk_emccw.mak depend
# mingw32-make -f mk_emccw.mak
# CFLAGS = -O2 -fomit-frame-pointer -funroll-loops -Wall
# CFLAGS = -O2 -fomit-frame-pointer -Wall -Wstrict-prototypes -Winline -Wconversion -Wshadow -Wpointer-arith
CFLAGS = -O3 -g -gsource-map -ffunction-sections -fdata-sections -Wall -Wstrict-prototypes -Winline -Wconversion -Wshadow -Wpointer-arith
# CFLAGS = -O2 -g -ffunction-sections -fdata-sections -Wall -Winline -Wconversion -Wshadow -Wpointer-arith
# CFLAGS = -O2 -g -pg -Wall -Wstrict-prototypes -Winline -Wconversion -Wshadow -Wpointer-arith
# CFLAGS = -O2 -Wall -Wstrict-prototypes -Winline -Wconversion -Wshadow -Wpointer-arith
# CFLAGS = -O2 -pg -Wall -Wstrict-prototypes -Winline -Wconversion -Wshadow -Wpointer-arith
# CFLAGS = -O2 -funroll-loops -Wall -pg
LDFLAGS = -g -gsource-map -s TOTAL_STACK=1048576 -s ASSERTIONS=0 -s ALLOW_MEMORY_GROWTH=1 -s EXIT_RUNTIME -s EXPORTED_RUNTIME_METHODS=['ccall','cwrap','UTF8ToString'] -s ASYNCIFY -s ASYNCIFY_STACK_SIZE=16384
# LDFLAGS = -Wl,--gc-sections,--stack,8388608,--subsystem,windows
# LDFLAGS = -pg
# LDFLAGS = -pg -lc_p
SYSTEM_LIBS = -lnodefs.js
# SYSTEM_LIBS = -lm -lws2_32 -lgmp
# SYSTEM_BIGINT_LIBS is defined in the file "macros". The program chkccomp.c writes it to "macros" when doing "make depend".
SYSTEM_CONSOLE_LIBS =
# SYSTEM_DATABASE_LIBS is defined in the file "macros". The program chkccomp.c writes it to "macros" when doing "make depend".
SYSTEM_DRAW_LIBS =
SYSTEM_MATH_LIBS =
ALL_SYSTEM_LIBS = $(SYSTEM_LIBS) $(SYSTEM_BIGINT_LIBS) $(SYSTEM_CONSOLE_LIBS) $(SYSTEM_DATABASE_LIBS) $(SYSTEM_DRAW_LIBS) $(SYSTEM_MATH_LIBS)
SEED7_LIB = seed7_05_emc.a
DRAW_LIB = s7_draw_emc.a
CONSOLE_LIB = s7_con_emc.a
DATABASE_LIB = s7_db_emc.a
COMP_DATA_LIB = s7_data_emc.a
COMPILER_LIB = s7_comp_emc.a
SPECIAL_LIB = pre_js.js
ALL_S7_LIBS = ..\bin\$(COMPILER_LIB) ..\bin\$(COMP_DATA_LIB) ..\bin\$(DRAW_LIB) ..\bin\$(CONSOLE_LIB) ..\bin\$(DATABASE_LIB) ..\bin\$(SEED7_LIB)
# CC = em++
CC = emcc
CC_ENVIRONMENT_INI = emcc_env.ini
MOBJ = s7.o
POBJ = runerr.o option.o primitiv.o
LOBJ = actlib.o arrlib.o biglib.o binlib.o blnlib.o bstlib.o chrlib.o cmdlib.o conlib.o dcllib.o \
drwlib.o enulib.o fillib.o fltlib.o hshlib.o intlib.o itflib.o kbdlib.o lstlib.o pcslib.o \
pollib.o prclib.o prglib.o reflib.o rfllib.o sctlib.o setlib.o soclib.o sqllib.o strlib.o \
timlib.o typlib.o ut8lib.o
EOBJ = exec.o doany.o objutl.o
AOBJ = act_comp.o prg_comp.o analyze.o syntax.o token.o parser.o name.o type.o \
expr.o atom.o object.o scanner.o literal.o numlit.o findid.o msg_stri.o \
error.o infile.o libpath.o symbol.o info.o stat.o fatal.o match.o
GOBJ = syvarutl.o traceutl.o actutl.o executl.o blockutl.o \
entutl.o identutl.o chclsutl.o arrutl.o
ROBJ = arr_rtl.o bln_rtl.o bst_rtl.o chr_rtl.o cmd_rtl.o con_rtl.o dir_rtl.o drw_rtl.o fil_rtl.o \
flt_rtl.o hsh_rtl.o int_rtl.o itf_rtl.o pcs_rtl.o set_rtl.o soc_rtl.o sql_rtl.o str_rtl.o \
tim_rtl.o ut8_rtl.o heaputl.o numutl.o sigutl.o striutl.o
DOBJ = big_rtl.o big_gmp.o cmd_unx.o dir_win.o dll_unx.o emc_utl.o fil_emc.o pcs_unx.o pol_unx.o \
soc_none.o tim_emc.o
OBJ = $(MOBJ)
SEED7_LIB_OBJ = $(ROBJ) $(DOBJ)
DRAW_LIB_OBJ = gkb_rtl.o drw_emc.o gkb_emc.o
CONSOLE_LIB_OBJ = kbd_rtl.o con_emc.o
DATABASE_LIB_OBJ = sql_base.o sql_db2.o sql_fire.o sql_ifx.o sql_lite.o sql_my.o sql_oci.o \
sql_odbc.o sql_post.o sql_srv.o sql_tds.o
COMP_DATA_LIB_OBJ = typ_data.o rfl_data.o ref_data.o listutl.o flistutl.o typeutl.o datautl.o
COMPILER_LIB_OBJ = $(POBJ) $(LOBJ) $(EOBJ) $(AOBJ) $(GOBJ)
MSRC = s7.c
PSRC = runerr.c option.c primitiv.c
LSRC = actlib.c arrlib.c biglib.c binlib.c blnlib.c bstlib.c chrlib.c cmdlib.c conlib.c dcllib.c \
drwlib.c enulib.c fillib.c fltlib.c hshlib.c intlib.c itflib.c kbdlib.c lstlib.c pcslib.c \
pollib.c prclib.c prglib.c reflib.c rfllib.c sctlib.c setlib.c soclib.c sqllib.c strlib.c \
timlib.c typlib.c ut8lib.c
ESRC = exec.c doany.c objutl.c
ASRC = act_comp.c prg_comp.c analyze.c syntax.c token.c parser.c name.c type.c \
expr.c atom.c object.c scanner.c literal.c numlit.c findid.c msg_stri.c \
error.c infile.c libpath.c symbol.c info.c stat.c fatal.c match.c
GSRC = syvarutl.c traceutl.c actutl.c executl.c blockutl.c \
entutl.c identutl.c chclsutl.c arrutl.c
RSRC = arr_rtl.c bln_rtl.c bst_rtl.c chr_rtl.c cmd_rtl.c con_rtl.c dir_rtl.c drw_rtl.c fil_rtl.c \
flt_rtl.c hsh_rtl.c int_rtl.c itf_rtl.c pcs_rtl.c set_rtl.c soc_rtl.c sql_rtl.c str_rtl.c \
tim_rtl.c ut8_rtl.c heaputl.c numutl.c sigutl.c striutl.c
DSRC = big_rtl.c big_gmp.c cmd_unx.c dir_win.c dll_unx.c emc_utl.c fil_emc.c pcs_unx.c pol_unx.c \
soc_none.c tim_emc.c
SRC = $(MSRC)
SEED7_LIB_SRC = $(RSRC) $(DSRC)
DRAW_LIB_SRC = gkb_rtl.c drw_emc.c gkb_emc.c
CONSOLE_LIB_SRC = kbd_rtl.c con_emc.c
DATABASE_LIB_SRC_STD_INCL = sql_base.c sql_fire.c sql_lite.c sql_my.c sql_oci.c sql_odbc.c \
sql_post.c sql_tds.c
DATABASE_LIB_SRC = $(DATABASE_LIB_SRC_STD_INCL) sql_db2.c sql_ifx.c sql_srv.c
COMP_DATA_LIB_SRC = typ_data.c rfl_data.c ref_data.c listutl.c flistutl.c typeutl.c datautl.c
COMPILER_LIB_SRC = $(PSRC) $(LSRC) $(ESRC) $(ASRC) $(GSRC)
s7: ..\bin\s7.js ..\prg\s7.js
node ..\bin\s7.js -l ..\lib level
node --stack-size=8192 ..\bin\s7.js -l ..\lib -q ..\prg\confval > ..\bin\cc_conf_emcc.prop
@echo.
@echo Use 'make s7c' (with your make command) to create the compiler.
@echo.
s7c: ..\bin\s7c.js ..\prg\s7c.js
@echo.
@echo Use 'make test' (with your make command) to check Seed7.
@echo.
..\bin\s7.js: levelup.exe next_lvl $(OBJ) $(ALL_S7_LIBS) ..\bin\$(SPECIAL_LIB)
$(CC) $(LDFLAGS) $(OBJ) $(ALL_S7_LIBS) $(ALL_SYSTEM_LIBS) --pre-js ..\bin\$(SPECIAL_LIB) -o ..\bin\s7.js
del next_lvl
..\prg\s7.js: ..\bin\s7.js
copy ..\bin\s7.js ..\prg /Y
copy ..\bin\s7.wasm ..\prg /Y
..\bin\s7c.js: ..\prg\s7c.js
copy ..\prg\s7c.js ..\bin /Y
copy ..\prg\s7c.wasm ..\bin /Y
..\prg\s7c.js: ..\prg\s7c.sd7 $(ALL_S7_LIBS) ..\bin\$(SPECIAL_LIB)
node --stack-size=8192 ..\bin\s7.js -l ..\lib ..\prg\s7c -l ..\lib -b ..\bin -O2 ..\prg\s7c
levelup.exe: levelup.c
gcc levelup.c -o levelup
next_lvl: levelup.exe
.\levelup.exe
echo X > next_lvl
sql_%.o: sql_%.c
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(INCLUDE_OPTIONS) $< -o $@
big_%.o: big_%.c
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(INCLUDE_OPTIONS) $< -o $@
sql_db2.o: sql_db2.c
$(CC) -c $(CPPFLAGS) $(DB2_INCLUDE_OPTION) $(CFLAGS) $(INCLUDE_OPTIONS) $<
sql_ifx.o: sql_ifx.c
$(CC) -c $(CPPFLAGS) $(INFORMIX_INCLUDE_OPTION) $(CFLAGS) $(INCLUDE_OPTIONS) $<
sql_srv.o: sql_srv.c
$(CC) -c $(CPPFLAGS) $(SQL_SERVER_INCLUDE_OPTION) $(CFLAGS) $(INCLUDE_OPTIONS) $<
.PHONY: clean s7 s7c test install all next_lvl strip clean_utils distclean uninstall
clean:
del *.o
del $(ALL_S7_LIBS)
del ..\bin\s7.js
del ..\bin\s7.wasm
del ..\bin\$(CC_ENVIRONMENT_INI)
del ..\bin\s7c.js
del ..\bin\s7c.wasm
del ..\bin\$(SPECIAL_LIB)
del ..\prg\s7.js
del ..\prg\s7.wasm
del ..\prg\s7c.js
del ..\prg\s7c.wasm
del depend
del macros
del chkccomp.h
del base.h
del settings.h
del version.h
del chkccomp.exe
del setwpath.exe
del wrdepend.exe
del sudo.exe
del levelup.exe
del next_lvl
@echo.
@echo Use 'make depend' (with your make command) to create the dependencies.
@echo.
clean_utils:
del ..\bin\bas7.js
del ..\bin\bigfiles.js
del ..\bin\calc7.js
del ..\bin\cat.js
del ..\bin\comanche.js
del ..\bin\db7.js
del ..\bin\diff7.js
del ..\bin\find7.js
del ..\bin\findchar.js
del ..\bin\ftp7.js
del ..\bin\ftpserv.js
del ..\bin\hd.js
del ..\bin\ide7.js
del ..\bin\make7.js
del ..\bin\portfwd7.js
del ..\bin\pv7.js
del ..\bin\sql7.js
del ..\bin\sydir7.js
del ..\bin\tar7.js
del ..\bin\toutf8.js
del ..\bin\which.js
del ..\bin\bas7.wasm
del ..\bin\bigfiles.wasm
del ..\bin\calc7.wasm
del ..\bin\cat.wasm
del ..\bin\comanche.wasm
del ..\bin\db7.wasm
del ..\bin\diff7.wasm
del ..\bin\find7.wasm
del ..\bin\findchar.wasm
del ..\bin\ftp7.wasm
del ..\bin\ftpserv.wasm
del ..\bin\hd.wasm
del ..\bin\ide7.wasm
del ..\bin\make7.wasm
del ..\bin\portfwd7.wasm
del ..\bin\pv7.wasm
del ..\bin\sql7.wasm
del ..\bin\sydir7.wasm
del ..\bin\tar7.wasm
del ..\bin\toutf8.wasm
del ..\bin\which.wasm
distclean: clean clean_utils
del level_bk.h
del level.h
del vers_emccw.h
test:
node ..\bin\s7.js -l ..\lib ..\prg\chk_all build
@echo.
@echo Use 'sudo make install' (with your make command) to install Seed7.
@echo Or open a console as administrator, go to the directory seed7/src
@echo and use 'make install' (with your make command) to install Seed7.
@echo.
install: setwpath.exe
.\setwpath.exe add ..\bin
uninstall: setwpath.exe
.\setwpath.exe remove ..\bin
strip:
strip ..\bin\s7.exe
chkccomp.h:
echo #define LIST_DIRECTORY_CONTENTS "dir" > chkccomp.h
echo #define UNIX_DO_SLEEP >> chkccomp.h
echo #define REMOVE_WASM >> chkccomp.h
echo #define USE_GMP 0 >> chkccomp.h
echo #define SYSTEM_CONSOLE_LIBS "$(SYSTEM_CONSOLE_LIBS)" >> chkccomp.h
echo #define SYSTEM_DRAW_LIBS "$(SYSTEM_DRAW_LIBS)" >> chkccomp.h
base.h:
echo #define PATH_DELIMITER '\\' > base.h
echo #define QUOTE_WHOLE_SHELL_COMMAND >> base.h
echo #define OBJECT_FILE_EXTENSION ".o" >> base.h
echo #define C_COMPILER "$(CC)" >> base.h
echo #define CC_OPT_VERSION_INFO "--version" >> base.h
echo #define CC_FLAGS "" >> base.h
echo #define CC_ERROR_FILEDES 2 >> base.h
echo #define CC_VERSION_INFO_FILEDES 1 >> base.h
echo #define LINKER_OPT_OUTPUT_FILE "-o " >> base.h
echo #define LINKED_PROGRAM_EXTENSION ".js" >> base.h
echo #define INTERPRETER_FOR_LINKED_PROGRAM "node" >> base.h
echo #define MOUNT_NODEFS >> base.h
echo #define EMULATE_ENVIRONMENT >> base.h
echo #define EMULATE_NODE_ENVIRONMENT >> base.h
echo #define DETERMINE_OS_PROPERTIES_AT_RUNTIME >> base.h
echo #define SYSTEM_LIBS "$(SYSTEM_LIBS)" >> base.h
echo #define SYSTEM_MATH_LIBS "$(SYSTEM_MATH_LIBS)" >> base.h
settings.h:
echo #define MAKE_UTILITY_NAME "$(MAKE)" > settings.h
echo #define MAKEFILE_NAME "mk_emccw.mak" >> settings.h
echo #define SEARCH_PATH_DELIMITER 0 >> settings.h
echo #define AWAIT_WITH_NANOSLEEP >> settings.h
echo #define IMPLEMENT_PTY_WITH_PIPE2 >> settings.h
echo #define USE_EGL >> settings.h
echo #define CONSOLE_UTF8 >> settings.h
echo #define OS_STRI_UTF8 >> settings.h
echo #define LIBRARY_FILE_EXTENSION ".a" >> settings.h
echo #define USE_CONSOLE_FOR_PROT_CSTRI >> settings.h
echo #define DEFINE_SYSTEM_FUNCTION >> settings.h
echo #define USE_START_MAIN >> settings.h
echo #define USE_DO_EXIT >> settings.h
echo #define os_exit doExit >> settings.h
echo #define os_atexit registerExitFunction >> settings.h
echo #define CALL_C_COMPILER_FROM_SHELL 1 >> settings.h
echo #define CPLUSPLUS_COMPILER "em++" >> settings.h
echo #define CC_OPT_DEBUG_INFO "-g" >> settings.h
echo #define CC_OPT_NO_WARNINGS "-w" >> settings.h
echo #define LINKER_OPT_NO_DEBUG_INFO "-Wl,--strip-debug" >> settings.h
echo #define LINKER_OPT_SPECIAL_LIB "--pre-js" >> settings.h
echo #define LINKER_FLAGS "$(LDFLAGS)" >> settings.h
echo #define SEED7_LIB "$(SEED7_LIB)" >> settings.h
echo #define DRAW_LIB "$(DRAW_LIB)" >> settings.h
echo #define CONSOLE_LIB "$(CONSOLE_LIB)" >> settings.h
echo #define DATABASE_LIB "$(DATABASE_LIB)" >> settings.h
echo #define COMP_DATA_LIB "$(COMP_DATA_LIB)" >> settings.h
echo #define COMPILER_LIB "$(COMPILER_LIB)" >> settings.h
echo #define SPECIAL_LIB "$(SPECIAL_LIB)" >> settings.h
version.h: chkccomp.exe base.h settings.h
.\chkccomp.exe version.h "S7_LIB_DIR=$(S7_LIB_DIR)" "SEED7_LIBRARY=$(SEED7_LIBRARY)" "CC_ENVIRONMENT_INI=$(CC_ENVIRONMENT_INI)"
del ctest*.wasm
set > ..\bin\$(CC_ENVIRONMENT_INI)
copy version.h vers_emccw.h /Y
chkccomp.exe: chkccomp.c chkccomp.h base.h settings.h
gcc chkccomp.c -o chkccomp
setwpath.exe: version.h setwpath.c
gcc setwpath.c -o setwpath
wrdepend.exe: version.h wrdepend.c
gcc wrdepend.c -o wrdepend
sudo.exe: sudo.c
gcc sudo.c -w -o sudo
depend: version.h setwpath.exe wrdepend.exe sudo.exe
.\wrdepend.exe OPTION=INCLUDE_OPTIONS $(CFLAGS) -M -c $(SRC) "> depend"
.\wrdepend.exe OPTION=INCLUDE_OPTIONS $(CFLAGS) -M -c $(SEED7_LIB_SRC) ">> depend"
.\wrdepend.exe OPTION=INCLUDE_OPTIONS $(CFLAGS) -M -c $(DRAW_LIB_SRC) ">> depend"
.\wrdepend.exe OPTION=INCLUDE_OPTIONS $(CFLAGS) -M -c $(CONSOLE_LIB_SRC) ">> depend"
.\wrdepend.exe OPTION=INCLUDE_OPTIONS $(CFLAGS) -M -c $(DATABASE_LIB_SRC_STD_INCL) ">> depend"
.\wrdepend.exe OPTION=DB2_INCLUDE_OPTION $(CFLAGS) -M -c sql_db2.c ">> depend"
.\wrdepend.exe OPTION=INFORMIX_INCLUDE_OPTION $(CFLAGS) -M -c sql_ifx.c ">> depend"
.\wrdepend.exe OPTION=SQL_SERVER_INCLUDE_OPTION $(CFLAGS) -M -c sql_srv.c ">> depend"
.\wrdepend.exe OPTION=INCLUDE_OPTIONS $(CFLAGS) -M -c $(COMP_DATA_LIB_SRC) ">> depend"
.\wrdepend.exe OPTION=INCLUDE_OPTIONS $(CFLAGS) -M -c $(COMPILER_LIB_SRC) ">> depend"
@echo.
@echo Use 'make' (with your make command) to create the interpreter.
@echo.
..\bin\$(SEED7_LIB): $(SEED7_LIB_OBJ)
emar r ..\bin\$(SEED7_LIB) $(SEED7_LIB_OBJ)
..\bin\$(DRAW_LIB): $(DRAW_LIB_OBJ)
emar r ..\bin\$(DRAW_LIB) $(DRAW_LIB_OBJ)
..\bin\$(CONSOLE_LIB): $(CONSOLE_LIB_OBJ)
emar r ..\bin\$(CONSOLE_LIB) $(CONSOLE_LIB_OBJ)
..\bin\$(DATABASE_LIB): $(DATABASE_LIB_OBJ)
emar r ..\bin\$(DATABASE_LIB) $(DATABASE_LIB_OBJ)
..\bin\$(COMP_DATA_LIB): $(COMP_DATA_LIB_OBJ)
emar r ..\bin\$(COMP_DATA_LIB) $(COMP_DATA_LIB_OBJ)
..\bin\$(COMPILER_LIB): $(COMPILER_LIB_OBJ)
emar r ..\bin\$(COMPILER_LIB) $(COMPILER_LIB_OBJ)
..\bin\$(SPECIAL_LIB): pre_js.js
copy pre_js.js ..\bin\$(SPECIAL_LIB)
..\bin\bas7.js: ..\prg\bas7.sd7 ..\bin\s7c.js
node --stack-size=8192 ..\bin\s7c.js -l ..\lib -b ..\bin -O2 ..\prg\bas7
copy ..\prg\bas7.js ..\bin /Y
del ..\prg\bas7.js
..\bin\bigfiles.js: ..\prg\bigfiles.sd7 ..\bin\s7c.js
node --stack-size=8192 ..\bin\s7c.js -l ..\lib -b ..\bin -O2 ..\prg\bigfiles
copy ..\prg\bigfiles.js ..\bin /Y
del ..\prg\bigfiles.js
..\bin\calc7.js: ..\prg\calc7.sd7 ..\bin\s7c.js
node --stack-size=8192 ..\bin\s7c.js -l ..\lib -b ..\bin -O2 ..\prg\calc7
copy ..\prg\calc7.js ..\bin /Y
del ..\prg\calc7.js
..\bin\cat.js: ..\prg\cat.sd7 ..\bin\s7c.js
node --stack-size=8192 ..\bin\s7c.js -l ..\lib -b ..\bin -O2 ..\prg\cat
copy ..\prg\cat.js ..\bin /Y
del ..\prg\cat.js
..\bin\comanche.js: ..\prg\comanche.sd7 ..\bin\s7c.js
node --stack-size=8192 ..\bin\s7c.js -l ..\lib -b ..\bin -O2 ..\prg\comanche
copy ..\prg\comanche.js ..\bin /Y
del ..\prg\comanche.js
..\bin\db7.js: ..\prg\db7.sd7 ..\bin\s7c.js
node --stack-size=8192 ..\bin\s7c.js -l ..\lib -b ..\bin -O2 ..\prg\db7
copy ..\prg\db7.js ..\bin /Y
del ..\prg\db7.js
..\bin\diff7.js: ..\prg\diff7.sd7 ..\bin\s7c.js
node --stack-size=8192 ..\bin\s7c.js -l ..\lib -b ..\bin -O2 ..\prg\diff7
copy ..\prg\diff7.js ..\bin /Y
del ..\prg\diff7.js
..\bin\find7.js: ..\prg\find7.sd7 ..\bin\s7c.js
node ..\bin\s7c.js -l ..\lib -b ..\bin -O2 ..\prg\find7
copy ..\prg\find7.js ..\bin /Y
del ..\prg\find7.js
..\bin\findchar.js: ..\prg\findchar.sd7 ..\bin\s7c.js
node --stack-size=8192 ..\bin\s7c.js -l ..\lib -b ..\bin -O2 ..\prg\findchar
copy ..\prg\findchar.js ..\bin /Y
del ..\prg\findchar.js
..\bin\ftp7.js: ..\prg\ftp7.sd7 ..\bin\s7c.js
node --stack-size=8192 ..\bin\s7c.js -l ..\lib -b ..\bin -O2 ..\prg\ftp7
copy ..\prg\ftp7.js ..\bin /Y
del ..\prg\ftp7.js
..\bin\ftpserv.js: ..\prg\ftpserv.sd7 ..\bin\s7c.js
node --stack-size=8192 ..\bin\s7c.js -l ..\lib -b ..\bin -O2 ..\prg\ftpserv
copy ..\prg\ftpserv.js ..\bin /Y
del ..\prg\ftpserv.js
..\bin\hd.js: ..\prg\hd.sd7 ..\bin\s7c.js
node --stack-size=8192 ..\bin\s7c.js -l ..\lib -b ..\bin -O2 ..\prg\hd
copy ..\prg\hd.js ..\bin /Y
del ..\prg\hd.js
..\bin\ide7.js: ..\prg\ide7.sd7 ..\bin\s7c.js
node --stack-size=8192 ..\bin\s7c.js -l ..\lib -b ..\bin -O2 ..\prg\ide7
copy ..\prg\ide7.js ..\bin /Y
del ..\prg\ide7.js
..\bin\make7.js: ..\prg\make7.sd7 ..\bin\s7c.js
node --stack-size=8192 ..\bin\s7c.js -l ..\lib -b ..\bin -O2 ..\prg\make7
copy ..\prg\make7.js ..\bin /Y
del ..\prg\make7.js
..\bin\portfwd7.js: ..\prg\portfwd7.sd7 ..\bin\s7c.js
node --stack-size=8192 ..\bin\s7c.js -l ..\lib -b ..\bin -O2 ..\prg\portfwd7
copy ..\prg\portfwd7.js ..\bin /Y
del ..\prg\portfwd7.js
..\bin\pv7.js: ..\prg\pv7.sd7 ..\bin\s7c.js
node --stack-size=8192 ..\bin\s7c.js -l ..\lib -b ..\bin -O2 ..\prg\pv7
copy ..\prg\pv7.js ..\bin /Y
del ..\prg\pv7.js
..\bin\sql7.js: ..\prg\sql7.sd7 ..\bin\s7c.js
node --stack-size=8192 ..\bin\s7c.js -l ..\lib -b ..\bin -O2 ..\prg\sql7
copy ..\prg\sql7.js ..\bin /Y
del ..\prg\sql7.js
..\bin\sydir7.js: ..\prg\sydir7.sd7 ..\bin\s7c.js
node --stack-size=8192 ..\bin\s7c.js -l ..\lib -b ..\bin -O2 ..\prg\sydir7
copy ..\prg\sydir7.js ..\bin /Y
del ..\prg\sydir7.js
..\bin\tar7.js: ..\prg\tar7.sd7 ..\bin\s7c.js
node --stack-size=8192 ..\bin\s7c.js -l ..\lib -b ..\bin -O2 ..\prg\tar7
copy ..\prg\tar7.js ..\bin /Y
del ..\prg\tar7.js
..\bin\toutf8.js: ..\prg\toutf8.sd7 ..\bin\s7c.js
node --stack-size=8192 ..\bin\s7c.js -l ..\lib -b ..\bin -O2 ..\prg\toutf8
copy ..\prg\toutf8.js ..\bin /Y
del ..\prg\toutf8.js
..\bin\which.js: ..\prg\which.sd7 ..\bin\s7c.js
node --stack-size=8192 ..\bin\s7c.js -l ..\lib -b ..\bin -O2 ..\prg\which
copy ..\prg\which.js ..\bin /Y
del ..\prg\which.js
bas7: ..\bin\bas7.js
bigfiles: ..\bin\bigfiles.js
calc7: ..\bin\calc7.js
cat: ..\bin\cat.js
comanche: ..\bin\comanche.js
db7: ..\bin\db7.js
diff7: ..\bin\diff7.js
find7: ..\bin\find7.js
findchar: ..\bin\findchar.js
ftp7: ..\bin\ftp7.js
ftpserv: ..\bin\ftpserv.js
hd: ..\bin\hd.js
ide7: ..\bin\ide7.js
make7: ..\bin\make7.js
portfwd7: ..\bin\portfwd7.js
pv7: ..\bin\pv7.js
sql7: ..\bin\sql7.js
sydir7: ..\bin\sydir7.js
tar7: ..\bin\tar7.js
toutf8: ..\bin\toutf8.js
which: ..\bin\which.js
utils: ..\bin\bas7.js ..\bin\bigfiles.js ..\bin\calc7.js ..\bin\cat.js ..\bin\comanche.js \
..\bin\diff7.js ..\bin\find7.js ..\bin\findchar.js ..\bin\ftp7.js ..\bin\ftpserv.js ..\bin\hd.js \
..\bin\make7.js ..\bin\portfwd7.js ..\bin\pv7.js ..\bin\sql7.js ..\bin\sydir7.js \
..\bin\tar7.js ..\bin\toutf8.js ..\bin\which.js
wc: $(SRC)
@echo SRC:
wc $(SRC)
@echo SEED7_LIB_SRC:
wc $(SEED7_LIB_SRC)
@echo DRAW_LIB_SRC:
wc $(DRAW_LIB_SRC)
@echo CONSOLE_LIB_SRC:
wc $(CONSOLE_LIB_SRC)
@echo DATABASE_LIB_SRC:
wc $(DATABASE_LIB_SRC)
@echo COMP_DATA_LIB_SRC:
wc $(COMP_DATA_LIB_SRC)
@echo COMPILER_LIB_SRC:
wc $(COMPILER_LIB_SRC)
lint: $(SRC)
lint -p $(SRC) $(ALL_SYSTEM_LIBS)
lint2: $(SRC)
lint -Zn2048 $(SRC) $(ALL_SYSTEM_LIBS)
ifeq (depend,$(wildcard depend))
include depend
endif
ifeq (macros,$(wildcard macros))
include macros
endif