Ajout du test 10
This commit is contained in:
parent
79f285d020
commit
c558d550f0
16
tests/C/test-10-phony/bake/Bakefile
Normal file
16
tests/C/test-10-phony/bake/Bakefile
Normal 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!"
|
0
tests/C/test-10-phony/bake/clean
Normal file
0
tests/C/test-10-phony/bake/clean
Normal file
8
tests/C/test-10-phony/bake/main.c
Normal file
8
tests/C/test-10-phony/bake/main.c
Normal file
@ -0,0 +1,8 @@
|
||||
#include <stdio.h>
|
||||
#include "module.h"
|
||||
|
||||
int main() {
|
||||
printf("Hello from main!\n");
|
||||
print_message();
|
||||
return 0;
|
||||
}
|
6
tests/C/test-10-phony/bake/module.c
Normal file
6
tests/C/test-10-phony/bake/module.c
Normal file
@ -0,0 +1,6 @@
|
||||
#include <stdio.h>
|
||||
#include "module.h"
|
||||
|
||||
void print_message() {
|
||||
printf("Hello from module!\n");
|
||||
}
|
6
tests/C/test-10-phony/bake/module.h
Normal file
6
tests/C/test-10-phony/bake/module.h
Normal file
@ -0,0 +1,6 @@
|
||||
#ifndef MODULE_H
|
||||
#define MODULE_H
|
||||
|
||||
void print_message();
|
||||
|
||||
#endif
|
16
tests/C/test-10-phony/make/Makefile
Normal file
16
tests/C/test-10-phony/make/Makefile
Normal 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!"
|
0
tests/C/test-10-phony/make/clean
Normal file
0
tests/C/test-10-phony/make/clean
Normal file
8
tests/C/test-10-phony/make/main.c
Normal file
8
tests/C/test-10-phony/make/main.c
Normal file
@ -0,0 +1,8 @@
|
||||
#include <stdio.h>
|
||||
#include "module.h"
|
||||
|
||||
int main() {
|
||||
printf("Hello from main!\n");
|
||||
print_message();
|
||||
return 0;
|
||||
}
|
6
tests/C/test-10-phony/make/module.c
Normal file
6
tests/C/test-10-phony/make/module.c
Normal file
@ -0,0 +1,6 @@
|
||||
#include <stdio.h>
|
||||
#include "module.h"
|
||||
|
||||
void print_message() {
|
||||
printf("Hello from module!\n");
|
||||
}
|
6
tests/C/test-10-phony/make/module.h
Normal file
6
tests/C/test-10-phony/make/module.h
Normal file
@ -0,0 +1,6 @@
|
||||
#ifndef MODULE_H
|
||||
#define MODULE_H
|
||||
|
||||
void print_message();
|
||||
|
||||
#endif
|
Loading…
x
Reference in New Issue
Block a user