commit 97cfe7557360d80877c49f5915e6b23d4ddab509 parent 9afcb758964b438ff32b9e134c34dbc47e927a5a Author: Michael Savage <mikejsavage@gmail.com> Date: Wed Jan 11 23:07:31 +0200 Less spammy object builds, CXXFLAGS at the front Diffstat:
rules.mk | | | 4 | ++-- |
diff --git a/rules.mk b/rules.mk @@ -13,7 +13,7 @@ STB_CXXFLAGS := $(shell echo $(addprefix -DSTB_,$(addsuffix _IMPLEMENTATION,$(ST $(STB_OBJS): %.o: %.h @printf "\e[1;32mbuilding $<\e[0m\n" - $(CXX) -x c++ -c -o $@ $< $(CXXFLAGS) $(STB_CXXFLAGS) + @$(CXX) $(STB_CXXFLAGS) $(CXXFLAGS) -x c++ -c -o $@ $< # Build the game modules $(MODULES): %.so: $(COMMON_OBJS) @@ -25,7 +25,7 @@ $(MODULES): %.so: $(COMMON_OBJS) %.o: %.cc @printf "\e[1;32mbuilding $<\e[0m\n" @mkdir -p .deps - $(CXX) -c -o $@ $< -MMD -MP -MF .deps/$(subst /,_,$*).d $(CXXFLAGS) $(WARNINGS) + @$(CXX) $(CXXFLAGS) -c -o $@ $< -MMD -MP -MF .deps/$(subst /,_,$*).d $(WARNINGS) # Build *.a from *.o %.a: