[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Force a file to be compiled always
From: |
Benjamin Bihler |
Subject: |
Force a file to be compiled always |
Date: |
02-Nov-2010 16:10:21 CET |
Hello,
almost ten years ago there was a question in this mailing list how to force
a source file to be compiled always.
http://lists.gnu.org/archive/html/automake/2002-02/msg00099.html
Unfortunately the solutions mentioned there seem not to work with me. My
Makefile.am looks like this:
---------------------------------------------------------------
lib_LTLIBRARIES = libMyLibrary.la
libMyLibrary_la_SOURCES = MySourceFile.cpp \
MySourceFile.h
---------------------------------------------------------------
and when I add the .PHONY-line I get this Makefile.am:
---------------------------------------------------------------
lib_LTLIBRARIES = libMyLibrary.la
.PHONY : MySourceFile.cpp
libMyLibrary_la_SOURCES = MySourceFile.cpp \
MySourceFile.h
---------------------------------------------------------------
When executing make I receive this error message:
---------------------------------------------------------------
**** Build of configuration Default for project MeshingLib ****
make -j install
Making install in src
make[1]: Entering directory
`/home/bbihler/StarTeam/Bibliotheken/C++/TWTMeshingLib/build/debug/src'
cd ../../.. && /bin/sh
/home/bbihler/StarTeam/Bibliotheken/C++/TWTMeshingLib/missing --run
automake-1.9 --foreign src/Makefile
cd .. && /bin/sh ./config.status src/Makefile depfiles
config.status: creating src/Makefile
config.status: executing depfiles commands
make[1]: Leaving directory
`/home/bbihler/StarTeam/Bibliotheken/C++/TWTMeshingLib/build/debug/src'
make[1]: Entering directory
`/home/bbihler/StarTeam/Bibliotheken/C++/TWTMeshingLib/build/debug/src'
if /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I.
-I../../../src -I..
-I/home/bbihler/StarTeam/Bibliotheken/C++/Medina-Bibliotheken/include
-I/home/bbihler/StarTeam/Bibliotheken/C++/Xerces/include -Wall
-Wno-unknown-pragmas -fopenmp -g -O0 -DTWT_CHECKS -DTR1_CONTAINERS -MT
MySourceFile.lo -MD -MP -MF ".deps/MySourceFile.Tpo" -c -o MySourceFile.lo
MySourceFile.cpp; \
then mv -f ".deps/MySourceFile.Tpo" ".deps/MySourceFile.Plo"; else rm
-f ".deps/MySourceFile.Tpo"; exit 1; fi
g++ -DHAVE_CONFIG_H -I. -I../../../src -I..
-I/home/bbihler/StarTeam/Bibliotheken/C++/Medina-Bibliotheken/include
-I/home/bbihler/StarTeam/Bibliotheken/C++/Xerces/include -Wall
-Wno-unknown-pragmas -fopenmp -g -O0 -DTWT_CHECKS -DTR1_CONTAINERS -MT
MySourceFile.lo -MD -MP -MF .deps/MySourceFile.Tpo -c MySourceFile.cpp
-fPIC -DPIC -o .libs/MySourceFile.o
g++: MySourceFile.cpp: Datei oder Verzeichnis nicht gefunden
g++: no input files
make[1]: *** [MySourceFile.lo] Fehler 1
make: *** [install-recursive] Fehler 1
make[1]: Leaving directory
`/home/bbihler/StarTeam/Bibliotheken/C++/TWTMeshingLib/build/debug/src'
---------------------------------------------------------------
"Datei oder Verzeichnis nicht gefunden" means "File or directory not
found".
Is there any easy solution? Or can someone tell me what I have done wrong?
Thank you very much,
Benjamin Bihler
- Force a file to be compiled always,
Benjamin Bihler <=
- Re: Force a file to be compiled always, Ralf Wildenhues, 2010/11/03
- Re: Force a file to be compiled always, Benjamin Bihler, 2010/11/04
- Re: Force a file to be compiled always, Valentin David, 2010/11/04
- Re: Force a file to be compiled always, Ralf Wildenhues, 2010/11/04
- Re: Force a file to be compiled always, Benjamin Bihler, 2010/11/05
- Re: Force a file to be compiled always, Benjamin Bihler, 2010/11/05
- Re: Force a file to be compiled always, Benjamin Bihler, 2010/11/08
- Re: Force a file to be compiled always, Steffen Dettmer, 2010/11/10