1
# The official name of this plugin.
5
### Additional options to silence TNTNET warnings
6
TNTFLAGS ?= -Wno-overloaded-virtual -Wno-unused-variable
7
TNTVERSION ?= $(shell tntnet-config --version | sed -e's/\.//g' | sed -e's/pre.*//g' | awk '/^..$$/ { print $$1."000"} /^...$$/ { print $$1."00"} /^....$$/ { print $$1."0" } /^.....$$/ { print $$1 }')
9
### The C++ compiler and options:
5
INCLUDES += $(EXTRA_INCLUDES)
6
INCLUDES += -I.. -I$(VDRDIR)/include
15
CXXFLAGS ?= -O2 -Woverloaded-virtual -Wall -fPIC
16
DEFINES ?= -DPLUGIN_NAME_I18N='"$(PLUGIN)"' -DTNTVERSION=$(TNTVERSION)
8
18
### The directory environment:
10
20
VDRDIR ?= ../../../..
22
### Make sure that necessary options are included:
24
-include $(VDRDIR)/Make.global
26
### Allow user defined options to overwrite defaults:
28
-include $(VDRDIR)/Make.config
30
### Includes and Defines (add further entries here):
32
INCLUDES += -I$(VDRDIR)/include -I..
12
34
### The object files (add further files here):
14
OBJS = menu.o recordings.o schedule.o screenshot.o timers.o \
15
whats_on.o switch_channel.o keypress.o remote.o \
36
OBJS = menu.o recordings.o schedule.o multischedule.o screenshot.o \
37
timers.o whats_on.o switch_channel.o keypress.o remote.o \
16
38
channels_widget.o edit_timer.o error.o pageelems.o tooltip.o \
17
39
vlc.o searchtimers.o edit_searchtimer.o searchresults.o \
18
40
searchepg.o login.o ibox.o xmlresponse.o play_recording.o \
19
41
pause_recording.o stop_recording.o ffw_recording.o \
20
rwd_recording.o setup.o content.o epginfo.o timerconflicts.o
42
rwd_recording.o setup.o content.o epginfo.o timerconflicts.o \
43
recstream.o users.o edit_user.o edit_recording.o
28
51
### Implicit rules:
30
### tntnet produces some compiler warnings,
31
### so we add -Wno-unused-variable -Wno-non-virtual-dtor for nice output ;)
33
$(CXX) $(CXXFLAGS) -Wno-unused-variable -Wno-non-virtual-dtor -c $(DEFINES) $(INCLUDES) $<
54
$(CXX) $(CXXFLAGS) $(TNTFLAGS) -c $(DEFINES) $(PLUGINFEATURES) $(INCLUDES) $<
36
57
$(ECPPC) $(ECPPFLAGS) $(ECPPFLAGS_CPP) $<
40
61
MAKEDEP = $(CXX) -MM -MG
41
62
DEPFILE = .dependencies
42
63
$(DEPFILE): Makefile $(OBJS:%.o=%.cpp) $(OBJS:%.o=%.ecpp)
43
@$(MAKEDEP) $(DEFINES) $(INCLUDES) $(OBJS:%.o=%.cpp) > $@
64
@$(MAKEDEP) $(DEFINES) $(PLUGINFEATURES) $(INCLUDES) $(OBJS:%.o=%.cpp) > $@
45
66
ifneq ($(MAKECMDGOALS),clean)
46
67
-include $(DEPFILE)