From a2bd411d2ee0e3242fc4345a98501283bc749e1c Mon Sep 17 00:00:00 2001 From: HampusM Date: Sat, 11 Dec 2021 20:15:50 +0100 Subject: build: add srcs variable in makefile --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Makefile') 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) -- cgit v1.2.3-18-g5258