From 8eaa257933f3d06ef9092e9ab6d1f2d98056532c Mon Sep 17 00:00:00 2001 From: dam Date: Tue, 10 Jan 2023 17:33:51 +0000 Subject: Added copyright info. --- ttt.c | 41 +++++++++++++++++++++++++++++------------ 1 file changed, 29 insertions(+), 12 deletions(-) (limited to 'ttt.c') diff --git a/ttt.c b/ttt.c index d4cfb29..e25ec60 100644 --- a/ttt.c +++ b/ttt.c @@ -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 . + + +// 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 #include -- cgit v1.2.3