-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sync SvarLANG lib with upstream (enable .LNG compression)
- Loading branch information
Showing
8 changed files
with
642 additions
and
156 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,64 +1,69 @@ | ||
# | ||
# make instructions to build svarlang and tlumacz.exe with OpenWatcom | ||
# Copyright (C) 2021-2023 Mateusz Viste | ||
# Copyright (C) 2021-2024 Mateusz Viste | ||
# | ||
|
||
ALLBIN = svarlngs.lib svarlngc.lib svarlngm.lib svarlngl.lib tlumacz.exe | ||
all: $(ALLBIN) | ||
|
||
CFLAGS = -0 -wx -we -os -s | ||
CFLAGS = -q -0 -wx -we -os -s | ||
|
||
# uncomment this if you prefer SvarLANG to use fopen() and friends to handle | ||
# file access instead of raw DOS calls. this might make the program larger if | ||
# it does not use FILE already, but it allows for 100% ANSI C compliancy. | ||
#CFLAGS += -DWITHSTDIO | ||
|
||
# uncomment this if you'd like to enable an assembly version of the mvcomp | ||
# depacker instead of the native C routine. This saves 27 bytes of footprint. | ||
CFLAGS += -DMVUCOMP_ASM | ||
|
||
ALLFILES = auto_exe.c auto_nls.c svarlang.c version.c | ||
|
||
|
||
svarlngs.lib: $(ALLFILES) | ||
wcc $(CFLAGS) -ms auto_exe.c | ||
wcc $(CFLAGS) -ms auto_nls.c | ||
wcc $(CFLAGS) -ms svarlang.c | ||
wcc $(CFLAGS) -ms version.c | ||
if exist svarlngs.lib del svarlngs.lib | ||
wlib -n svarlngs.lib +auto_exe.obj +auto_nls.obj +svarlang.obj +version.obj | ||
wcc $(CFLAGS) -ms -Fo=auto_exe.obj auto_exe.c | ||
wcc $(CFLAGS) -ms -Fo=auto_nls.obj auto_nls.c | ||
wcc $(CFLAGS) -ms -Fo=svarlang.obj svarlang.c | ||
wcc $(CFLAGS) -ms -Fo=version.obj version.c | ||
if exist svarlngs.lib rm -f svarlngs.lib | ||
wlib -q -n svarlngs.lib +auto_exe.obj +auto_nls.obj +svarlang.obj +version.obj | ||
|
||
svarlngc.lib: $(ALLFILES) | ||
wcc $(CFLAGS) -mc auto_exe.c | ||
wcc $(CFLAGS) -mc auto_nls.c | ||
wcc $(CFLAGS) -mc svarlang.c | ||
wcc $(CFLAGS) -mc version.c | ||
if exist svarlngc.lib del svarlngc.lib | ||
wlib -n svarlngc.lib +auto_exe.obj +auto_nls.obj +svarlang.obj +version.obj | ||
wcc $(CFLAGS) -mc -Fo=auto_exe.obj auto_exe.c | ||
wcc $(CFLAGS) -mc -Fo=auto_nls.obj auto_nls.c | ||
wcc $(CFLAGS) -mc -Fo=svarlang.obj svarlang.c | ||
wcc $(CFLAGS) -mc -Fo=version.obj version.c | ||
if exist svarlngc.lib rm -f svarlngc.lib | ||
wlib -q -n svarlngc.lib +auto_exe.obj +auto_nls.obj +svarlang.obj +version.obj | ||
|
||
svarlngm.lib: $(ALLFILES) | ||
wcc $(CFLAGS) -mm auto_exe.c | ||
wcc $(CFLAGS) -mm auto_nls.c | ||
wcc $(CFLAGS) -mm svarlang.c | ||
wcc $(CFLAGS) -mm version.c | ||
if exist svarlngm.lib del svarlngm.lib | ||
wlib -n svarlngm.lib +auto_exe.obj +auto_nls.obj +svarlang.obj +version.obj | ||
wcc $(CFLAGS) -mm -Fo=auto_exe.obj auto_exe.c | ||
wcc $(CFLAGS) -mm -Fo=auto_nls.obj auto_nls.c | ||
wcc $(CFLAGS) -mm -Fo=svarlang.obj svarlang.c | ||
wcc $(CFLAGS) -mm -Fo=version.obj version.c | ||
if exist svarlngm.lib rm -f svarlngm.lib | ||
wlib -q -n svarlngm.lib +auto_exe.obj +auto_nls.obj +svarlang.obj +version.obj | ||
|
||
svarlngl.lib: $(ALLFILES) | ||
wcc $(CFLAGS) -ml auto_exe.c | ||
wcc $(CFLAGS) -ml auto_nls.c | ||
wcc $(CFLAGS) -ml svarlang.c | ||
wcc $(CFLAGS) -ml version.c | ||
if exist svarlngl.lib del svarlngl.lib | ||
wlib -n svarlngl.lib +auto_exe.obj +auto_nls.obj +svarlang.obj +version.obj | ||
wcc $(CFLAGS) -ml -Fo=auto_exe.obj auto_exe.c | ||
wcc $(CFLAGS) -ml -Fo=auto_nls.obj auto_nls.c | ||
wcc $(CFLAGS) -ml -Fo=svarlang.obj svarlang.c | ||
wcc $(CFLAGS) -ml -Fo=version.obj version.c | ||
if exist svarlngl.lib rm -f svarlngl.lib | ||
wlib -q -n svarlngl.lib +auto_exe.obj +auto_nls.obj +svarlang.obj +version.obj | ||
|
||
release: $(ALLBIN) .symbolic | ||
if exist svarlang.zip del svarlang.zip | ||
if exist svrl_src.zip del svrl_src.zip | ||
if exist svarlang.zip rm -f svarlang.zip | ||
if exist svrl_src.zip rm -f svrl_src.zip | ||
zip -9rkDX svarlang.zip *.lib *.h *.txt tlumacz.exe | ||
zip -9rkDX svrl_src.zip *.c *.txt *.h makefile | ||
|
||
tlumacz.exe: tlumacz.c | ||
wcl -0 -y -cc -wx -mc -lr -we -ox tlumacz.c | ||
del *.obj | ||
wcl -q -0 -y -cc -wx -mc -lr -we -ox tlumacz.c | ||
rm -f *.obj | ||
|
||
clean: .symbolic | ||
del *.exe | ||
del *.obj | ||
del *.lib | ||
del *.zip | ||
rm -f *.exe | ||
rm -f *.obj | ||
rm -f *.lib | ||
rm -f *.zip |
Oops, something went wrong.