Debian Codegraph @

src/Makefile.in

raw
1 # Makefile - Makefile template for Linux/Unix
2 # Copyright (c) 2007 - 2011 Michael Riepe
3 #
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 2 of the License, or
7 # (at your option) any later version.
8 #
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
13 #
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17
18 # @(#) $Id$
19
20 srcdir = @srcdir@
21 top_srcdir = @top_srcdir@
22 topdir = ..
23 subdir = src
24
25 prefix = @prefix@
26 exec_prefix = @exec_prefix@
27 bindir = @bindir@
28 datadir = @datadir@
29 datarootdir = @datarootdir@
30 mandir = @mandir@
31 man1dir = $(mandir)/man1
32 helpdir = $(datadir)/dvbcut
33
34 installdirs = $(DESTDIR)$(bindir) $(DESTDIR)$(helpdir)
35
36 CXX = @CXX@
37 CXXFLAGS = @CXXFLAGS@ -Wall -Wcast-align $(DEFS) $(CPPFLAGS)
38 CPPFLAGS = @CPPFLAGS@ -I.
39 DEFS = @DEFS@
40 LDFLAGS = @LDFLAGS@
41 FFMPEG_LIBS = @FFMPEG_LIBS@
42 LIBS = $(FFMPEG_LIBS) @LIBS@
43
44 INSTALL = @INSTALL@
45 INSTALL_DATA = @INSTALL_DATA@
46 INSTALL_PROGRAM = @INSTALL_PROGRAM@
47 STRIP = @STRIP@
48
49 EXEEXT = @EXEEXT@
50 OBJEXT = @OBJEXT@
51 STDLIB = @STDLIB@
52
53 QTDIR = @QTDIR@
54
55 PATH := $(QTDIR)/bin:$(PATH)
56
57 ui_%.h: %.ui
58 @UIC@ -o $@ $<
59
60 uic_%.cpp: %.h
61 @UIC@ -o $@ $<
62
63 moc_%.cpp: %.h
64 @MOC@ -o $@ $<
65
66 %.qm: %.ts
67 @LRELEASE@ $< -qm $@
68
69 MOC = \
70 moc_dvbcut.cpp \
71 moc_exportdialog.cpp \
72 moc_mplayererrorbase.cpp \
73 moc_progressstatusbar.cpp \
74 moc_progresswindow.cpp \
75
76 UIC = \
77 ui_dvbcutbase.h \
78 ui_exportdialogbase.h \
79 ui_mplayererrorbase.h \
80 ui_progresswindowbase.h
81
82 QM = \
83 dvbcut.qm \
84 dvbcut_cs.qm \
85 dvbcut_de.qm
86
87 QRC = \
88 qrc_icons.cpp
89
90 SRCS = \
91 avframe.cpp differenceimageprovider.cpp buffer.cpp \
92 dvbcut.cpp eventlistitem.cpp exception.cpp exportdialog.cpp \
93 imageprovider.cpp index.cpp lavfmuxer.cpp logoutput.cpp \
94 main.cpp mpegmuxer.cpp mpgfile.cpp mplayererrorbase.cpp playaudio.cpp \
95 progressstatusbar.cpp progresswindow.cpp psfile.cpp \
96 pts.cpp streamdata.cpp tsfile.cpp settings.cpp $(MOC) $(QRC) \
97 $(STDLIB)
98
99 OBJS = $(SRCS:.cpp=.$(OBJEXT))
100
101 all: $(topdir)/bin $(topdir)/bin/dvbcut$(EXEEXT) $(QM)
102
103 check:
104
105 install: all installdirs
106 $(INSTALL_PROGRAM) dvbcut$(EXEEXT) $(DESTDIR)$(bindir)
107 $(INSTALL_DATA) dvbcut_cs.html $(DESTDIR)$(helpdir)
108 $(INSTALL_DATA) dvbcut_en.html $(DESTDIR)$(helpdir)
109 $(INSTALL_DATA) dvbcut_de.html $(DESTDIR)$(helpdir)
110
111 installdirs: $(installdirs)
112
113 $(installdirs):
114 $(SHELL) $(top_srcdir)/mkinstalldirs $@
115
116 $(topdir)/bin:
117 mkdir $@
118
119 qrc_icons.cpp:
120 @RCC@ -name icons -o $@ ../icons/icons.qrc
121
122 $(topdir)/bin/dvbcut$(EXEEXT): dvbcut$(EXEEXT)
123 $(INSTALL_PROGRAM) dvbcut$(EXEEXT) $(topdir)/bin/dvbcut$(EXEEXT)
124 $(STRIP) $(topdir)/bin/dvbcut$(EXEEXT)
125
126 dvbcut$(EXEEXT): $(SRCS) $(UIC) $(OBJS)
127 $(CXX) -o $@ $(LDFLAGS) $(OBJS) $(LIBS)
128
129 clean:
130 -rm -f *.$(OBJEXT)
131
132 distclean: clean
133 -rm -f $(MOC) $(UIC) $(QM) $(QRC) $(topdir)/bin/dvbcut$(EXEEXT) dvbcut$(EXEEXT)
134 -rmdir $(topdir)/bin
135 -rm -f .depend stamp-depend
136
137 maintainer-clean: distclean
138
139 dep: stamp-depend
140 stamp-depend: $(SRCS)
141 -@rm -f .depend $@
142 -$(CXX) -MM $(DEFS) $(CPPFLAGS) $(SRCS) > .depend
143 echo timestamp > $@
144
145 -include .depend
146
147 # static dependencies:
148
149 moc_dvbcut.cpp: dvbcut.h
150 moc_exportdialog.cpp: exportdialog.h
151 moc_progressstatusbar.cpp: progressstatusbar.h
152 moc_progresswindow.cpp: progresswindow.h
153 uic_dvbcutbase.cpp: dvbcutbase.h
154 uic_exportdialogbase.cpp: exportdialogbase.h
155 uic_mplayererrorbase.cpp: mplayererrorbase.h
156 uic_progresswindowbase.cpp: progresswindowbase.h
157 dvbcutbase.h: dvbcutbase.ui
158 exportdialogbase.h: exportdialogbase.ui
159 mplayererrorbase.h: mplayererrorbase.ui
160 progresswindowbase.h: progresswindowbase.ui
161
162 distfiles: \
163 dvbcutbase.h \
164 exportdialogbase.h \
165 moc_dvbcut.cpp \
166 moc_dvbcutbase.cpp \
167 moc_exportdialog.cpp \
168 moc_mplayererrorbase.cpp \
169 moc_progressstatusbar.cpp \
170 moc_progresswindow.cpp \
171 moc_progresswindowbase.cpp \
172 mplayererrorbase.h \
173 progresswindowbase.h \
174 uic_dvbcutbase.cpp \
175 uic_exportdialogbase.cpp \
176 uic_mplayererrorbase.cpp \
177 uic_progresswindowbase.cpp \
178 qrc_icons.cpp