summaryrefslogtreecommitdiff
path: root/src/Makefile.am
blob: 43b87e326f3fc0a0f80bad488ead96f5b0726e53 (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
#export QT_SELECT=qt5

bin_PROGRAMS = dgedit

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

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

dgedit_TRANSLATIONS = \
	ts/dgedit_da.ts \
	ts/dgedit_fr.ts

dgedit_SOURCES = \
	dgedit.cc \
	audioextractor.cc \
	canvas.cc \
	canvastool.cc \
	canvastoollisten.cc \
	canvastoolselections.cc \
	canvastoolthreshold.cc \
	canvaswidget.cc \
	channeldialog.cc \
	channelswidget.cc \
	filelist.cc \
	imageeditor.cc \
	instrumentdialog.cc \
	instrumentwidget.cc \
	itemeditor.cc \
	localehandler.cc \
	mainwindow.cc \
	mipmap.cc \
	player.cc \
	project.cc \
	projectdialog.cc \
	projectrenderer.cc \
	projectserialiser.cc \
	renderdialog.cc \
	samplesorter.cc \
	selection.cc \
	selectioneditor.cc \
	settings.cc \
	volumefader.cc \
	zoomslider.cc

EXTRA_DIST = \
	audioextractor.h \
	canvas.h \
	canvastool.h \
	canvastoollisten.h \
	canvastoolselections.h \
	canvastoolthreshold.h \
	canvaswidget.h \
	channeldialog.h \
	channelswidget.h \
	filelist.h \
	imageeditor.h \
	instrumentdialog.h \
	instrumentwidget.h \
	itemeditor.h \
	localehandler.h \
	mainwindow.h \
	mipmap.h \
	player.h \
	project.h \
	projectdialog.h \
	projectrenderer.h \
	projectserialiser.h \
	renderdialog.h \
	samplesorter.h \
	selection.h \
	selectioneditor.h \
	sleep.h \
	settings.h \
	volumefader.h \
	zoomslider.h \
	dgedit.qrc

dgedit_MOC = $(shell ../tools/MocList cc )

BUILT_SOURCES = $(dgedit_MOC) qrc_dgedit.cc

CLEANFILES = $(BUILT_SOURCES)

qrc_%.cc: %.qrc
	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) $(EXTRA_DIST)
	QT_SELECT=qt5 lupdate $(dgedit_SOURCES) $(EXTRA_DIST) -ts $@

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

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