]> git.ipfire.org Git - thirdparty/gcc.git/blame - libphobos/d_rules.am
[Ada] Fix documentation for GNAT.Command_Line.Exit_From_Command_Line
[thirdparty/gcc.git] / libphobos / d_rules.am
CommitLineData
03385ed3 1## Common rules for D source compilation used in all Makefile.am's.
fbd26352 2## Copyright (C) 2016-2019 Free Software Foundation, Inc.
03385ed3 3##
4## GCC is free software; you can redistribute it and/or modify
5## it under the terms of the GNU General Public License as published by
6## the Free Software Foundation; either version 3, or (at your option)
7## any later version.
8##
9## GCC is distributed in the hope that it will be useful,
10## but WITHOUT ANY WARRANTY; without even the implied warranty of
11## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12## GNU General Public License for more details.
13##
14## You should have received a copy of the GNU General Public License
15## along with GCC; see the file COPYING3. If not see
16## <http://www.gnu.org/licenses/>.
17
18# If there are no sources with known extension (i.e. only D sources)
19# automake forgets to set this
20CCLD = $(CC)
21
5114391d 22toolexecdir = $(libphobos_toolexecdir)
23toolexeclibdir = $(libphobos_toolexeclibdir)
24
03385ed3 25# Compile D into normal object files
26.d.o:
27 $(GDC) $(GDCFLAGS) $(MULTIFLAGS) $(D_EXTRA_DFLAGS) -c -o $@ $<
28
29# Compile D sources with libtool
30.d.lo:
31 $(LTDCOMPILE) $(GDCFLAGS) $(MULTIFLAGS) $(D_EXTRA_DFLAGS) -c -o $@ $<
32
33LTDCOMPILE = $(LIBTOOL) --tag=D $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
34 --mode=compile $(GDC) $(AM_DFLAGS)
35
03385ed3 36# Also override library link commands: This is not strictly
37# required, but we want to record additional dependencies such
38# as pthread in the library
39libgdruntime_la_LINK = $(LIBTOOL) --tag=D $(AM_LIBTOOLFLAGS) \
40 $(LIBTOOLFLAGS) --mode=link $(GDC) $(AM_CFLAGS) $(CFLAGS) \
41 $(libgdruntime_la_LDFLAGS) $(LDFLAGS) -o $@
42
03385ed3 43libgphobos_la_LINK = $(LIBTOOL) --tag=D $(libgphobos_la_LIBTOOLFLAGS) \
44 $(LIBTOOLFLAGS) --mode=link $(GDC) $(AM_CFLAGS) $(CFLAGS) \
45 $(libgphobos_la_LDFLAGS) $(LDFLAGS) -o $@