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