diff options
Diffstat (limited to 'ttt.c')
| -rw-r--r-- | ttt.c | 41 |
1 files changed, 29 insertions, 12 deletions
@@ -1,20 +1,37 @@ -// Compilation command: +// Copyright 2022 Daniel Martins +// License GPL-3.0-or-later +// +// This program is free software: you can redistribute it and/or modify it under +// the terms of the GNU General Public License as published by the Free Software +// Foundation, either version 3 of the License, or (at your option) any later +// version. +// +// This program is distributed in the hope that it will be useful, but WITHOUT +// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +// FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License along with +// this program. If not, see <https://www.gnu.org/licenses/>. + + +// Compilation commands: // - release dynamics libs : gcc ttt.c -lncursesw -ltinfo -o ttt -Wall -Werror -pedantic -O2 -m64 -s // - release static libs : gcc ttt.c -lncursesw -ltinfo -o ttt -Wall -Werror -pedantic -O2 -m64 -s -static-pie // - debug : gcc ttt.c -lncursesw -ltinfo -o ttt -Wall -Werror -pedantic -g3 -m64 // // Compiler flags: -// -l : libraries to link -// -o : output file name -// -Wall : enables all compiler's warning messages -// -Werror : make all warnings into errors -// -pedantic : issue all the warnings demanded by strict ISO C -// -O : code optimization level (commonly accepted as best: 2) -// -g : debug information level (max: 3) -// -m64 : 64b architecture -// -D : defines for preprocessor -// -static-pie : link statically producing an position-independent executable -// -DNDEBUG : remove assertions from code (not used) +// -l : libraries to link +// -o : output file name +// -Wall : enables all compiler's warning messages +// -Werror : make all warnings into errors +// -pedantic : issue all the warnings demanded by strict ISO C +// -O : code optimization level (commonly accepted as best: 2) +// -g : debug information level (max: 3) +// -m64 : 64b architecture +// -D : defines for preprocessor +// -static-pie : link statically producing an position-independent executable +// -DNDEBUG : remove assertions from code (not used) + #include <assert.h> #include <errno.h> |
