vall-e/vall_e.cpp/Makefile

22 lines
445 B
Makefile
Raw Normal View History

2024-12-21 21:48:12 +00:00
CXX = g++
INCS += -I./include
LIBS += -L./libs
2024-12-25 04:39:32 +00:00
LINKS += -lggml -lggml-base -lllama -lencodec -lespeak-ng
2024-12-24 23:54:48 +00:00
FLAGS += -march=native -O3
2024-12-21 21:48:12 +00:00
SRCS := $(shell find ./ -name "*.cpp")
OBJS += $(patsubst %.cpp,%.o,$(SRCS))
TARGET = vall_e
%.o: %.cpp
$(CXX) $(FLAGS) $(INCS) -c $< -o $@
$(TARGET): $(OBJS)
$(CXX) $(FLAGS) $(OBJS) $(LIBS) $(INCS) $(LINKS) -o $(TARGET)
clean:
@-rm -f $(OBJS)
@-rm -f $(TARGET)