Ajout de nouveaux fichiers de test et suppression de fichiers obsolètes
This commit is contained in:
21
tests/test-16-strange-variables/make/Makefile
Normal file
21
tests/test-16-strange-variables/make/Makefile
Normal 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)
|
||||
|
8
tests/test-16-strange-variables/make/main.c
Normal file
8
tests/test-16-strange-variables/make/main.c
Normal file
@@ -0,0 +1,8 @@
|
||||
#include <stdio.h>
|
||||
#include "module.h"
|
||||
|
||||
int main(void) {
|
||||
printf("Hello from main!\n");
|
||||
print_message();
|
||||
return 0;
|
||||
}
|
6
tests/test-16-strange-variables/make/module.c
Normal file
6
tests/test-16-strange-variables/make/module.c
Normal file
@@ -0,0 +1,6 @@
|
||||
#include <stdio.h>
|
||||
#include "module.h"
|
||||
|
||||
void print_message(void) {
|
||||
printf("Hello from module!\n");
|
||||
}
|
6
tests/test-16-strange-variables/make/module.h
Normal file
6
tests/test-16-strange-variables/make/module.h
Normal file
@@ -0,0 +1,6 @@
|
||||
#ifndef MODULE_H
|
||||
#define MODULE_H
|
||||
|
||||
void print_message(void);
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user