From 35ba5803983c7189af7c8dab5cbd8a6fce20dac3 Mon Sep 17 00:00:00 2001 From: Sheldon Lee Date: Sat, 1 Apr 2023 00:15:53 +0100 Subject: [PATCH] Update makefile --- makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/makefile b/makefile index c3e2bf4..eaa12b3 100644 --- a/makefile +++ b/makefile @@ -11,7 +11,7 @@ LDFLAGS = -lsfml-graphics -lsfml-window -lsfml-system .PHONY: all run clean -all: $(TARGET) $(OBJD) +all: $(TARGET) $(TARGET): $(OBJS) $(CC) $^ -o $(TARGET) $(LDFLAGS) $(CCFLAGS) @@ -23,6 +23,6 @@ $(OBJS): $(OBJD)/%.o: %.cpp clean: rm -r $(TARGET) $(OBJD) -run: +run: main ./$(TARGET)