medfall

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 807690760ced8713e09098e715d58d3637036d83
parent a2b502944b1431c96a15fc46b40cc67d14cafec8
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Thu Dec 29 15:54:23 +0200

Use printf instead of echo so build colours work on OpenBSD

Diffstat:
rules.mk | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/rules.mk b/rules.mk @@ -2,7 +2,7 @@ # Create the binaries $(BINS): %: - @echo -e "\e[1;31mbuilding $@\e[0m" + @printf "\e[1;31mbuilding $@\e[0m\n" $(CXX) -o $@ $^ $(LDFLAGS) # Create stb_*.cc and then stb_*.o @@ -12,17 +12,18 @@ STB_OBJS := $(addprefix stb_,$(addsuffix .o,$(STBS))) STB_CXXFLAGS := $(shell echo $(addprefix -DSTB_,$(addsuffix _IMPLEMENTATION,$(STBS))) | tr a-z A-Z) $(STB_OBJS): %.o: %.h + @printf "\e[1;32mbuilding $<\e[0m\n" $(CXX) -x c++ -c -o $@ $< $(CXXFLAGS) $(STB_CXXFLAGS) # Build the game modules $(MODULES): %.so: $(COMMON_OBJS) - @echo -e "\e[1;33mbuilding $@\e[0m" + @printf "\e[1;33mbuilding $@\e[0m\n" $(CXX) -o $@ $^ $(LDFLAGS) -shared # Build *.o from *.cc # The -M* stuff is for generating dependency lists %.o: %.cc .deps - @echo -e "\e[1;32mbuilding $<\e[0m" + @printf "\e[1;32mbuilding $<\e[0m\n" $(CXX) -c -o $@ $< -MMD -MP -MF .deps/$(subst /,_,$*).d $(CXXFLAGS) $(WARNINGS) # Generate visitor headers