Skip to content

Commit

Permalink
create out folder now in makefile fun cool yea lets go
Browse files Browse the repository at this point in the history
  • Loading branch information
tr1ngledev committed May 15, 2024
1 parent a5b5e74 commit d407a40
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,14 @@ OBJS = $(SRCS:.cpp=.o)

default: compile

compile: $(OBJS)
compile: $(OBJS) out
$(CXX) $(CXXFLAGS) $(OBJS) $(LDFLAGS) -o $(TARGET)

%.o: %.cpp
$(CXX) $(CXXFLAGS) -c $< -o $@

clean:
rm $(TARGET)
rm $(TARGET) $(OBJS)

out:
mkdir out

0 comments on commit d407a40

Please sign in to comment.