Update makefile

This commit is contained in:
Sheldon Lee 2023-04-01 00:15:53 +01:00
parent dd703c3221
commit 35ba580398

View File

@ -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)