Skip to content
Snippets Groups Projects
Commit 1760db67 authored by dario.genga's avatar dario.genga
Browse files

Add project skeleton

parents
Branches
No related tags found
No related merge requests found
*.o
.idea
ex1/ex1
ex2/ex2
ex3/ex3
ex4/ex4
LIB=-lm
CC=gcc -Wall -Wextra -pedantic -g
ex1: ex1.o
$(CC) $^ -fsanitize=address -fsanitize=leak -o $@ $(LIB)
ex1.o: ex1.c
$(CC) -c $< $(LIB)
clean:
rm -f *.o ex1
/* Author : Dario GENGA
* Date : 25.01.2022
* Description : Contrôle continue 2 - Exercice 1
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
int main() {
return EXIT_SUCCESS;
}
LIB=-lm
CC=gcc -Wall -Wextra -pedantic -g
ex2: ex2.o
$(CC) $^ -fsanitize=address -fsanitize=leak -o $@ $(LIB)
ex2.o: ex2.c
$(CC) -c $< $(LIB)
clean:
rm -f *.o ex2
/* Author : Dario GENGA
* Date : 25.01.2022
* Description : Contrôle continue 2 - Exercice 2
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
int main() {
return EXIT_SUCCESS;
}
LIB=-lm
CC=gcc -Wall -Wextra -pedantic -g
ex3: ex3.o
$(CC) $^ -fsanitize=address -fsanitize=leak -o $@ $(LIB)
ex3.o: ex3.c
$(CC) -c $< $(LIB)
clean:
rm -f *.o ex3
/* Author : Dario GENGA
* Date : 25.01.2022
* Description : Contrôle continue 2 - Exercice 3
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
int main() {
return EXIT_SUCCESS;
}
LIB=-lm
CC=gcc -Wall -Wextra -pedantic -g
ex4: ex4.o
$(CC) $^ -fsanitize=address -fsanitize=leak -o $@ $(LIB)
ex4.o: ex4.c
$(CC) -c $< $(LIB)
clean:
rm -f *.o ex4
/* Author : Dario GENGA
* Date : 25.01.2022
* Description : Contrôle continue 2 - Exercice 4
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
int main() {
return EXIT_SUCCESS;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment