summaryrefslogtreecommitdiff
path: root/src/Makefile.am
blob: 6b23d1753c45fd5dab41c82ade4e3cb807faecbd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
#export QT_SELECT=qt5

bin_PROGRAMS = dgedit

dgedit_LDADD = $(SNDFILE_LIBS) $(QT_LIBS) $(AO_LIBS) \
	$(shell $(top_srcdir)/tools/MocList $(top_srcdir)/src o ) qrc_dgedit.o

dgedit_CXXFLAGS = -g $(SNDFILE_CXXFLAGS) $(QT_CFLAGS) $(AO_CFLAGS) \
	-DLOCALEDIR='"$(localedir)"' -I$(top_srcdir)
AM_CXXFLAGS = $(QT_CFLAGS)

dgedit_TRANSLATIONS = \
	$(top_srcdir)/src/ts/dgedit_da.ts \
	$(top_srcdir)/src/ts/dgedit_fr.ts

dgedit_SOURCES = \
	$(top_srcdir)/src/dgedit.cc \
	$(top_srcdir)/src/aboutdialog.cc \
	$(top_srcdir)/src/audioextractor.cc \
	$(top_srcdir)/src/canvas.cc \
	$(top_srcdir)/src/canvastool.cc \
	$(top_srcdir)/src/canvastoollisten.cc \
	$(top_srcdir)/src/canvastoolranges.cc \
	$(top_srcdir)/src/canvastoolthreshold.cc \
	$(top_srcdir)/src/canvaswidget.cc \
	$(top_srcdir)/src/channeldialog.cc \
	$(top_srcdir)/src/channelswidget.cc \
	$(top_srcdir)/src/filelist.cc \
	$(top_srcdir)/src/imageeditor.cc \
	$(top_srcdir)/src/instrumentdialog.cc \
	$(top_srcdir)/src/instrumentwidget.cc \
	$(top_srcdir)/src/itemeditor.cc \
	$(top_srcdir)/src/localehandler.cc \
	$(top_srcdir)/src/mainwindow.cc \
	$(top_srcdir)/src/mipmap.cc \
	$(top_srcdir)/src/player.cc \
	$(top_srcdir)/src/project.cc \
	$(top_srcdir)/src/projectdialog.cc \
	$(top_srcdir)/src/projectrenderer.cc \
	$(top_srcdir)/src/projectserialiser.cc \
	$(top_srcdir)/src/renderdialog.cc \
	$(top_srcdir)/src/samplesorter.cc \
	$(top_srcdir)/src/range.cc \
	$(top_srcdir)/src/rangeeditor.cc \
	$(top_srcdir)/src/settings.cc \
	$(top_srcdir)/src/volumefader.cc \
	$(top_srcdir)/src/zoomslider.cc

HDRS = \
	$(top_srcdir)/src/aboutdialog.h \
	$(top_srcdir)/src/audioextractor.h \
	$(top_srcdir)/src/canvas.h \
	$(top_srcdir)/src/canvastool.h \
	$(top_srcdir)/src/canvastoollisten.h \
	$(top_srcdir)/src/canvastoolranges.h \
	$(top_srcdir)/src/canvastoolthreshold.h \
	$(top_srcdir)/src/canvaswidget.h \
	$(top_srcdir)/src/channeldialog.h \
	$(top_srcdir)/src/channelswidget.h \
	$(top_srcdir)/src/filelist.h \
	$(top_srcdir)/src/imageeditor.h \
	$(top_srcdir)/src/instrumentdialog.h \
	$(top_srcdir)/src/instrumentwidget.h \
	$(top_srcdir)/src/itemeditor.h \
	$(top_srcdir)/src/localehandler.h \
	$(top_srcdir)/src/mainwindow.h \
	$(top_srcdir)/src/mipmap.h \
	$(top_srcdir)/src/player.h \
	$(top_srcdir)/src/project.h \
	$(top_srcdir)/src/projectdialog.h \
	$(top_srcdir)/src/projectrenderer.h \
	$(top_srcdir)/src/projectserialiser.h \
	$(top_srcdir)/src/renderdialog.h \
	$(top_srcdir)/src/samplesorter.h \
	$(top_srcdir)/src/range.h \
	$(top_srcdir)/src/rangeeditor.h \
	$(top_srcdir)/src/sleep.h \
	$(top_srcdir)/src/settings.h \
	$(top_srcdir)/src/volumefader.h \
	$(top_srcdir)/src/zoomslider.h

EXTRA_DIST = \
	$(dgedit_TRANSLATIONS) \
	$(HDRS) \
	dgedit.qrc

dgedit_MOC = $(shell $(top_srcdir)/tools/MocList $(top_srcdir)/src cc )

BUILT_SOURCES = \
	$(dgedit_MOC) \
	qrc_dgedit.cc \
	$(dgedit_TRANSLATIONS:.ts=.qm)

CLEANFILES = $(BUILT_SOURCES)

qrc_%.cc: %.qrc
	QT_SELECT=qt5 $(QT_RCC) $< > $@

%.moc.cc: %.h
	QT_SELECT=qt5 $(QT_MOC) -o $@ $<

#
# ui files not used in this project...
#%.h: %.ui
#	$(QT_UIC) -o $@ $<
#
#%.cc: %.ui
#	$(QT_UIC) -o $@ -impl $*.h $<

# command for creating .res file from .rc on Win32
%.res: %.rc
	rc $<

%.ts: $(dgedit_SOURCES) $(HDRS)
	QT_SELECT=qt5 lupdate $(dgedit_SOURCES) $(HDRS) -ts $@

%.qm: %.ts
	QT_SELECT=qt5 lrelease $<

dgeditdir = $(localedir)
dgedit_DATA = $(dgedit_TRANSLATIONS:.ts=.qm)