diff --git a/.gitignore b/.gitignore
index 88ba23dca8c8529f8165539c369925a99391a4d1..015283e397942d9251b115e8c1cf90c0d77f63ef 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,34 @@
-a4
+###
+ # GitIgnore file for C Language projects.
+ # See https://git-scm.com/docs/gitignore for documentation.
+ #
+ # Version 1.0
+ ##
+
+
+# Ignore environment settings.
+.vs/
+.vscode/
+vs/
+vscode/
+
+
+# Ignore temporary files.
+[Tt]emp/
+[Tt]empfiles/
+[Tt]emp_files/
+*.tmp
+*.temp
+
+
+# Ignore compiled files.
+*.o
+*.obj
+*.out
+
+
+# Ignore logfiles.
+[Ll]og/
+[Ll]ogs/
+*.log
+*.log.*
diff --git a/makefile b/makefile
index f24bd52f0aba8ec8347d4fff3594449e7d85794c..6655701b1f356b0dfc40654b3c4cc6809af2f1b8 100644
--- a/makefile
+++ b/makefile
@@ -1,2 +1,2 @@
 all:
-	gcc -Wall -Wpedantic -std=c99 *.c -g -o a4 -pthread
+	gcc -Wall -Wpedantic -std=c99 *.c -g -o a4.out -pthread