From 4d12f96e21283e26d648fb53c00b5f768f4b81ba Mon Sep 17 00:00:00 2001 From: Tiiffi Date: Tue, 15 Nov 2016 20:55:54 +0200 Subject: [PATCH] Update COMPILING --- COMPILING | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/COMPILING b/COMPILING index 6bb1aab..356cf89 100644 --- a/COMPILING +++ b/COMPILING @@ -1,11 +1,14 @@ -####Compiling: - 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. -Add ```-lws2_32``` to compiler command line on Mingw GCC. - ---- +On Window remember to link with winsockets by adding "-lws2_32" to your compiler command line.