Makefile: compile windows versions with resource files
This commit is contained in:
parent
b8db8baae0
commit
2e366f8b74
19
Makefile
19
Makefile
@ -96,21 +96,30 @@ progresswindow.o: progresswindow.cpp
|
||||
windows: tv_rename.exe
|
||||
|
||||
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\
|
||||
functions.cpp windows/network.cpp progress.cpp sqlite3.c main.cpp\
|
||||
-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
|
||||
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/filesystem.cpp functions.cpp windows/network.cpp\
|
||||
progress.cpp sqlite3.c windows/patternwindow.cpp\
|
||||
windows/progresswindow.cpp windows/seasonwindow.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\
|
||||
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 $^
|
||||
|
Loading…
Reference in New Issue
Block a user