~ubuntu-branches/ubuntu/saucy/vdr-plugin-live/saucy-proposed

« back to all changes in this revision

Viewing changes to pages/Makefile

  • Committer: Package Import Robot
  • Author(s): Tobias Grimm
  • Date: 2012-01-15 10:22:53 UTC
  • mfrom: (1.1.3)
  • Revision ID: package-import@ubuntu.com-20120115102253-hixwx4gbcpyhtt2m
Tags: 0.2.0+git20120114-1
* New Upstream Snapshot (commit d2a85a6) (Closes: #654879)
* Dropped 02_timers_colon patch - fixed upstream
* Dropped 04_tntnet-2.0.patch - fixed upstream
* Dropped 01_ipv6.patch - fixed upstream
* Dropped 03_live-0.2.0-fix-INCLUDES.patch - fixed upstream
* Build-depend on libpcre3-dev
* Updated debian/copyright

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# The official name of this plugin.
 
2
 
 
3
PLUGIN = live
 
4
 
 
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 }')
 
8
 
 
9
### The C++ compiler and options:
 
10
 
1
11
CXX      ?= g++
2
12
AR       ?= ar
3
13
ECPPC    ?= ecppc
4
14
 
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)
7
17
 
8
18
### The directory environment:
9
19
 
10
20
VDRDIR   ?= ../../../..
11
21
 
 
22
### Make sure that necessary options are included:
 
23
 
 
24
-include $(VDRDIR)/Make.global
 
25
 
 
26
### Allow user defined options to overwrite defaults:
 
27
 
 
28
-include $(VDRDIR)/Make.config
 
29
 
 
30
### Includes and Defines (add further entries here):
 
31
 
 
32
INCLUDES += -I$(VDRDIR)/include -I..
 
33
 
12
34
### The object files (add further files here):
13
35
 
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
21
44
 
22
45
### Default rules:
23
46
 
27
50
 
28
51
### Implicit rules:
29
52
 
30
 
### tntnet produces some compiler warnings,
31
 
### so we add -Wno-unused-variable -Wno-non-virtual-dtor for nice output ;)
32
53
%.o: %.cpp
33
 
        $(CXX) $(CXXFLAGS) -Wno-unused-variable -Wno-non-virtual-dtor -c $(DEFINES) $(INCLUDES) $<
 
54
        $(CXX) $(CXXFLAGS) $(TNTFLAGS) -c $(DEFINES) $(PLUGINFEATURES) $(INCLUDES) $<
34
55
 
35
56
%.cpp: %.ecpp
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) > $@
44
65
 
45
66
ifneq ($(MAKECMDGOALS),clean)
46
67
-include $(DEPFILE)