medfall

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

commit d23807a9fe2852c60155fc6575f220adf082808a
parent b8733d61093a2963bf91694197bdfc225fb06bd5
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Mon Feb  1 20:18:19 +0000

Put the stb stuff together

Diffstat:
rules.mk | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/rules.mk b/rules.mk @@ -1,8 +1,5 @@ # This file contains Makefile rules to actually build things -# The STB libraries need you to pass -DSTB_*_IMPLEMENTATION to get the actual code -STB_CXXFLAGS := $(shell echo $(addprefix -DSTB_,$(addsuffix _IMPLEMENTATION,$(STBS))) | tr a-z A-Z) - # Create the binaries $(BINS): %: $(CXX) -o $@ $^ $(LDFLAGS) @@ -14,6 +11,9 @@ STB_CCS := $(addprefix stb_,$(addsuffix .cc,$(STBS))) $(STB_CCS): %.cc: %.h cp $^ $*.cc +# The STB libraries need you to pass -DSTB_*_IMPLEMENTATION to get the actual code +STB_CXXFLAGS := $(shell echo $(addprefix -DSTB_,$(addsuffix _IMPLEMENTATION,$(STBS))) | tr a-z A-Z) + $(STB_OBJS): %.o: %.cc $(CXX) -c -o $@ $*.cc $(CXXFLAGS) $(STB_CXXFLAGS)