diff --git a/testExam/.gitignore b/testExam/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..7405c3851c5c30c683c27be3117bc36546e98c88 --- /dev/null +++ b/testExam/.gitignore @@ -0,0 +1,5 @@ +### C ### +*.o +*.exe +*.out +*.app diff --git a/testExam/exo1/Makefile b/testExam/exo1/Makefile new file mode 100644 index 0000000000000000000000000000000000000000..ce4a545b87dd6786115e14cb3214bc17bd098524 --- /dev/null +++ b/testExam/exo1/Makefile @@ -0,0 +1,13 @@ +#the compiler +CC:=gcc +CFLAGS:=-g -Wall -Wextra -fsanitize=address -fsanitize=leak -std=gnu11 +#linker flags +LDFLAGS:=-lm -lSDL2 -fsanitize=address + +FNAME:=exo1 + +exo1: exo1.o + $(CC) -o $@ $^ $(LDFLAGS) + ./exo1 +clean: + @rm -f *.o exo1 diff --git a/testExam/exo1/exo1.c b/testExam/exo1/exo1.c new file mode 100644 index 0000000000000000000000000000000000000000..1e9a8823c11a248c1bf1c8f3631a9c045d423e38 --- /dev/null +++ b/testExam/exo1/exo1.c @@ -0,0 +1,2 @@ +int main(void){ +} diff --git a/testExam/exo2/Makefile b/testExam/exo2/Makefile new file mode 100644 index 0000000000000000000000000000000000000000..b4031d502f12243d202b733cb9a7e77e7aada671 --- /dev/null +++ b/testExam/exo2/Makefile @@ -0,0 +1,13 @@ +#the compiler +CC:=gcc +CFLAGS:=-g -Wall -Wextra -fsanitize=address -fsanitize=leak -std=gnu11 +#linker flags +LDFLAGS:=-lm -lSDL2 -fsanitize=address + +FNAME:=exo2 + +exo2: exo2.o + $(CC) -o $@ $^ $(LDFLAGS) + ./exo2 +clean: + @rm -f *.o exo2 diff --git a/testExam/exo2/exo2.c b/testExam/exo2/exo2.c new file mode 100644 index 0000000000000000000000000000000000000000..1e9a8823c11a248c1bf1c8f3631a9c045d423e38 --- /dev/null +++ b/testExam/exo2/exo2.c @@ -0,0 +1,2 @@ +int main(void){ +}