diff options
| author | dam <dam@gudinoff> | 2022-10-17 23:32:10 +0000 |
|---|---|---|
| committer | dam <dam@gudinoff> | 2022-10-17 23:32:10 +0000 |
| commit | ab4ce6148563b21b6d41b09a2448bd63765ffa21 (patch) | |
| tree | d731c45f913cdb2f423017400d6f9ad3d1ba0332 /main.c | |
| parent | a915b49f8d46e9d861bd9755a9a9a4d67aa45771 (diff) | |
| download | task-time-tracker-ab4ce6148563b21b6d41b09a2448bd63765ffa21.tar.zst task-time-tracker-ab4ce6148563b21b6d41b09a2448bd63765ffa21.zip | |
Improved compilation commands. Added bonus items to to-do list.
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 18 |
1 files changed, 16 insertions, 2 deletions
@@ -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). |
