Makefile: compile windows versions with resource files

This commit is contained in:
zvon 2020-04-01 13:58:38 +02:00
parent b8db8baae0
commit 2e366f8b74

View File

@ -96,21 +96,30 @@ progresswindow.o: progresswindow.cpp
windows: tv_rename.exe windows: tv_rename.exe
tv_rename.exe: tv_rename.cpp functions.cpp windows/filesystem.cpp\ tv_rename.exe: tv_rename.cpp functions.cpp windows/filesystem.cpp\
windows/network.cpp progress.cpp sqlite3.c main.cpp windows/network.cpp progress.cpp sqlite3.c main.cpp tv_rename_stringtable.res
$(CXX) -MD -EHsc -Fe"tv_rename" tv_rename.cpp windows/filesystem.cpp\ $(CXX) -MD -EHsc -Fe"tv_rename" tv_rename.cpp windows/filesystem.cpp\
functions.cpp windows/network.cpp progress.cpp sqlite3.c main.cpp\ functions.cpp windows/network.cpp progress.cpp sqlite3.c main.cpp\
-D_WIN32 -DUNICODE -link wininet.lib shlwapi.lib ole32.lib\ -D_WIN32 -DUNICODE -link wininet.lib shlwapi.lib ole32.lib\
shell32.lib user32.lib shell32.lib user32.lib tv_rename_stringtable.res
.PHONY: windows_gui .PHONY: windows_gui
windows_gui: tv_rename_gui.exe windows_gui: tv_rename_gui.exe
tv_rename_gui.exe: windows/gui.cpp windows/mainwindow.cpp\ WINDOWS_GUI_CPP = windows/gui.cpp windows/mainwindow.cpp\
windows/gui_functions.cpp tv_rename.cpp\ windows/gui_functions.cpp tv_rename.cpp\
windows/filesystem.cpp functions.cpp windows/network.cpp\ windows/filesystem.cpp functions.cpp windows/network.cpp\
progress.cpp sqlite3.c windows/patternwindow.cpp\ progress.cpp sqlite3.c windows/patternwindow.cpp\
windows/progresswindow.cpp windows/seasonwindow.cpp\ windows/progresswindow.cpp windows/seasonwindow.cpp\
windows/databasewindow.cpp windows/searchwindow.cpp windows/databasewindow.cpp windows/searchwindow.cpp
$(CXX) -MD -EHsc -Fe"tv_rename_gui" $^ -DGUI -D_WIN32 -DUNICODE\
tv_rename_gui.exe: $(WINDOWS_GUI_CPP) tv_rename.res tv_rename_stringtable.res
$(CXX) -MD -EHsc -Fe"tv_rename_gui" $(WINDOWS_GUI_CPP) -DGUI -D_WIN32 -DUNICODE\
-link wininet.lib shlwapi.lib ole32.lib\ -link wininet.lib shlwapi.lib ole32.lib\
shell32.lib user32.lib gdi32.lib comctl32.lib shell32.lib user32.lib gdi32.lib comctl32.lib tv_rename.res tv_rename_stringtable.res
mt -manifest tv_rename_gui.exe.manifest -outputresource:tv_rename_gui.exe
tv_rename.res: tv_rename.rc
rc $^
tv_rename_stringtable.res: tv_rename_stringtable.rc
rc $^