2018-09-22 22:50:42 +00:00
|
|
|
CC ?= clang
|
|
|
|
CXX ?= clang++
|
2019-01-07 21:20:17 +00:00
|
|
|
CFLAGS ?= -O2 -Wall -Wextra -std=c++11
|
2018-09-22 22:50:42 +00:00
|
|
|
|
2019-01-04 19:19:08 +00:00
|
|
|
.PHONY: default
|
2018-09-22 22:50:42 +00:00
|
|
|
default: tv_rename
|
|
|
|
|
2019-01-04 19:19:08 +00:00
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
|
|
rm -f *.o tv_rename
|
|
|
|
|
2019-01-03 18:01:43 +00:00
|
|
|
tv_rename: functions.o filesystem.o tv_rename.cpp
|
2019-01-03 19:16:28 +00:00
|
|
|
$(CXX) $(CFLAGS) -o tv_rename tv_rename.cpp functions.o filesystem.o -lcurl
|
2019-01-03 18:01:43 +00:00
|
|
|
|
|
|
|
filesystem.o: filesystem.cpp
|
2019-01-03 19:16:28 +00:00
|
|
|
$(CXX) $(CFLAGS) -c filesystem.cpp
|
2018-09-22 22:50:42 +00:00
|
|
|
|
|
|
|
functions.o: functions.cpp
|
2019-01-03 19:16:28 +00:00
|
|
|
$(CXX) $(CFLAGS) -c functions.cpp
|
2018-09-22 22:50:42 +00:00
|
|
|
|