From ab4ce6148563b21b6d41b09a2448bd63765ffa21 Mon Sep 17 00:00:00 2001 From: dam Date: Mon, 17 Oct 2022 23:32:10 +0000 Subject: Improved compilation commands. Added bonus items to to-do list. --- main.c | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'main.c') diff --git a/main.c b/main.c index 4331792..10d5142 100644 --- a/main.c +++ b/main.c @@ -1,6 +1,20 @@ // Compilation command: -// - release: gcc main.c -Wall -Werror -pedantic -O2 -m64 -lncursesw -o ttt -// - debug : gcc main.c -Wall -Werror -pedantic -g3 -m64 -lncursesw -o ttt -D DEBUG +// - release dynamics libs : gcc main.c -lncursesw -ltinfo -o ttt -Wall -Werror -pedantic -O2 -m64 -s +// - release static libs : gcc main.c -lncursesw -ltinfo -o ttt -Wall -Werror -pedantic -O2 -m64 -s -static-pie +// - debug : gcc main.c -lncursesw -ltinfo -o ttt -Wall -Werror -pedantic -g3 -m64 -D DEBUG +// +// Compiler flags: +// -l : libraries to link +// -o : output file name +// -Wall : TODO +// -Werror : TODO +// -pedantic : TODO +// -O : code optimization level +// -g : TODO +// -m64 : 64b architecture +// -D : defines for preprocessor +// -static-pie : link statically producing an position-independent executable +// // Usage hints: // - To change the app data path, overwride the environment variable HOME (USERPROFILE for windows users). -- cgit v1.2.3