SUFFIXES = .ui .png

bin_PROGRAMS = mando

mando_SOURCES = calibrateWidget.cc calibrateWidget.hh \
        cameraProjectorCalibration.cc cameraProjectorCalibration.hh \
        crossWidget.cc crossWidget.hh \
        main.cc mandoWindow.cc mandoWindow.hh \
        mandoWizard.cc mandoWizard.hh \
        pointerRecognition.cc pointerRecognition.hh \
        selectRectWidget.cc selectRectWidget.hh \
        tools.cc tools.hh \
        videoWidget.cc videoWidget.hh \
        ui_mandoWindow.hh ui_mandoWizard.hh \
        colourspace.cc colourspace.h \
        colour_sensitivity.h \
        fourier.cc fourier.h fourier.tcc \
        functions.h \
        gauss.h gauss.tcc \
        image.h image_ref.h \
        image_conv.h \
        image_funcs.cc image_funcs.h image_funcs.tcc \
        image_input.h \
        image_op.h image_op_help2.h image_op_help3.h image_op_help.h \
        image_v4linput.cc image_v4linput.h image_v4linput.tcc \
        image_dc1394input.cc image_dc1394input.h image_dc1394input.tcc \
        linalg.cc linalg.h linalg.tcc clapack.h \
        mimasexception.cc mimasexception.h \
        multi_array_conv.h multi_array_conv.h multi_array_conv.tcc \
        multi_array_op.h multi_array_op_help2.h multi_array_op_help3.h \
        multi_array_op_help.h object.h \
        rgba.h rgba.tcc \
        moc_calibrateWidget.cc moc_crossWidget.cc \
        moc_mandoWindow.cc moc_mandoWizard.cc moc_selectRectWidget.cc \
        moc_videoWidget.cc \
        qrc_mando.cc

mando_LDFLAGS =
mando_LDADD = $(QT_LIBS) $(LIBS_DC1394) $(FFTW3_LIBS) $(FFTW3F_LIBS) \
        $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS) $(X_LIBS) -lXtst

BUILT_SOURCES = moc_mandoWindow.cc moc_mandoWizard.cc \
        ui_mandoWindow.hh ui_mandoWizard.hh \
        qrc_mando.cc

EXTRA_DIST = COPYING ChangeLog acx_blas.m4 acx_lapack.m4 mdl_have_opengl.m4 \
        configure.ac Makefile.dist \
        mandoWindow.ui mandoWizard.ui configure.png \
        mandologo.png quit.png searchPattern.png \
        projectedPattern.png mando.qrc

CLEANFILES = *~ *.o moc_*.cc ui_*.hh qrc_*.cc

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

moc_%.cc: %.hh
        $(QT_MOC) $< -o $@

qrc_mando.cc: mando.qrc configure.png mandologo.png \
        quit.png searchPattern.png projectedPattern.png
        $(QT_RCC) $< -o $@