aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)