summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorOxore <oxore@protonmail.com>2018-12-06 04:50:12 +0300
committerOxore <oxore@protonmail.com>2018-12-06 04:50:12 +0300
commit0813c5e414de517ff0fef6cc9eedcb4d512f4fe8 (patch)
tree49d492f6d835163378341c37da62596ba92db4fb /README.md
parente3614f6eef762ca0c2e14736c8a20760c6d5661b (diff)
Add prefix libs support in the Makefile
Diffstat (limited to 'README.md')
-rw-r--r--README.md22
1 files changed, 19 insertions, 3 deletions
diff --git a/README.md b/README.md
index 223fd32..ee55e5c 100644
--- a/README.md
+++ b/README.md
@@ -18,7 +18,7 @@ __Compilation and use__
Compilation:
```
-make all
+make
```
File named "tetris" is the final binary. Run it. Hit *S* to start game.
@@ -29,14 +29,30 @@ File named "tetris" is the final binary. Run it. Hit *S* to start game.
- `Space` - hard drop.
- `P` - pause.
-Cleaning:
+Force exclude producing test binary:
+```
+make NOTEST=1
+```
+
+Clean:
```
make clean
```
+__Compilation with libs in prefix__
+
+Probably your package manager does not have `SFML` and/or `CSFML` in repos.
+You can build them in prefix and then specify `PREFIX` path when running `make`:
+```
+make PREFIX=$(pwd)/deps/prefix
+```
+
+It is better to use absolute path, so you can then put produced `tetris` binary to any other place and have prefix location unchanged.
+
__Windows__
-Look at the [repo releases](https://github.com/Oxore/tetris-csfml/releases)! Now I have some windows binaries there!
+Look at the [repo releases](https://github.com/Oxore/tetris-csfml/releases)!
+Windows compilation flow currently is unsupported, but sometimes I put Windows binary releases there.
### TODO: