Skip to content
Snippets Groups Projects
Commit cbc38deb authored by jerome.maison's avatar jerome.maison
Browse files

rectification

parent 39763048
No related branches found
No related tags found
No related merge requests found
#The compiler
CC:=gcc
#The flags passed to the compiler
CFLAGS:=-g -std=c99 -Ofast -Wall -Wextra -fsanitize=address -fsanitize=leak -std=gnu11
CFLAGS:=-g -Ofast -Wall -Wextra -fsanitize=address -fsanitize=leak -std=gnu11 -pedantic
#The flags passed to the linker
LDFLAGS:=-lm
exo1: exo1.c
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
ex1: ex1.c
$(CC) $(CFLAGS) -c $@ $^ $(LDFLAGS)
clean:
rm -f *.o ex1
rm -f exo1
#include <stdio.h>
#include <stdlib.h>
int main() {
return 0;
}
\ No newline at end of file
......@@ -7,8 +7,8 @@ LDFLAGS:=-lm
ex2: ex2.c
exo2: exo2.c
$(CC) $(CFLAGS) -c $@ $^ $(LDFLAGS)
clean:
rm -f *.o ex2
rm -f *.o exo2
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment