Ajout de nouveaux fichiers de test et suppression de fichiers obsolètes

This commit is contained in:
2025-03-07 21:53:09 +01:00
parent ca42e51636
commit f1f378d68d
202 changed files with 0 additions and 1163 deletions

View File

@@ -0,0 +1,16 @@
.PHONY: clean
all: program
program: main.o module.o
gcc -o program main.o module.o
main.o: main.c
gcc -c main.c -o main.o
module.o: module.c
gcc -c module.c -o module.o
clean:
rm -f program main.o module.o
echo "Clean executed!"

View File

View File

@@ -0,0 +1,8 @@
#include <stdio.h>
#include "module.h"
int main() {
printf("Hello from main!\n");
print_message();
return 0;
}

View File

@@ -0,0 +1,6 @@
#include <stdio.h>
#include "module.h"
void print_message() {
printf("Hello from module!\n");
}

View File

@@ -0,0 +1,6 @@
#ifndef MODULE_H
#define MODULE_H
void print_message();
#endif