tv_rename/Makefile

15 lines
394 B
Makefile

CC ?= clang
CXX ?= clang++
CFLAGS ?= -O2 -g -Wall -Wextra -std=c++17
default: tv_rename
# using libc++ because libstdc++ has a bug in regex that causes seg fault with long lines
tv_rename: functions.o tv_rename.cpp
$(CXX) $(CFLAGS) -stdlib=libc++ -o tv_rename tv_rename.cpp functions.o -lcurl -lc++experimental
functions.o: functions.cpp
$(CXX) $(CFLAGS) -stdlib=libc++ -c functions.cpp