Hi Juan Luis, * Juan Luis Baptiste wrote on Mon, Mar 07, 2005 at 08:05:06AM CET: > > In a first version of the project, all the sources where under a src > directory, so writing a Makefile.am file was fairly trivial and the project > compiled fine. Now, the sources under src have been grouped in > subdirectories. My Makefile.am is the following: > > INCLUDES = $(all_includes) -I../src > METASOURCES = AUTO > bin_PROGRAMS = ktoon > ktoon_LDFLAGS = $(all_libraries) -lGLU -lGL -lming > ktoon_LDADD = $(LIB_KDEUI) $(OBJECTS) > ktoon_SOURCES = store/animation.cpp store/brush.cpp \ > store/camera.cpp store/color.cpp store/document.cpp store/gldrawing.cpp > \ *snip* > > But when running make, when it tries to compile one of the sources in a > subdirectory I get this error:
Which Automake, g++ versions? > source='store/animation.cpp' object='animation.o' libtool=no \ > depfile='.deps/animation.Po' tmpdepfile='.deps/animation.TPo' \ > depmode=gcc3 /bin/sh ../admin/depcomp \ > #>- g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/lib/qt3//include ^^^ Is this a cut'n'paste/email artefact? If not: How did that get there? Do you have AC_PROG_CXX in your configure.ac? > -I/usr/X11R6/include -I../src -DQT_THREAD_SUPPORT -D_REENTRANT > -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith > -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align > -Wconversion -Wchar-subscripts -O2 -Wformat-security > -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -c -o > animation.o `test -f 'store/animation.cpp' || echo './'`store/animation.cpp > ../admin/depcomp: line 60: -MT: command not found > make[2]: *** [animation.o] Error 127 You could try calling depcomp with this line manually like this: $ source='store/animation.cpp' object='animation.o' libtool=no \ depfile='.deps/animation.Po' tmpdepfile='.deps/animation.TPo' \ depmode=gcc3 /bin/sh -x ../admin/depcomp \ g++ [... rest of compile line ] \ >depcomplog 2>&1 (note the added `-x') and then post depcomplog (bzip2 if long). > In line 60 of depcomp is this check: *snip* > The files that aren't in a subdir compile fine. > > Any ideas? how should I write Makefile.am so this doesn't happen? Don't know yet what's going on. Regards, Ralf