2024-07-17 21:38:27 -04:00
|
|
|
include build/arch.mk
|
|
|
|
include build/configs.mk
|
|
|
|
|
2024-07-18 05:05:35 -04:00
|
|
|
NAME = speech2
|
2024-07-17 21:38:27 -04:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2024-07-18 03:54:12 -04:00
|
|
|
all: $(BINDIR)/$(NAME).dll
|
2024-07-17 21:38:27 -04:00
|
|
|
|
|
|
|
# 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)
|