2018-09-22 22:50:42 +00:00
|
|
|
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
|
2018-09-22 23:11:18 +00:00
|
|
|
$(CXX) $(CFLAGS) -stdlib=libc++ -o tv_rename tv_rename.cpp functions.o -lcurl -lc++experimental
|
2018-09-22 22:50:42 +00:00
|
|
|
|
|
|
|
functions.o: functions.cpp
|
2018-09-22 23:11:18 +00:00
|
|
|
$(CXX) $(CFLAGS) -stdlib=libc++ -c functions.cpp
|
2018-09-22 22:50:42 +00:00
|
|
|
|