From 2ca705be7004f2a335f89b5e9aecf25767a01cdd Mon Sep 17 00:00:00 2001 From: Louay DARDOURI <louay.dardouri@etu.u-pec.fr> Date: Wed, 12 Mar 2025 22:04:39 +0100 Subject: [PATCH] =?UTF-8?q?Suppression=20des=20fichiers=20Bakefile=20et=20?= =?UTF-8?q?Makefile=20ainsi=20que=20des=20fichiers=20sources=20associ?= =?UTF-8?q?=C3=A9s=20pour=20la=20gestion=20des=20boucles=20for?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bake/Bakefile | 25 ------------------- .../test-12-GestionDesBouclesFor/bake/main.c | 10 -------- .../bake/utils1.c | 5 ---- .../bake/utils1.h | 6 ----- .../bake/utils2.c | 5 ---- .../bake/utils2.h | 6 ----- .../make/Makefile | 25 ------------------- .../test-12-GestionDesBouclesFor/make/main.c | 10 -------- .../make/utils1.c | 5 ---- .../make/utils1.h | 6 ----- .../make/utils2.c | 5 ---- .../make/utils2.h | 6 ----- 12 files changed, 114 deletions(-) delete mode 100644 tests/test-groupe-lenny-thomas-khalid/test-12-GestionDesBouclesFor/bake/Bakefile delete mode 100644 tests/test-groupe-lenny-thomas-khalid/test-12-GestionDesBouclesFor/bake/main.c delete mode 100644 tests/test-groupe-lenny-thomas-khalid/test-12-GestionDesBouclesFor/bake/utils1.c delete mode 100644 tests/test-groupe-lenny-thomas-khalid/test-12-GestionDesBouclesFor/bake/utils1.h delete mode 100644 tests/test-groupe-lenny-thomas-khalid/test-12-GestionDesBouclesFor/bake/utils2.c delete mode 100644 tests/test-groupe-lenny-thomas-khalid/test-12-GestionDesBouclesFor/bake/utils2.h delete mode 100644 tests/test-groupe-lenny-thomas-khalid/test-12-GestionDesBouclesFor/make/Makefile delete mode 100644 tests/test-groupe-lenny-thomas-khalid/test-12-GestionDesBouclesFor/make/main.c delete mode 100644 tests/test-groupe-lenny-thomas-khalid/test-12-GestionDesBouclesFor/make/utils1.c delete mode 100644 tests/test-groupe-lenny-thomas-khalid/test-12-GestionDesBouclesFor/make/utils1.h delete mode 100644 tests/test-groupe-lenny-thomas-khalid/test-12-GestionDesBouclesFor/make/utils2.c delete mode 100644 tests/test-groupe-lenny-thomas-khalid/test-12-GestionDesBouclesFor/make/utils2.h diff --git a/tests/test-groupe-lenny-thomas-khalid/test-12-GestionDesBouclesFor/bake/Bakefile b/tests/test-groupe-lenny-thomas-khalid/test-12-GestionDesBouclesFor/bake/Bakefile deleted file mode 100644 index fd1ff29..0000000 --- a/tests/test-groupe-lenny-thomas-khalid/test-12-GestionDesBouclesFor/bake/Bakefile +++ /dev/null @@ -1,25 +0,0 @@ -# Bakefile - -# Define variables -SRC_DIR = . -BUILD_DIR = . - -# Target to create directories -setup: - mkdir -p $(BUILD_DIR) - -# Target to compile the C source files using a loop -compile: setup - for file in $(SRC_DIR)/*.c; do gcc -c $$file -o $(BUILD_DIR)/$(notdir $(basename $$file .c)).o; done - -# Target to link the object files into an executable -link: compile - gcc -o $(BUILD_DIR)/test_program $(BUILD_DIR)/*.o - -# Target to run the compiled program -run: link - $(BUILD_DIR)/test_program - -# Clean target to remove created directories and files -clean: - rm -rf $(BUILD_DIR) diff --git a/tests/test-groupe-lenny-thomas-khalid/test-12-GestionDesBouclesFor/bake/main.c b/tests/test-groupe-lenny-thomas-khalid/test-12-GestionDesBouclesFor/bake/main.c deleted file mode 100644 index 16f45cd..0000000 --- a/tests/test-groupe-lenny-thomas-khalid/test-12-GestionDesBouclesFor/bake/main.c +++ /dev/null @@ -1,10 +0,0 @@ -#include <stdio.h> -#include "utils1.h" -#include "utils2.h" - -int main() { - printf("Main program started!\n"); - print_hello_from_utils1(); - print_hello_from_utils2(); - return 0; -} diff --git a/tests/test-groupe-lenny-thomas-khalid/test-12-GestionDesBouclesFor/bake/utils1.c b/tests/test-groupe-lenny-thomas-khalid/test-12-GestionDesBouclesFor/bake/utils1.c deleted file mode 100644 index 58bc03d..0000000 --- a/tests/test-groupe-lenny-thomas-khalid/test-12-GestionDesBouclesFor/bake/utils1.c +++ /dev/null @@ -1,5 +0,0 @@ -#include <stdio.h> - -void print_hello_from_utils1() { - printf("Hello from Utils1!\n"); -} diff --git a/tests/test-groupe-lenny-thomas-khalid/test-12-GestionDesBouclesFor/bake/utils1.h b/tests/test-groupe-lenny-thomas-khalid/test-12-GestionDesBouclesFor/bake/utils1.h deleted file mode 100644 index ecdcfbc..0000000 --- a/tests/test-groupe-lenny-thomas-khalid/test-12-GestionDesBouclesFor/bake/utils1.h +++ /dev/null @@ -1,6 +0,0 @@ -#ifndef UTILS1_H -#define UTILS1_H - -void print_hello_from_utils1(); - -#endif diff --git a/tests/test-groupe-lenny-thomas-khalid/test-12-GestionDesBouclesFor/bake/utils2.c b/tests/test-groupe-lenny-thomas-khalid/test-12-GestionDesBouclesFor/bake/utils2.c deleted file mode 100644 index 42e9f62..0000000 --- a/tests/test-groupe-lenny-thomas-khalid/test-12-GestionDesBouclesFor/bake/utils2.c +++ /dev/null @@ -1,5 +0,0 @@ -#include <stdio.h> - -void print_hello_from_utils2() { - printf("Hello from Utils2!\n"); -} diff --git a/tests/test-groupe-lenny-thomas-khalid/test-12-GestionDesBouclesFor/bake/utils2.h b/tests/test-groupe-lenny-thomas-khalid/test-12-GestionDesBouclesFor/bake/utils2.h deleted file mode 100644 index 7da73aa..0000000 --- a/tests/test-groupe-lenny-thomas-khalid/test-12-GestionDesBouclesFor/bake/utils2.h +++ /dev/null @@ -1,6 +0,0 @@ -#ifndef UTILS2_H -#define UTILS2_H - -void print_hello_from_utils2(); - -#endif diff --git a/tests/test-groupe-lenny-thomas-khalid/test-12-GestionDesBouclesFor/make/Makefile b/tests/test-groupe-lenny-thomas-khalid/test-12-GestionDesBouclesFor/make/Makefile deleted file mode 100644 index 907589c..0000000 --- a/tests/test-groupe-lenny-thomas-khalid/test-12-GestionDesBouclesFor/make/Makefile +++ /dev/null @@ -1,25 +0,0 @@ -# Makefile - -# Define variables -SRC_DIR = . -BUILD_DIR = . - -# Target to create directories -setup: - mkdir -p $(BUILD_DIR) - -# Target to compile the C source files using a loop -compile: setup - for file in $(SRC_DIR)/*.c; do gcc -c $$file -o $(BUILD_DIR)/$(notdir $(basename $$file .c)).o; done - -# Target to link the object files into an executable -link: compile - gcc -o $(BUILD_DIR)/test_program $(BUILD_DIR)/*.o - -# Target to run the compiled program -run: link - $(BUILD_DIR)/test_program - -# Clean target to remove created directories and files -clean: - rm -rf $(BUILD_DIR) diff --git a/tests/test-groupe-lenny-thomas-khalid/test-12-GestionDesBouclesFor/make/main.c b/tests/test-groupe-lenny-thomas-khalid/test-12-GestionDesBouclesFor/make/main.c deleted file mode 100644 index 16f45cd..0000000 --- a/tests/test-groupe-lenny-thomas-khalid/test-12-GestionDesBouclesFor/make/main.c +++ /dev/null @@ -1,10 +0,0 @@ -#include <stdio.h> -#include "utils1.h" -#include "utils2.h" - -int main() { - printf("Main program started!\n"); - print_hello_from_utils1(); - print_hello_from_utils2(); - return 0; -} diff --git a/tests/test-groupe-lenny-thomas-khalid/test-12-GestionDesBouclesFor/make/utils1.c b/tests/test-groupe-lenny-thomas-khalid/test-12-GestionDesBouclesFor/make/utils1.c deleted file mode 100644 index 58bc03d..0000000 --- a/tests/test-groupe-lenny-thomas-khalid/test-12-GestionDesBouclesFor/make/utils1.c +++ /dev/null @@ -1,5 +0,0 @@ -#include <stdio.h> - -void print_hello_from_utils1() { - printf("Hello from Utils1!\n"); -} diff --git a/tests/test-groupe-lenny-thomas-khalid/test-12-GestionDesBouclesFor/make/utils1.h b/tests/test-groupe-lenny-thomas-khalid/test-12-GestionDesBouclesFor/make/utils1.h deleted file mode 100644 index ecdcfbc..0000000 --- a/tests/test-groupe-lenny-thomas-khalid/test-12-GestionDesBouclesFor/make/utils1.h +++ /dev/null @@ -1,6 +0,0 @@ -#ifndef UTILS1_H -#define UTILS1_H - -void print_hello_from_utils1(); - -#endif diff --git a/tests/test-groupe-lenny-thomas-khalid/test-12-GestionDesBouclesFor/make/utils2.c b/tests/test-groupe-lenny-thomas-khalid/test-12-GestionDesBouclesFor/make/utils2.c deleted file mode 100644 index 42e9f62..0000000 --- a/tests/test-groupe-lenny-thomas-khalid/test-12-GestionDesBouclesFor/make/utils2.c +++ /dev/null @@ -1,5 +0,0 @@ -#include <stdio.h> - -void print_hello_from_utils2() { - printf("Hello from Utils2!\n"); -} diff --git a/tests/test-groupe-lenny-thomas-khalid/test-12-GestionDesBouclesFor/make/utils2.h b/tests/test-groupe-lenny-thomas-khalid/test-12-GestionDesBouclesFor/make/utils2.h deleted file mode 100644 index 7da73aa..0000000 --- a/tests/test-groupe-lenny-thomas-khalid/test-12-GestionDesBouclesFor/make/utils2.h +++ /dev/null @@ -1,6 +0,0 @@ -#ifndef UTILS2_H -#define UTILS2_H - -void print_hello_from_utils2(); - -#endif