small target change for object files
This commit is contained in:
parent
9e92f49757
commit
edeb39adc2
1 changed files with 4 additions and 4 deletions
8
Makefile
8
Makefile
|
@ -14,7 +14,7 @@ PREPROCESSED = preprocessed
|
|||
_PROG = HitObjectDrawable.cpp main.cpp osuparser.cpp TextureManager.cpp
|
||||
PROG = $(addprefix $(SRC)/, $(_PROG))
|
||||
|
||||
OBJ = $(_PROG:.cpp=.o)
|
||||
OBJ = $(addprefix $(BIN)/, $(_PROG:.cpp=.o))
|
||||
|
||||
.PHONY: all clean
|
||||
|
||||
|
@ -25,10 +25,10 @@ dirs:
|
|||
mkdir -p $(PREPROCESSED)
|
||||
|
||||
$(NAME): $(OBJ)
|
||||
$(CXX) $(addprefix $(BIN)/, $^) $(LDFLAGS) -o $(BIN)/$@
|
||||
$(CXX) $^ $(LDFLAGS) -o $(BIN)/$@
|
||||
|
||||
%.o: $(SRC)/%.cpp
|
||||
$(CXX) -c $< $(CXXFLAGS) -o $(BIN)/$@
|
||||
$(BIN)/%.o: $(SRC)/%.cpp
|
||||
$(CXX) -c $< $(CXXFLAGS) -o $@
|
||||
|
||||
clean:
|
||||
rm -rf $(addprefix $(BIN)/, $(OBJ))
|
||||
|
|
Loading…
Reference in a new issue