15 lines
396 B
Makefile
15 lines
396 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
|
||
|
clang++ $(CFLAGS) -stdlib=libc++ -o tv_rename tv_rename.cpp functions.o -lcurl -lc++experimental
|
||
|
|
||
|
functions.o: functions.cpp
|
||
|
clang++ $(CFLAGS) -stdlib=libc++ -c functions.cpp
|
||
|
|