mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
COMP: coco-cpp now installed with --prefix and without separate --exec-prefix
COMP: latest coco-cpp can find the frame files relative to the executable path. This simplifies the make rules.
This commit is contained in:
@ -8,7 +8,6 @@
|
||||
atgtoo = \
|
||||
$(WM_THIRD_PARTY_DIR)/platforms/$(WM_ARCH)$(WM_COMPILER)/coco-cpp/bin/coco-cpp \
|
||||
-single \
|
||||
-frames $(WM_THIRD_PARTY_DIR)/platforms/share/coco-cpp \
|
||||
$$SOURCE -o $(OBJECTS_DIR) && \
|
||||
$(CC) $(c++FLAGS) -c $*.cpp -o $@
|
||||
|
||||
|
||||
@ -34,7 +34,7 @@ cd ${0%/*} || exit 1 # run from this directory
|
||||
|
||||
|
||||
bindir=$WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER/coco-cpp/bin
|
||||
frames=$WM_THIRD_PARTY_DIR/platforms/share/coco-cpp
|
||||
frames=$bindir/../share/coco-cpp
|
||||
|
||||
[ -d "$bindir" -a -x "$bindir/coco-cpp" ] || {
|
||||
echo "no coco-cpp binary found"
|
||||
@ -47,8 +47,7 @@ frames=$WM_THIRD_PARTY_DIR/platforms/share/coco-cpp
|
||||
}
|
||||
|
||||
# run coco-cpp:
|
||||
|
||||
$bindir/coco-cpp -frames $frames wmkdependParser.atg
|
||||
$bindir/coco-cpp wmkdependParser.atg
|
||||
|
||||
echo
|
||||
echo Done
|
||||
|
||||
@ -2,10 +2,6 @@
|
||||
Attributed Grammar for Coco/R (-*- C++ -*- version)
|
||||
compile with:
|
||||
coco-cpp wmkdependParser.atg
|
||||
For example,
|
||||
$WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER/coco-cpp/bin/coco-cpp \
|
||||
-frames $WM_THIRD_PARTY_DIR/platforms/share/coco-cpp \
|
||||
wmkdependParser.atg
|
||||
\*---------------------------------------------------------------------------*/
|
||||
[copy]
|
||||
/*---------------------------------*- C++ -*---------------------------------*\
|
||||
|
||||
@ -32,7 +32,7 @@ SourceFiles
|
||||
generated
|
||||
|
||||
\*---------------------------------------------------------------------------*/
|
||||
// This file was generated with Coco/R C++ (7 Feb 2010)
|
||||
// This file was generated with Coco/R C++ (10 Mar 2010)
|
||||
// http://www.ssw.uni-linz.ac.at/coco/
|
||||
// with these defines:
|
||||
// - FORCE_UTF8
|
||||
|
||||
@ -32,7 +32,7 @@ SourceFiles
|
||||
generated
|
||||
|
||||
\*---------------------------------------------------------------------------*/
|
||||
// This file was generated with Coco/R C++ (7 Feb 2010)
|
||||
// This file was generated with Coco/R C++ (10 Mar 2010)
|
||||
// http://www.ssw.uni-linz.ac.at/coco/
|
||||
// with these defines:
|
||||
// - FORCE_UTF8
|
||||
|
||||
@ -32,7 +32,7 @@ SourceFiles
|
||||
generated
|
||||
|
||||
\*---------------------------------------------------------------------------*/
|
||||
// This file was generated with Coco/R C++ (7 Feb 2010)
|
||||
// This file was generated with Coco/R C++ (10 Mar 2010)
|
||||
// http://www.ssw.uni-linz.ac.at/coco/
|
||||
// with these defines:
|
||||
// - FORCE_UTF8
|
||||
|
||||
@ -32,7 +32,7 @@ SourceFiles
|
||||
generated
|
||||
|
||||
\*---------------------------------------------------------------------------*/
|
||||
// This file was generated with Coco/R C++ (7 Feb 2010)
|
||||
// This file was generated with Coco/R C++ (10 Mar 2010)
|
||||
// http://www.ssw.uni-linz.ac.at/coco/
|
||||
// with these defines:
|
||||
// - FORCE_UTF8
|
||||
|
||||
Reference in New Issue
Block a user