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)