https://github.com/alexndrmac/zephir-makefile
Makefile for Zephir lang development
https://github.com/alexndrmac/zephir-makefile
makefile zephir
Last synced: 4 months ago
JSON representation
Makefile for Zephir lang development
- Host: GitHub
- URL: https://github.com/alexndrmac/zephir-makefile
- Owner: AlexNDRmac
- License: gpl-3.0
- Created: 2019-07-28T17:53:19.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-03-27T11:48:08.000Z (about 6 years ago)
- Last Synced: 2025-03-26T23:32:54.628Z (about 1 year ago)
- Topics: makefile, zephir
- Size: 45.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Zephir Makefile
## Makefile for Zephir development
This Makefile helps Zephir developers with running all necessary tools as simple as possible. You can use this Makefile on local machine or various CI and also with PHPStorm/Clion as `Run configurations`
Zephir makefile automaticaly detects folder from which you run this makefile, so you dont need to configure paths or copying this makefile to your project. You can clone this repository to your local machine and just run `zephir.makefile`
## How it looks
```text
_____ __ _ __
/__ / ___ ____ / /_ (_)____ ____ ___ ____ _/ /__ ___
/ / / _ \/ __ \/ __ \/ / ___/ / __ `__ \/ __ `/ //_/ __/
/ /__/ __/ /_/ / / / / / / / / / / / / /_/ / ,< / __/
/____/\___/ .___/_/ /_/_/_/ /_/ /_/ /_/\__,_/_/|_|\___/
/_/
You should run zephir.makefile from your Zephir project root dir
Usage:
make -f zephir.makefile
Example:
make -f zephir.makefile memcheck
Targets:
--- --------------------------------------------------------------
memcheck Check Zephir extension for memory leaks
cachegrind Profile Extension with Cachegrind (creates ./cachegrind.out)
--- --------------------------------------------------------------
help Show this help and exit
```
## Features
- Run Valgrind [memcheck][memcheck link] for your compiled extension to check the memory leaks
- Run Valgrind [cachegrind][cachegrind link] (cache and branch-prediction profiler) for your compiled extension
## Requirements
- [Valgrind][valgrind link] 3.13 or newer
- [Graphviz dot][graphviz link] for Call graph vizualization
- [KCachegrind][kcachegrind link] for Linux or [QCachegrind][qcachegrind link] for macOS
(*) under development
## License
Zephir licensed under the MIT License. See the [LICENSE](https://github.com/phalcon/zephir/blob/master/LICENSE) file for more information.
[valgrind link]: https://valgrind.org
[memcheck link]: https://valgrind.org/docs/manual/mc-manual.html
[kcachegrind link]: https://github.com/KDE/kcachegrind
[qcachegrind link]: https://formulae.brew.sh/formula/qcachegrind
[cachegrind link]: https://valgrind.org/docs/manual/cg-manual.html
[graphviz link]: https://graphviz.gitlab.io/download