wmake: Simplified and standardised the Make/files files
cpp is no longer used to pre-process Make/files files allowing standard make '#'
syntax for comments, 'ifdef', 'ifndef' conditionals etc. This is make possible
by automatically pre-pending SOURCE += to each of the source file names in
Make/files.
The list of source files compile can be specified either as a simple list of
files in Make/files e.g.
# Note: fileMonitor assumes inotify by default. Compile with -DFOAM_USE_STAT
# to use stat (=timestamps) instead of inotify
fileMonitor.C
ifdef SunOS64
dummyPrintStack.C
else
printStack.C
endif
LIB = $(FOAM_LIBBIN)/libOSspecific
or
or directly as the SOURCE entry which is used in the Makefile:
SOURCE = \
adjointOutletPressure/adjointOutletPressureFvPatchScalarField.C \
adjointOutletVelocity/adjointOutletVelocityFvPatchVectorField.C \
adjointShapeOptimizationFoam.C
EXE = $(FOAM_APPBIN)/adjointShapeOptimizationFoam
In either form make syntax for comments and conditionals is supported.
This commit is contained in:
@ -29,7 +29,7 @@ $(cellSizeAndAlignmentControl)/cellSizeAndAlignmentControls.C
|
||||
$(cellSizeAndAlignmentControl)/cellSizeAndAlignmentControl/cellSizeAndAlignmentControl.C
|
||||
$(cellSizeAndAlignmentControl)/fileControl/fileControl.C
|
||||
$(cellSizeAndAlignmentControl)/searchableSurfaceControl/searchableSurfaceControl.C
|
||||
/*cellShapeControl/pQuadCoorControl/pQuadCoorControl.C*/
|
||||
# cellShapeControl/pQuadCoorControl/pQuadCoorControl.C
|
||||
|
||||
cellShapeControl/cellAspectRatioControl/cellAspectRatioControl.C
|
||||
|
||||
@ -37,7 +37,7 @@ cellShapeControl/smoothAlignmentSolver/smoothAlignmentSolver.C
|
||||
|
||||
cellShapeControl/controlMeshRefinement/controlMeshRefinement.C
|
||||
|
||||
/*cellSizeControlSurfaces/cellSizeControlSurfaces.C*/
|
||||
# cellSizeControlSurfaces/cellSizeControlSurfaces.C
|
||||
|
||||
cellSizeFunctions = cellSizeControlSurfaces/cellSizeFunction
|
||||
$(cellSizeFunctions)/cellSizeFunction/cellSizeFunction.C
|
||||
|
||||
@ -1,21 +1,17 @@
|
||||
/*
|
||||
foamyHexMeshSurfaceSimplify_non_octree.C
|
||||
MarchingCubes/MarchingCubes.cpp
|
||||
MarchingCubes/ply.c
|
||||
*/
|
||||
# foamyHexMeshSurfaceSimplify_non_octree.C
|
||||
# MarchingCubes/MarchingCubes.cpp
|
||||
# MarchingCubes/ply.c
|
||||
|
||||
/*
|
||||
MarchingCubes = fastdualoctree_sgp
|
||||
# MarchingCubes = fastdualoctree_sgp
|
||||
|
||||
$(MarchingCubes)/data_access.cpp
|
||||
$(MarchingCubes)/fparser.cpp
|
||||
$(MarchingCubes)/fpoptimizer.cpp
|
||||
$(MarchingCubes)/MarchingCubes.cpp
|
||||
$(MarchingCubes)/mc_draw.cpp
|
||||
$(MarchingCubes)/morton.cpp
|
||||
$(MarchingCubes)/opt_octree.cpp
|
||||
$(MarchingCubes)/hash_octree.cpp
|
||||
*/
|
||||
# $(MarchingCubes)/data_access.cpp
|
||||
# $(MarchingCubes)/fparser.cpp
|
||||
# $(MarchingCubes)/fpoptimizer.cpp
|
||||
# $(MarchingCubes)/MarchingCubes.cpp
|
||||
# $(MarchingCubes)/mc_draw.cpp
|
||||
# $(MarchingCubes)/morton.cpp
|
||||
# $(MarchingCubes)/opt_octree.cpp
|
||||
# $(MarchingCubes)/hash_octree.cpp
|
||||
|
||||
foamyHexMeshSurfaceSimplify.C
|
||||
|
||||
|
||||
Reference in New Issue
Block a user