summaryrefslogtreecommitdiff
path: root/dgedit/Makefile.am
blob: 2ebd3049a87a5725edd23a258c3f2fd29b986bd5 (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
if HAVE_EDITOR

bin_PROGRAMS = dgedit

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

dgedit_CXXFLAGS = $(SNDFILE_CXXFLAGS) $(QT_CFLAGS) $(AO_CFLAGS)
AM_CXXFLAGS = $(QT_CFLAGS)

dgedit_SOURCES = $(shell ../tools/MocList cc ) \
	dgedit.cc \
	audioextractor.cc \
	canvas.cc \
	canvastool.cc \
	canvastoollisten.cc \
	canvastoolselections.cc \
	canvastoolthreshold.cc \
	filelist.cc \
	itemeditor.cc \
	mainwindow.cc \
	mipmap.cc \
	samplesorter.cc \
	dgedit.qrc \
	dgedit_qrc.cpp

EXTRA_DIST = \
	audioextractor.h \
	canvas.h \
	canvastool.h \
	canvastoollisten.h \
	canvastoolselections.h \
	canvastoolthreshold.h \
	filelist.h \
	itemeditor.h \
	mainwindow.h \
	mipmap.h \
	samplesorter.h \
	selection.h

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

dgedit_qrc.cpp: dgedit.qrc
	rcc $< > $@

BUILT_SOURCES = $(dgedit_MOC) dgedit_qrc.cpp

CLEANFILES = $(BUILT_SOURCES)

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

%.h: %.ui
	$(QT_UIC) -o $@ $<

%.cc: %.ui
	$(QT_UIC) -o $@ -impl $*.h $<

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

endif