automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SUFFIXES does not work?


From: Michael Bletzinger
Subject: Re: SUFFIXES does not work?
Date: Mon, 16 Jun 2003 12:19:11 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030312

Jose Roman Bilbao wrote:
Hi all,

I have a little problem using automake as I can not make it accept a
different suffix like .moc. I have written this automake.am:

lib_LTLIBRARIES = libXmippGraphics.la

libXmippGraphics_la_SOURCES = Src/showTools.cc      showTools.moc \
        Src/show2D.cc         show2D.moc \
        Src/showTable.cc      showTable.moc \
        Src/showSel.cc        showSel.moc \
        Src/showVol.cc        showVol.moc \
        Src/showSpectra.cc    showSpectra.moc \
        Src/showSOM.cc        showSOM.moc \
        Src/showSpectraSOM.cc showSpectraSOM.moc

INCLUDES = -I$(top_srcdir)/Lib @QT_CXXFLAGS@
LIBADD = @QT_LIBS@

SUFFIXES = .moc

.moc:

I'm not a make expert but don't you need to specify the input extension as well as an output. Something like:

.hh.moc:

        Michael

        @echo "Generating MOC for" $*.hh "..."
        @@QT_MOC@ -o $*_moc.cc $*.hh
        @make $*_moc.o @QT_CXXFLAGS@ @QT_LIBS@
        @mv $*_moc.o $*.moc
        @rm $*_moc.cc

It gives no problems when running autoconf, automake and others.... but
when compiling it seems not to generate anything related to .moc files.
Can you help me trying to find out the problem?

Thanks







--
------------------------------------------------------------------
Michael Bletzinger      Software Developer, Alliance Computational
address@hidden  Environment & Security
217 265 5137            NCSA






reply via email to

[Prev in Thread] Current Thread [Next in Thread]