tv_rename/Makefile

53 lines
1.4 KiB
Makefile
Raw Normal View History

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
PREFIX ?= /usr/local/bin
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
.PHONY: install
install: tv_rename
install -d $(PREFIX)/
install -m 755 tv_rename $(PREFIX)/
.PHONY: install_gui
install_gui: gui
install -d $(PREFIX)/
install -m 755 tv_rename_gui $(PREFIX)/
2019-01-19 12:40:10 +00:00
tv_rename: functions.o filesystem.o network.o tv_rename.o main.cpp
$(CXX) $(CFLAGS) -o tv_rename main.cpp tv_rename.o functions.o filesystem.o network.o -lcurl
2019-01-03 18:01:43 +00:00
filesystem.o: filesystem.cpp
$(CXX) $(CFLAGS) -c filesystem.cpp
2018-09-22 22:50:42 +00:00
functions.o: functions.cpp
$(CXX) $(CFLAGS) -c functions.cpp
2018-09-22 22:50:42 +00:00
2019-01-19 12:40:10 +00:00
network.o: network.cpp
$(CXX) $(CFLAGS) -c network.cpp
tv_rename.o: tv_rename.cpp
$(CXX) $(CFLAGS) -c tv_rename.cpp
.PHONY: gui
gui: tv_rename_gui
tv_rename_gui: gui.cpp mainwindow.cpp seasonwindow.cpp network.o functions_gui.o filesystem_gui.o tv_rename_gui.o
2019-01-23 19:46:03 +00:00
$(CXX) $(CFLAGS) -o tv_rename_gui gui.cpp mainwindow.cpp seasonwindow.cpp network.o functions_gui.o filesystem_gui.o tv_rename_gui.o `pkg-config gtkmm-3.0 --cflags --libs` -lcurl -DGUI
filesystem_gui.o: filesystem.cpp
$(CXX) $(CFLAGS) -c filesystem.cpp -o filesystem_gui.o -DGUI
functions_gui.o: functions.cpp
$(CXX) $(CFLAGS) -c functions.cpp -o functions_gui.o -DGUI
tv_rename_gui.o: tv_rename.cpp
$(CXX) $(CFLAGS) -c tv_rename.cpp -o tv_rename_gui.o -DGUI