From 3199ee9d422cb4dd6dd445ae6b151d609546cb03 Mon Sep 17 00:00:00 2001
From: "ricardo.dossanto1" <ricardo.dos-santos@etu.hesge.ch>
Date: Mon, 5 Dec 2022 16:31:04 +0100
Subject: [PATCH] Auto commit generation via script

---
 testExam/.gitignore    |  5 +++++
 testExam/exo1/Makefile | 13 +++++++++++++
 testExam/exo1/exo1.c   |  2 ++
 testExam/exo2/Makefile | 13 +++++++++++++
 testExam/exo2/exo2.c   |  2 ++
 5 files changed, 35 insertions(+)
 create mode 100644 testExam/.gitignore
 create mode 100644 testExam/exo1/Makefile
 create mode 100644 testExam/exo1/exo1.c
 create mode 100644 testExam/exo2/Makefile
 create mode 100644 testExam/exo2/exo2.c

diff --git a/testExam/.gitignore b/testExam/.gitignore
new file mode 100644
index 0000000..7405c38
--- /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 0000000..ce4a545
--- /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 0000000..1e9a882
--- /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 0000000..b4031d5
--- /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 0000000..1e9a882
--- /dev/null
+++ b/testExam/exo2/exo2.c
@@ -0,0 +1,2 @@
+int main(void){
+}
-- 
GitLab