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

simplertp_LDADD = $(QT_LIBS) $(AO_LIBS) $(V4LC_LIBS) \
	$(shell ../tools/MocList o ) qrc_simplertp.o 

simplertp_CXXFLAGS = $(QT_CFLAGS) $(AO_CFLAGS) $(V4LC_CFLAGS)
AM_CXXFLAGS = $(QT_CFLAGS)

simplertp_SOURCES = \
	simplertp.cc \
	mainwindow.cc \
	v4l.cc

EXTRA_DIST = \
	simplertp.qrc
	mainwindow.h \
	v4l.h

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

BUILT_SOURCES = $(simplertp_MOC) qrc_simplertp.cc

CLEANFILES = $(BUILT_SOURCES)

qrc_%.cc: %.qrc
	rcc $< > $@

%.moc.cc: %.h
	$(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 $<