Makefile: add new files, break up tv_rename_gui

This commit is contained in:
zvon 2020-02-12 11:49:48 +01:00
parent 623720c9e3
commit be4c2206f6

View File

@ -5,6 +5,9 @@ PREFIX ?= /usr/local/bin
APPDIR ?= /usr/share/applications APPDIR ?= /usr/share/applications
ICONDIR ?= /usr/share/icons/hicolor ICONDIR ?= /usr/share/icons/hicolor
GTKFLAGS = `pkg-config gtkmm-3.0 --cflags`
GTKLIBS = `pkg-config gtkmm-3.0 --libs`
.PHONY: default .PHONY: default
default: tv_rename default: tv_rename
@ -64,15 +67,11 @@ main.o: main.cpp
.PHONY: gui .PHONY: gui
gui: tv_rename_gui gui: tv_rename_gui
tv_rename_gui: gui.cpp mainwindow.cpp seasonwindow.cpp databasewindow.cpp\ tv_rename_gui: gui.o mainwindow.o seasonwindow.o databasewindow.o\
network.o functions_gui.o filesystem_u_gui.o tv_rename_gui.o\ searchwindow.o gtkfunctions.o network.o functions_gui.o\
progress.cpp progresswindow.cpp filesystem_u_gui.o tv_rename_gui.o progress_gui.o\
$(CXX) $(CFLAGS) -o tv_rename_gui gui.cpp mainwindow.cpp seasonwindow.cpp\ progresswindow.o
databasewindow.cpp network.o functions_gui.o\ $(CXX) $(CFLAGS) -o $@ $^ $(GTKFLAGS) $(GTKLIBS) -lcurl -lsqlite3
filesystem_u_gui.o tv_rename_gui.o progress.cpp\
progresswindow.cpp\
`pkg-config gtkmm-3.0 --cflags --libs`\
-lcurl -lsqlite3 -DGUI
strip tv_rename_gui strip tv_rename_gui
filesystem_u_gui.o: unix/filesystem.cpp filesystem_u_gui.o: unix/filesystem.cpp
@ -84,6 +83,23 @@ functions_gui.o: functions.cpp
tv_rename_gui.o: tv_rename.cpp tv_rename_gui.o: tv_rename.cpp
$(CXX) $(CFLAGS) -c tv_rename.cpp -o tv_rename_gui.o -DGUI $(CXX) $(CFLAGS) -c tv_rename.cpp -o tv_rename_gui.o -DGUI
gui.o: gui.cpp
$(CXX) $(CFLAGS) -o $@ -c $^ $(GTKFLAGS) -DGUI
mainwindow.o: mainwindow.cpp
$(CXX) $(CFLAGS) -o $@ -c $^ $(GTKFLAGS) -DGUI
seasonwindow.o: seasonwindow.cpp
$(CXX) $(CFLAGS) -o $@ -c $^ $(GTKFLAGS) -DGUI
databasewindow.o: databasewindow.cpp
$(CXX) $(CFLAGS) -o $@ -c $^ $(GTKFLAGS) -DGUI
searchwindow.o: searchwindow.cpp
$(CXX) $(CFLAGS) -o $@ -c $^ $(GTKFLAGS) -DGUI
gtkfunctions.o: gtkfunctions.cpp
$(CXX) $(CFLAGS) -o $@ -c $^ $(GTKFLAGS) -DGUI
progress_gui.o: progress.cpp
$(CXX) $(CFLAGS) -o $@ -c $^ $(GTKFLAGS) -DGUI
progresswindow.o: progresswindow.cpp
$(CXX) $(CFLAGS) -o $@ -c $^ $(GTKFLAGS) -DGUI
.PHONY: windows .PHONY: windows
windows: tv_rename.exe windows: tv_rename.exe