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,21 @@
COMPILER = gcc
CFLAGS = -Wall \
-ansi \
-pedantic
OUTPUT = program
OBJS = main.o module.o
# Règle principale
$(OUTPUT): $(OBJS)
$(COMPILER) $(CFLAGS) -o $(OUTPUT) $(OBJS)
main.o: main.c
$(COMPILER) $(CFLAGS) -c main.c -o main.o
module.o: module.c
$(COMPILER) $(CFLAGS) -c module.c -o module.o
clean:
rm -f $(OUTPUT) $(OBJS)

View File

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

View File

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

View File

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