Skip to content

Commit

Permalink
Improve build process (update your makeinit!)
Browse files Browse the repository at this point in the history
  • Loading branch information
a11599 committed Jun 21, 2023
1 parent 448b7d5 commit a730581
Show file tree
Hide file tree
Showing 6 changed files with 159 additions and 123 deletions.
5 changes: 2 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/bin
/obj
/rtl
/build
/dist
/tools
/makeinit
/test.bat
Expand Down
7 changes: 3 additions & 4 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@
"editor.rulers": [80],
"files.exclude": {
"dist/": true,
"obj/": true,
"pcem/": true,
"scratch/": true,
"dosbox-x.conf": true
"build/": true,
"lib/": true,
"tools/": true
},
"files.trimTrailingWhitespace": true
}
15 changes: 10 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ hello_world db 'Hello world!', 13, 10

```
NAME hello
OPTION stub={path\to\pmi}\bin\pmi.exe
OPTION stub={path\to\pmi}\build\debug\pmi.exe
OPTION start=_main
OPTION stack=4096
FORM Windows NT TNT
Expand Down Expand Up @@ -2019,10 +2019,15 @@ To build a custom `pmi.exe` binary:
- Install [NASM](https://nasm.us).
- Install [Open Watcom](https://www.openwatcom.org/) tools.
- Copy `makeinit.sam` to `makeinit` and set the following parameters:
- `nasm`: Path to nasm.exe (NASM binary).
- `wlink`: Path to wlink.exe (Open Watcom linker).
- If both of them are added to system `PATH`, you can leave `makeinit` as-is.
- Run `wmake` to create a debug-enabled build as `bin\pmi_dbg.exe` or `wmake release` to create a release build as `bin\pmi.exe`.
- `nasm_dir`: Path to directory containing nasm.exe (NASM binary).
- `watcom_dir`: Path to directory containing Open Watcom platform-dependent binaries.
- If both of them are added to system `PATH`, you don't need to create a `makeinit` file.
- Run `wmake` to create a debug-enabled build to `build\debug\pmi.exe` and to compile the runtime library to `build\debug\rtl`.
- Run `wmake build=release` to create a release build to `build\release\pmi.exe` and to compile the runtime library to `build\release\rtl`.
- Further `wmake` targets (append after `wmake` or `wmake build=release`) are:
- `clean`: Remove compiled binaries in `build\debug` or `build\release` directory.
- `full`: Force a full recompilation (compilation by default is incremental, only changed source code is recompiled).
- `dist`: Create a binary distribution package to `dist` directory.

To test PMI:
- Copy `test_bat.sam` to `test.bat`
Expand Down
Loading

0 comments on commit a730581

Please sign in to comment.