mirror of
https://github.com/Tiiffi/mcrcon.git
synced 2025-10-27 19:31:07 -04:00
Update COMPILING
This commit is contained in:
19
COMPILING
19
COMPILING
@ -1,11 +1,14 @@
|
|||||||
####Compiling:
|
|
||||||
|
|
||||||
Compile with GCC or CLANG:
|
Compile with GCC or CLANG:
|
||||||
```cc -std=gnu11 -Wpedantic -Wall -Wextra -O2 -s -o mcrcon mcrcon.c```
|
cc -std=gnu99 -Wpedantic -Wall -Wextra -Os -s -o mcrcon mcrcon.c
|
||||||
|
|
||||||
or just run **make**.
|
Or you can just run "make".
|
||||||
|
|
||||||
|
make - compiles mcrcon
|
||||||
|
make install - installs compiled binaries and manpage to the system
|
||||||
|
make uninstall - removes binaries and manpage from the system
|
||||||
|
|
||||||
|
file install locations:
|
||||||
|
/usr/share/bin/mcrcon
|
||||||
|
/usr/share/man/man1/mcrcon.1
|
||||||
|
|
||||||
On windows, remember to link with winsockets.
|
On Window remember to link with winsockets by adding "-lws2_32" to your compiler command line.
|
||||||
Add ```-lws2_32``` to compiler command line on Mingw GCC.
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|||||||
Reference in New Issue
Block a user