Touchups for MacOS

This commit is contained in:
Dan Buch
2016-12-26 22:12:00 -05:00
parent 1d559bd8ef
commit 0198ca77a7
3 changed files with 28 additions and 16 deletions

22
INSTALL.md Normal file
View File

@ -0,0 +1,22 @@
Compiling and installing
------------------------
Only dependency is C library with POSIX getopt support.
Compiling with GCC or CLANG:
cc -std=gnu99 -Wpedantic -Wall -Wextra -Os -s -o mcrcon mcrcon.c
Note: on Window remember to link with winsockets by adding "-lws2_32" to your compiler command line.
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
Makefile "install" and "uninstall" rules are disabled on windows.