From 2e366f8b749e02a43035f890b2826404098f74d0 Mon Sep 17 00:00:00 2001 From: zvon Date: Wed, 1 Apr 2020 13:58:38 +0200 Subject: [PATCH] Makefile: compile windows versions with resource files --- Makefile | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index cc1e464..a0890a0 100644 --- a/Makefile +++ b/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 $^