From c81d16c224456db52b897da7e90804eefeb94d42 Mon Sep 17 00:00:00 2001 From: "adrian.spycher" <adrian.spycher@etu.hesge.ch> Date: Tue, 24 Jan 2023 11:15:57 +0100 Subject: [PATCH] add template --- ex01/ex01.c | 13 +++++++++++++ ex01/makefile | 12 ++++++++++++ ex02/ex02.c | 13 +++++++++++++ ex02/makefile | 12 ++++++++++++ ex03/ex03.c | 13 +++++++++++++ ex03/makefile | 12 ++++++++++++ ex04/ex04.c | 13 +++++++++++++ ex04/makefile | 12 ++++++++++++ 8 files changed, 100 insertions(+) create mode 100644 ex01/ex01.c create mode 100644 ex01/makefile create mode 100644 ex02/ex02.c create mode 100644 ex02/makefile create mode 100644 ex03/ex03.c create mode 100644 ex03/makefile create mode 100644 ex04/ex04.c create mode 100644 ex04/makefile diff --git a/ex01/ex01.c b/ex01/ex01.c new file mode 100644 index 0000000..899e4db --- /dev/null +++ b/ex01/ex01.c @@ -0,0 +1,13 @@ +/** + * Adrian Spycher + * Question 01 + */ + +#include <stdlib.h> +#include <stdio.h> + +int main() +{ + + return 0; +} diff --git a/ex01/makefile b/ex01/makefile new file mode 100644 index 0000000..52da3a4 --- /dev/null +++ b/ex01/makefile @@ -0,0 +1,12 @@ +CC:=gcc +CFLAGS:=-g -O3 -Wall -Wextra -pedantic -fsanitize=address -fsanitize=leak +LDFLAGS:=-lm -lSDL2 +NAME:=ex01 + +$(NAME): ex01.o + $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) + +clean: + rm -f *.o $(NAME) + +rebuild: clean $(NAME) \ No newline at end of file diff --git a/ex02/ex02.c b/ex02/ex02.c new file mode 100644 index 0000000..310abba --- /dev/null +++ b/ex02/ex02.c @@ -0,0 +1,13 @@ +/** + * Adrian Spycher + * Question 02 + */ + +#include <stdlib.h> +#include <stdio.h> + +int main() +{ + + return 0; +} diff --git a/ex02/makefile b/ex02/makefile new file mode 100644 index 0000000..8e53b0e --- /dev/null +++ b/ex02/makefile @@ -0,0 +1,12 @@ +CC:=gcc +CFLAGS:=-g -O3 -Wall -Wextra -pedantic -fsanitize=address -fsanitize=leak +LDFLAGS:=-lm -lSDL2 +NAME:=ex02 + +$(NAME): ex02.o + $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) + +clean: + rm -f *.o $(NAME) + +rebuild: clean $(NAME) \ No newline at end of file diff --git a/ex03/ex03.c b/ex03/ex03.c new file mode 100644 index 0000000..6ee547b --- /dev/null +++ b/ex03/ex03.c @@ -0,0 +1,13 @@ +/** + * Adrian Spycher + * Question 03 + */ + +#include <stdlib.h> +#include <stdio.h> + +int main() +{ + + return 0; +} diff --git a/ex03/makefile b/ex03/makefile new file mode 100644 index 0000000..de755c1 --- /dev/null +++ b/ex03/makefile @@ -0,0 +1,12 @@ +CC:=gcc +CFLAGS:=-g -O3 -Wall -Wextra -pedantic -fsanitize=address -fsanitize=leak +LDFLAGS:=-lm -lSDL2 +NAME:=ex03 + +$(NAME): ex03.o + $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) + +clean: + rm -f *.o $(NAME) + +rebuild: clean $(NAME) \ No newline at end of file diff --git a/ex04/ex04.c b/ex04/ex04.c new file mode 100644 index 0000000..913d391 --- /dev/null +++ b/ex04/ex04.c @@ -0,0 +1,13 @@ +/** + * Adrian Spycher + * Question 04 + */ + +#include <stdlib.h> +#include <stdio.h> + +int main() +{ + + return 0; +} diff --git a/ex04/makefile b/ex04/makefile new file mode 100644 index 0000000..07220fc --- /dev/null +++ b/ex04/makefile @@ -0,0 +1,12 @@ +CC:=gcc +CFLAGS:=-g -O3 -Wall -Wextra -pedantic -fsanitize=address -fsanitize=leak +LDFLAGS:=-lm -lSDL2 +NAME:=ex04 + +$(NAME): ex04.o + $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) + +clean: + rm -f *.o $(NAME) + +rebuild: clean $(NAME) \ No newline at end of file -- GitLab