We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce8f92f commit b5af0e5Copy full SHA for b5af0e5
Makefile
@@ -0,0 +1,19 @@
1
+# Compiler and compiler flags
2
+CC = gcc
3
+CFLAGS = -g -std=c11 -Wall -Wextra -Werror -Wshadow
4
+LDFLAGS = -lm
5
+
6
+# Source files and executable name
7
+SRCS = filter.c helpers.c
8
+TARGET = filter
9
10
+# Default target
11
+all: $(TARGET)
12
13
+# Rule to link the object files into the final executable
14
+$(TARGET): $(SRCS)
15
+ $(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS)
16
17
+# Rule to clean up generated files
18
+clean:
19
+ rm -f $(TARGET)
0 commit comments