tv_rename/Makefile

18 lines
483 B
Makefile
Raw Normal View History

2018-09-22 22:50:42 +00:00
CC ?= clang
CXX ?= clang++
2019-01-03 18:01:43 +00:00
CFLAGS ?= -O2 -g -Wall -Wextra -std=c++11
2018-09-22 22:50:42 +00:00
default: tv_rename
# using libc++ because libstdc++ has a bug in regex that causes seg fault with long lines
2019-01-03 18:01:43 +00:00
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
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