Rombobjörn

summaryrefslogtreecommitdiff
path: root/comfignat.mk
diff options
context:
space:
mode:
authorBjörn Persson <bjorn@rombobjörn.se>2013-05-22 07:03:53 +0200
committerBjörn Persson <bjorn@rombobjörn.se>2013-05-22 07:03:53 +0200
commit3cb24b9caa33dadb104e39df9feb4f53183b449c (patch)
tree45990888f6b24ded3b5e7a5e61f8ca492b02da09 /comfignat.mk
parent18a1894c800aa8a775efbd2f68287266f70eae9f (diff)
grammar change and comment improvements
Diffstat (limited to 'comfignat.mk')
-rw-r--r--comfignat.mk29
1 files changed, 16 insertions, 13 deletions
diff --git a/comfignat.mk b/comfignat.mk
index e64eab6..c9a34b6 100644
--- a/comfignat.mk
+++ b/comfignat.mk
@@ -19,7 +19,7 @@
# system. Usage projects and the Comfignat project will be preprocessed with
# Gnatprep. (Build projects may also be preprocessed.)
#
-# If a directory project is provided, then the project files will get the
+# If a directories project is provided, then the project files will get the
# directory variables from there, otherwise the Make variables will be used.
#
# This file may not work with other Make clones than GNU Make. (Reusable Make
@@ -36,6 +36,9 @@
GNATPREP ?= gnatprep
GNAT_BUILDER ?= gprbuild
+# If GNAT_BUILDER looks like it will invoke Gnatmake, then make the default
+# value of GNATFLAGS compatible with Gnatmake. Otherwise make it suitable for
+# building multi-language projects with GPRbuild.
GNATFLAGS ?= ${if ${findstring gnatmake, \
${notdir ${call mung,${GNAT_BUILDER}}}}, \
${GNAT_BUILDER_FLAGS} \
@@ -64,10 +67,10 @@ GNATFLAGS ?= ${if ${findstring gnatmake, \
#
dirgpr =
-# dirgpr should be the filename of the target system's directory project if
-# there is one. Project files will be configured to use the directory project,
-# and the Gnatprep symbols Directory_GPR and Directory_Project will be derived
-# from dirgpr.
+# dirgpr should be the filename of the target system's directories project if
+# there is one. The Gnatprep symbols Directories_GPR and Directories_Project
+# will be derived from dirgpr, and project files will be configured to use the
+# directories project.
prefix = /usr/local
exec_prefix = ${prefix}
@@ -203,18 +206,18 @@ directories := '-DObjdir="${objdir}"' '-DStagedir="${stagedir}"'
ifneq (${dirgpr},)
- # A directory project is used, so make project files take the directory
+ # A directories project is used, so make project files take the directory
# variables from there.
- directory_project := ${basename ${notdir ${dirgpr}}}
- directories += '-DDirectory_GPR="${dirgpr}"'
- directories += '-DDirectory_Project=${directory_project}'
+ directories_project := ${basename ${notdir ${dirgpr}}}
+ directories += '-DDirectories_GPR="${dirgpr}"'
+ directories += '-DDirectories_Project=${directories_project}'
directories += '-DPrefix="${prefix}"'
directories += '-DExec_Prefix="${exec_prefix}"'
- directories += '-DBindir=${directory_project}.Bindir'
- directories += '-DLibexecdir=${directory_project}.Libexecdir'
- directories += '-DIncludedir=${directory_project}.Includedir'
- directories += '-DLibdir=${directory_project}.Libdir'
+ directories += '-DBindir=${directories_project}.Bindir'
+ directories += '-DLibexecdir=${directories_project}.Libexecdir'
+ directories += '-DIncludedir=${directories_project}.Includedir'
+ directories += '-DLibdir=${directories_project}.Libdir'
else ifeq (${relocatable_package},true)