From 53fd70391160abb76afbd675dbc68a7a553291ed Mon Sep 17 00:00:00 2001 From: Tiiffi Date: Mon, 2 Dec 2024 09:42:44 +0200 Subject: [PATCH] Rename INSTALL.md to BUILDING.md --- BUILDING.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 BUILDING.md diff --git a/BUILDING.md b/BUILDING.md new file mode 100644 index 0000000..96ae781 --- /dev/null +++ b/BUILDING.md @@ -0,0 +1,22 @@ +Building and installing +----------------------- + +Only dependency is C library and POSIX getopt support. + +Compiling with GCC or CLANG: + + cc -std=gnu99 -Wpedantic -Wall -Wextra -O2 -o mcrcon mcrcon.c + +Note: on Windows remember to link with winsock 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/local/bin/mcrcon + /usr/local/share/man/man1/mcrcon.1 + +Makefile "**install**" and "**uninstall**" rules are disabled on windows.