D_VERSIONS changed to D_VERSION
[k8jam.git] / defaults / build / Jambase.build.gdc
blobae9b633cb2b798769c5c51d0a10ada9352846be1
1 # This program is free software: you can redistribute it and/or modify
2 # it under the terms of the GNU General Public License as published by
3 # the Free Software Foundation, either version 3 of the License, or
4 # (at your option) any later version.
6 # This program is distributed in the hope that it will be useful,
7 # but WITHOUT ANY WARRANTY; without even the implied warranty of
8 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
9 # GNU General Public License for more details.
11 # You should have received a copy of the GNU General Public License
12 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
14 rule FGdcDebugs { return -fdebug=$(<) ; }
15 rule FGdcVersions { return -fversion=$(<) ; }
18 rule Gdc {
19   Depends $(<) : $(>) ;
20   # Just to clarify here: this sets the per-target CCFLAGS to
21   # be the current value of (global) CCFLAGS and SUBDIRCCFLAGS.
22   # CCHDRS and CCDEFS must be reformatted each time for some
23   # compiles (VMS, NT) that malign multiple -D or -I flags.
24   GDCFLAGS on $(<) += $(GDCFLAGS) $(SUBDIRCCFLAGS) ;
25   GDCHDRS on $(<) = [ on $(<) FDIncludes $(HDRS) ] ;
26   GDCHDRS on $(<) += [ on $(<) FIncludes $(HDRS) ] ;
27   GDCDEFS on $(<) = [ on $(<) FDefines $(DEFINES) ] ;
28   GDCHDRS on $(<) += [ FDIncludes $(SUBDIRHDRS) ] ;
29   GDCHDRS on $(<) += [ FIncludes $(SUBDIRHDRS) ] ;
30   GDCDEFS on $(<) += [ FDefines $(SUBDIRDEFINES) ] ;
31   GDC_DEBUG on $(<) += [ FGdcDebugs $(D_DEBUG) ] ;
32   GDC_VERSIONS on $(<) += [ FGdcVersions $(D_VERSION) ] ;
36 actions Gdc {
37   $(GDC) -c -o $(<) $(GDCFLAGS.all) $(GDCFLAGS) $(OPTIM.all) $(OPTIM) $(GDCDEFS) $(GDCHDRS) $(GDC_DEBUG) $(GDC_VERSIONS) $(>)