GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Build/buildcxx.make at master · charlessolar/Build Expand file tree/ Copy pathbuildcxx.makeMore file actions 34 lines (27 loc) · 1.34 KB / Copy pathbuildcxx.makeFile metadata and controls34 lines (27 loc) · 1.34 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 # Contains implicit rules to build .cpp files # VPATH helps make find the c files VPATH = $(addprefix $(SOURCE_DIR)/, $(dir $(SOURCES))) $(addprefix $(SOURCE_DIR)/, $(dir $(EXTRA_SOURCES))) OBJECTS := $(patsubst %.cpp, $(RINT_DIR)/%.o, $(notdir $(SOURCES))) DOBJECTS := $(patsubst %.cpp, $(DINT_DIR)/%.o, $(notdir $(SOURCES))) # Note about the cp, sed, rm.. I am sure it might seem strange. # The 4 lines make it so that if you compile, then change one header file, then recompile, # all the c files that depend on that header file will recompile. # Its very handy # Read: http://make.paulandlesley.org/autodep.html $(OBJECTS): $(RINT_DIR)/%.o: %.cpp +@[ -d $(dir $@) ] || mkdir -p $(dir $@) @echo " CXX " $< @$(CXX) $(INCLUDE) $(RCXXFLAGS) -o $@ -c $< @cp $(UINT_DIR)/$*.d $(UINT_DIR)/$*.P; \ sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ -e '/^$$/ d' -e 's/$$/ :/' < $(UINT_DIR)/$*.d >> $(UINT_DIR)/$*.P; \ rm -f $(UINT_DIR)/$*.d $(DOBJECTS): $(DINT_DIR)/%.o: %.cpp +@[ -d $(dir $@) ] || mkdir -p $(dir $@) @echo " CXX " $< @$(CXX) $(INCLUDE) $(DCXXFLAGS) -o $@ -c $< @cp $(UINT_DIR)/$*.d $(UINT_DIR)/$*.P; \ sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ -e '/^$$/ d' -e 's/$$/ :/' < $(UINT_DIR)/$*.d >> $(UINT_DIR)/$*.P; \ rm -f $(UINT_DIR)/$*.d -include $(patsubst %.cpp, $(UINT_DIR)/%.P, $(notdir $(SOURCES))) |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |