a cross-platform build tool for (free)pascal
PMake is a minimalistic build tool for (free) pascal. It mimics to some extent the commands from CMake yet only targets pascal compilers. The inner working of pmake are relatively simple as the compiler does all the hard work. Once invoked pmake will generate a build system for the project. The developer can define with simple commands which targets are present in the project and what the dependencies between these targets are. A target can either be a library (no executable, only object files) or an executable.
Please be aware that for the time being PMake is under development and that some features might break. However due to the simplicity and the forgivingness of the PMake script it should be easy to adjust.
- Linux
- Macintosh
- Windows
Other operating systems will probably work too out of the box, if not it should not be a major problem to make PMake work on this platform. Just make sure PMake and the compiler is available from the command-line.
You need to have the latest stable freepascal compiler 3.0.4 installed. PMake can bootstrap itself with the provided PMake.txt script. You will first need to build pmake and then install it. In short:
$ fpc pmake
$ ./pmake
$ ./make install
Note that you need to have administrsator privileges to be able to install PMake on your system.
On the GitHub release pages you can find a pre-built binary for your platform.
Building your project is easy. You can setup initial build scripts by using the built in function --quickstart
. This will parse the source tree and create a sequence of PMake.txt
files. You can do an in-source or out-of-source build if you would like your source tree to stay clean. Below is a simple example how PMake (pre-installed tool) can be used to do an out-of-source build.
Notice the nice visual feedback. PMake will regenerate the build tools automatically if a PMake.txt file in the source tree changes.
If you have found a bug:
-
If you have a patch, please make a pull request.
-
Otherwise, please create an issue on the GitHub page.
You can for PMake and make contributions by making pull request.