From 33b0548ba37d0f223aa9d186ce5c72300e267966 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Wikle=20DUBARD?= <loic97429@gmail.com> Date: Thu, 26 Dec 2019 12:12:33 +0100 Subject: [PATCH] =?UTF-8?q?d=C3=A9but=20du=20projet=20makefile=20+=20fichi?= =?UTF-8?q?ers=20du=20prof?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 3 +++ Makefile | 17 +++++++++++++++++ phase1/input.txt | 12 ++++++++++++ phase1/output.txt | 2 ++ phase2/input.txt | 12 ++++++++++++ phase2/output.txt | 9 +++++++++ 6 files changed, 55 insertions(+) create mode 100644 .gitignore create mode 100644 Makefile create mode 100644 phase1/input.txt create mode 100644 phase1/output.txt create mode 100644 phase2/input.txt create mode 100644 phase2/output.txt diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..aa5dbea --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +*.cmi +*.cmo +build/* \ No newline at end of file diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..01e24a1 --- /dev/null +++ b/Makefile @@ -0,0 +1,17 @@ +# $@ nom de la cible +# $< nom de la première dépendance +# $^ liste des dépendances +# $? liste des dépendances plus récentes que la cible +# $* Le nom du fichier sans suffixe + +all: phase1 phase2 + +phase1: + +phase2: + +clean: + rm -rf *.cmi *.cmo + +archive: src/ rapport.pdf + tar zcvf DUBARD_LOIC_IPF_S3.tar.gz $^ \ No newline at end of file diff --git a/phase1/input.txt b/phase1/input.txt new file mode 100644 index 0000000..c15a4b5 --- /dev/null +++ b/phase1/input.txt @@ -0,0 +1,12 @@ +source +puits +9 +source source +source a +source a_b +a_b e +a a_b +a c +c puits +d puits +e puits diff --git a/phase1/output.txt b/phase1/output.txt new file mode 100644 index 0000000..a5c618f --- /dev/null +++ b/phase1/output.txt @@ -0,0 +1,2 @@ +source a c puits +source a_b e puits diff --git a/phase2/input.txt b/phase2/input.txt new file mode 100644 index 0000000..924c22e --- /dev/null +++ b/phase2/input.txt @@ -0,0 +1,12 @@ +source +puits +9 +source source 10 +source a 10 +source a_b 5 +a_b e 7 +a a_b 4 +a c 3 +c puits 7 +d puits 12 +e puits 28 diff --git a/phase2/output.txt b/phase2/output.txt new file mode 100644 index 0000000..dcb01a9 --- /dev/null +++ b/phase2/output.txt @@ -0,0 +1,9 @@ +10 +7 +source a 5 +source a_b 5 +a_b e 7 +a a_b 2 +a c 3 +c puits 3 +e puits 7 -- GitLab