Added linux installation
This commit is contained in:
parent
995a00cbbd
commit
3743f91f3c
6
Makefile
6
Makefile
@ -1,4 +1,3 @@
|
|||||||
# CXX = $(shell wx-config --cxx)
|
|
||||||
CXX = clang++
|
CXX = clang++
|
||||||
|
|
||||||
PROGRAM = wxMahjong
|
PROGRAM = wxMahjong
|
||||||
@ -19,3 +18,8 @@ $(BDIR):
|
|||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f $(BDIR)/*.o $(PROGRAM)
|
rm -f $(BDIR)/*.o $(PROGRAM)
|
||||||
|
|
||||||
|
install:
|
||||||
|
mkdir -p ~/.wxMahjong/
|
||||||
|
cp resources/* -r ~/.wxMahjong/
|
||||||
|
cp build/wxMahjong /usr/local/bin/
|
||||||
|
27
README.md
27
README.md
@ -5,3 +5,30 @@
|
|||||||
</p>
|
</p>
|
||||||
|
|
||||||
Mahjong (solitare) game, written with C++ and [wxWidgets](https://www.wxwidgets.org)
|
Mahjong (solitare) game, written with C++ and [wxWidgets](https://www.wxwidgets.org)
|
||||||
|
|
||||||
|
## Installation instructions:
|
||||||
|
|
||||||
|
Install clang, make and wxWidgets library. e.g:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
sudo pacman -S clang make wxgtk3
|
||||||
|
```
|
||||||
|
|
||||||
|
Build project:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
make
|
||||||
|
```
|
||||||
|
|
||||||
|
Add wxWidgets libs to ld path:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
echo '/usr/local/lib' | tee -a /etc/ld.so.conf
|
||||||
|
ldconfig
|
||||||
|
```
|
||||||
|
|
||||||
|
Install app:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
make install
|
||||||
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user