include build/arch.mk include build/configs.mk NAME = sapiserver BINDIR = bin/$(ARCH)/$(CONFIG) OBJDIR = obj/$(ARCH)/$(CONFIG) # Any C++ file in src/ is automatically picked up. CXXSRCS = $(wildcard src/*.cpp) $(wildcard src/*/*.cpp) VPATH = $(dir $(CXXSRCS)) OBJS = $(addprefix $(OBJDIR)/,$(notdir $(CXXSRCS:.cpp=.o))) .PHONY: all dumpinfo clean matrix all: $(BINDIR)/$(NAME).exe # dir rules $(BINDIR)/: echo -e "\e[95mMKDIR $@\e[0m" mkdir -p $(BINDIR) $(OBJDIR)/: echo -e "\e[95mMKDIR $@\e[0m" mkdir -p $(OBJDIR) include build/rules.mk clean: echo -e "\e[91mCleaning... \e[0m" rm -rf $(BINDIR)/ $(OBJS) $V.SILENT: # Include dependency files. -include $(OBJS:.o=.d)