Use CXX variable in Makefile

This commit is contained in:
zvon 2018-09-22 23:11:18 +00:00
parent 48654861d7
commit 06bef53df7

View File

@ -7,8 +7,8 @@ default: tv_rename
# using libc++ because libstdc++ has a bug in regex that causes seg fault with long lines # using libc++ because libstdc++ has a bug in regex that causes seg fault with long lines
tv_rename: functions.o tv_rename.cpp tv_rename: functions.o tv_rename.cpp
clang++ $(CFLAGS) -stdlib=libc++ -o tv_rename tv_rename.cpp functions.o -lcurl -lc++experimental $(CXX) $(CFLAGS) -stdlib=libc++ -o tv_rename tv_rename.cpp functions.o -lcurl -lc++experimental
functions.o: functions.cpp functions.o: functions.cpp
clang++ $(CFLAGS) -stdlib=libc++ -c functions.cpp $(CXX) $(CFLAGS) -stdlib=libc++ -c functions.cpp