Makefile: add stuf for gui in Linux

This commit is contained in:
zvon 2020-01-17 14:19:18 +01:00
parent 100834c01f
commit 471f1ac526

View File

@ -60,11 +60,14 @@ progress.o: progress.cpp
.PHONY: gui
gui: tv_rename_gui
tv_rename_gui: gui.cpp mainwindow.cpp seasonwindow.cpp databasewindow.cpp network.o\
functions_gui.o filesystem_u_gui.o tv_rename_gui.o
$(CXX) $(CFLAGS) -o tv_rename_gui gui.cpp mainwindow.cpp seasonwindow.cpp databasewindow.cpp\
network.o functions_gui.o filesystem_u_gui.o\
tv_rename_gui.o `pkg-config gtkmm-3.0 --cflags --libs`\
tv_rename_gui: gui.cpp mainwindow.cpp seasonwindow.cpp databasewindow.cpp\
network.o functions_gui.o filesystem_u_gui.o tv_rename_gui.o\
progress.cpp progresswindow.cpp
$(CXX) $(CFLAGS) -o tv_rename_gui gui.cpp mainwindow.cpp seasonwindow.cpp\
databasewindow.cpp network.o functions_gui.o\
filesystem_u_gui.o tv_rename_gui.o progress.cpp\
progresswindow.cpp\
`pkg-config gtkmm-3.0 --cflags --libs`\
-lcurl -lsqlite3 -DGUI
filesystem_u_gui.o: unix/filesystem.cpp
@ -76,12 +79,11 @@ functions_gui.o: functions.cpp
tv_rename_gui.o: tv_rename.cpp
$(CXX) $(CFLAGS) -c tv_rename.cpp -o tv_rename_gui.o -DGUI
.PHONY: windows
windows: tv_rename.exe
tv_rename.exe: tv_rename.cpp functions.cpp windows/filesystem.cpp windows/network.cpp\
progress.cpp sqlite3.c main.cpp
tv_rename.exe: tv_rename.cpp functions.cpp windows/filesystem.cpp\
windows/network.cpp progress.cpp sqlite3.c main.cpp
$(CXX) -MD -EHsc -Fe"tv_rename" tv_rename.cpp windows/filesystem.cpp\
functions.cpp windows/network.cpp progress.cpp sqlite3.c main.cpp\
-D_WIN32 -DUNICODE -link wininet.lib shlwapi.lib ole32.lib\
@ -93,9 +95,9 @@ windows_gui: tv_rename_gui.exe
tv_rename_gui.exe: tv_rename_gui.res tv_rename_gui.cpp tv_rename.cpp\
windows/filesystem.cpp functions.cpp windows/network.cpp
$(CXX) -MD -EHsc -Fe"tv_rename_gui" tv_rename_gui.cpp tv_rename.cpp\
windows/filesystem.cpp functions.cpp windows/network.cpp -D_WIN32 -DUNICODE\
-DGUI -link wininet.lib shlwapi.lib ole32.lib shell32.lib gdi32.lib\
user32.lib tv_rename_gui.res
windows/filesystem.cpp functions.cpp windows/network.cpp -D_WIN32\
-DUNICODE -DGUI -link wininet.lib shlwapi.lib ole32.lib shell32.lib\
gdi32.lib user32.lib tv_rename_gui.res
tv_rename_gui.res: tv_rename_gui.rc
rc tv_rename_gui.rc