summaryrefslogtreecommitdiff
path: root/dgedit/Makefile.am
blob: a16a0e9f19b8f39a6a6e59ce8b6b0c50e20ad690 (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
bin_PROGRAMS = dgedit

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

dgedit_CXXFLAGS = $(SNDFILE_CXXFLAGS) $(QT_CFLAGS)
CXXFLAGS += $(QT_CFLAGS)

dgedit_SOURCES = $(shell ../tools/MocList cc ) \
	dgedit.cc \
	audioextractor.cc \
	canvas.cc \
	mainwindow.cc \
	samplesorter.cc

EXTRA_DIST = \
	audioextractor.h \
	canvas.h \
	mainwindow.h \
	samplesorter.h

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

BUILT_SOURCES = $(dgedit_MOC)

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 $<