aboutsummaryrefslogtreecommitdiffhomepage
path: root/build_win.bat
diff options
context:
space:
mode:
authorCalvin Rose <calsrose@gmail.com>2019-10-29 19:18:44 -0500
committerCalvin Rose <calsrose@gmail.com>2019-10-29 19:18:44 -0500
commit280dca3998c8358f982c3fbcb0c68c865bf0f72a (patch)
tree54215894f8456a0f987b16374fa3a30e7b6e5c7c /build_win.bat
parentFix tools/removecr.janet (diff)
Add shell.c to the amalgamation.
This allows easy builds of the full interpreter with no build system. 1. Get janet.c, janet.h, janetconf.h, and shell.c in a directory. Edit janetconf.h as desired. 2. gcc shell.c janet.c -lm -ldl -O2 -o janet (on GNU-Linux for example) 3. ./janet -h (Yay!)
Diffstat (limited to 'build_win.bat')
-rw-r--r--build_win.bat5
1 files changed, 5 insertions, 0 deletions
diff --git a/build_win.bat b/build_win.bat
index f339a7b9..d4164702 100644
--- a/build_win.bat
+++ b/build_win.bat
@@ -96,6 +96,10 @@ for %%f in (src\core\*.c) do (
janet.exe tools\amalg.janet src\core\util.h src\core\state.h src\core\gc.h src\core\vector.h src\core\fiber.h src\core\regalloc.h src\core\compile.h src\core\emit.h src\core\symcache.h %amalg_files% build\core_image.c > build\janet.c
janet.exe tools\removecr.janet build\janet.c
+@rem Gen shell.c
+janet.exe tools\amalg.janet src\mainclient\line.h src\mainclient\line.c src\mainclient\main.c > build\shell.c
+janet.exe tools\removecr.janet build\shell.c
+
echo === Successfully built janet.exe for Windows ===
echo === Run 'build_win test' to run tests. ==
echo === Run 'build_win clean' to delete build artifacts. ===
@@ -137,6 +141,7 @@ janet.exe tools\gendoc.janet > dist\doc.html
janet.exe tools\removecr.janet dist\doc.html
copy build\janet.c dist\janet.c
+copy build\shell.c dist\shell.c
copy janet.exe dist\janet.exe
copy LICENSE dist\LICENSE
copy README.md dist\README.md