Thanks for sparing your time to improve identity.h!
Let's understand CODE_OF_CONDUCT.md first to keep our community healthy. Make sure you understand how to use:
- UNIX-like platform, Linux and MacOS are recommended
- Shell
- git
- GitHub
- GNU Make
- C Language
- Basics of PHP Language
In concept, we use PHP language to generate a long and repetitive C header (*.h file). The reason of using PHP because it's the most convenient way to do that kind of job.
When you have enough knowledge to start, make sure your computer has these installed:
Also note that this project only works on UNIX-like platform! If you're a Windows user, try install either WSL or Cygwin then install those requirements in WSL or Cygwin, not natively.
You can either download the source code directly from GitHub site, or using git to clone (recommended):
git clone https://github.com/Thor-x86/identity.hWe somewhat follow The Pitchfork Layout convention for structuring project directory. In short:
- src: a Directory where source code lives, this is the main part.
- out: Compilation output, this is your build result.
- test: For testing the main source code at src.
- examples: Examples of what you can do with this project.
Allman style is the reference of this project's code style, with tab indentation.
Entire build procedures in this project already automated with GNU Make. So you just have to run this:
makeIf you want to increase string limit for some reason, replace <number> of this to your desired limit:
MAX_ITERATION=<number> makeWhenever you want to use your custom build of identity.h, you have to install it right after build. Installation procedures also automated with GNU Make. So you just have to run:
sudo make installIf you want to install at different directory (such as install to on going C project locally), replace this <path_to_dir> to your desired directory path. DO NOT put trailing slash or it spits errors.
PREFIX=<path_to_dir> make install...or with root privilege
sudo PREFIX=<path_to_dir> make installThis section is intended to share ready-to-use form of identity.h to other developers and users. Replace this <version> to currently working version:
VERSION=<version> make deploy