aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2021-12-11 20:15:50 +0100
committerHampusM <hampus@hampusmat.com>2021-12-11 20:15:50 +0100
commita2bd411d2ee0e3242fc4345a98501283bc749e1c (patch)
treef55f7d12b2705026c61a1773732bd802e2028af6
parent53bc312a1d684cf1737a1e778f35099b3eb90d82 (diff)
build: add srcs variable in makefile
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 4b9bb98..f90b64e 100644
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,12 @@
TARGET=mazerator
+SRCS=$(TARGET).c stack.c
CC=gcc
CFLAGS=-Wall
all: $(TARGET)
$(TARGET): $(TARGET).c
- $(CC) $(CFLAGS) $(TARGET).c -o $(TARGET)
+ $(CC) $(CFLAGS) $(SRCS) -o $(TARGET)
clean:
$(RM) $(TARGET)