39 lines
1.1 KiB
Makefile
39 lines
1.1 KiB
Makefile
CC ?= clang
|
|
CXX ?= clang++
|
|
CFLAGS ?= -O2 -Wall -Wextra -std=c++11
|
|
|
|
.PHONY: default
|
|
default: tv_rename
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
rm -f *.o tv_rename
|
|
|
|
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
|
|
|
|
filesystem.o: filesystem.cpp
|
|
$(CXX) $(CFLAGS) -c filesystem.cpp
|
|
|
|
functions.o: functions.cpp
|
|
$(CXX) $(CFLAGS) -c functions.cpp
|
|
|
|
network.o: network.cpp
|
|
$(CXX) $(CFLAGS) -c network.cpp
|
|
|
|
tv_rename.o: tv_rename.cpp
|
|
$(CXX) $(CFLAGS) -c tv_rename.cpp
|
|
|
|
gui: gui.cpp mainwindow.cpp seasonwindow.cpp network.o functions_gui.o filesystem_gui.o tv_rename_gui.o
|
|
$(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
|
|
|