Created
January 20, 2024 06:38
-
-
Save WarrenTheRabbit/4f97a40c7fc058dddedf4d5218b8c823 to your computer and use it in GitHub Desktop.
Diff of the Last Commit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Makefile b/Makefile | |
index 832848d..f9292c9 100644 | |
--- a/Makefile | |
+++ b/Makefile | |
@@ -5,13 +5,14 @@ PATH_UNITY = $(PATH_PROJECT)/Unity/src | |
TEST_RUNNER = $(PATH_TESTS)/test_runner_template.c | |
TEST_RUNNER_OUT = $(PATH_TESTS)/unity_test_runner.out | |
+CC_FLAGS = -Wall -Wextra -Werror -pedantic | |
.PHONY: clean run | |
all: build run | |
build: $(TEST_RUNNER) | |
- gcc -I$(PATH_UNITY) $(PATH_UNITY)/unity.c $(TEST_RUNNER) -o $(TEST_RUNNER_OUT) | |
+ gcc $(CC_FLAGS) -I$(PATH_UNITY) $(PATH_UNITY)/unity.c $(TEST_RUNNER) -o $(TEST_RUNNER_OUT) | |
run: | |
echo -n "$(notdir $(TEST_RUNNER)) tests:" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment