diff options
author | HampusM <hampus@hampusmat.com> | 2021-12-11 20:15:50 +0100 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2021-12-11 20:15:50 +0100 |
commit | a2bd411d2ee0e3242fc4345a98501283bc749e1c (patch) | |
tree | f55f7d12b2705026c61a1773732bd802e2028af6 | |
parent | 53bc312a1d684cf1737a1e778f35099b3eb90d82 (diff) |
build: add srcs variable in makefile
-rw-r--r-- | Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) |