From b4a2c21d014e3fec7115b26d6f052ce106972edb Mon Sep 17 00:00:00 2001 From: Pradheep Unnikrishnan <pradheep.unnikrishnan@etu.unistra.fr> Date: Tue, 19 Mar 2024 17:10:50 +0100 Subject: [PATCH] =?UTF-8?q?Modification=20du=20makefile=20+=20supression?= =?UTF-8?q?=20du=20fichier=20tableau.c=20+=20d=C3=A9claration=20de=20'tabl?= =?UTF-8?q?eau=20t'=20dans=20main.c?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TP3_SUITE_TP2_CLONE/code_modifie/reorganisation/io.c | 1 - TP3_SUITE_TP2_CLONE/code_modifie/reorganisation/main.c | 2 +- TP3_SUITE_TP2_CLONE/code_modifie/reorganisation/makefile | 3 ++- TP3_SUITE_TP2_CLONE/code_modifie/reorganisation/tableau.c | 3 --- 4 files changed, 3 insertions(+), 6 deletions(-) delete mode 100644 TP3_SUITE_TP2_CLONE/code_modifie/reorganisation/tableau.c diff --git a/TP3_SUITE_TP2_CLONE/code_modifie/reorganisation/io.c b/TP3_SUITE_TP2_CLONE/code_modifie/reorganisation/io.c index b99cf44..63e00d3 100644 --- a/TP3_SUITE_TP2_CLONE/code_modifie/reorganisation/io.c +++ b/TP3_SUITE_TP2_CLONE/code_modifie/reorganisation/io.c @@ -1,5 +1,4 @@ #include "io.h" -#include "tableau.c" void affiche() { diff --git a/TP3_SUITE_TP2_CLONE/code_modifie/reorganisation/main.c b/TP3_SUITE_TP2_CLONE/code_modifie/reorganisation/main.c index 9190c97..13c19dc 100755 --- a/TP3_SUITE_TP2_CLONE/code_modifie/reorganisation/main.c +++ b/TP3_SUITE_TP2_CLONE/code_modifie/reorganisation/main.c @@ -4,7 +4,7 @@ #include "io.h" #include "tri.h" - +tableau t; int main(int argc, char **argv) { diff --git a/TP3_SUITE_TP2_CLONE/code_modifie/reorganisation/makefile b/TP3_SUITE_TP2_CLONE/code_modifie/reorganisation/makefile index e674098..e74be3a 100644 --- a/TP3_SUITE_TP2_CLONE/code_modifie/reorganisation/makefile +++ b/TP3_SUITE_TP2_CLONE/code_modifie/reorganisation/makefile @@ -1,3 +1,4 @@ +all : main run clean main: main.o io.o alea.o tri.o remplir.o gcc -o main main.o io.o alea.o tri.o remplir.o @@ -19,7 +20,7 @@ remplir.o: remplir.c remplir.h tableau.h alea.h gcc -c -o remplir.o remplir.c run: - ./main + ./main 10 1000 clean: rm *.o main \ No newline at end of file diff --git a/TP3_SUITE_TP2_CLONE/code_modifie/reorganisation/tableau.c b/TP3_SUITE_TP2_CLONE/code_modifie/reorganisation/tableau.c deleted file mode 100644 index 6c81507..0000000 --- a/TP3_SUITE_TP2_CLONE/code_modifie/reorganisation/tableau.c +++ /dev/null @@ -1,3 +0,0 @@ -#include "tableau.h" - -tableau t; \ No newline at end of file -- GitLab