d_rules.am 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. ## Common rules for D source compilation used in all Makefile.am's.
  2. ## Copyright (C) 2016-2022 Free Software Foundation, Inc.
  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. # If there are no sources with known extension (i.e. only D sources)
  18. # automake forgets to set this
  19. CCLD = $(CC)
  20. toolexecdir = $(libphobos_toolexecdir)
  21. toolexeclibdir = $(libphobos_toolexeclibdir)
  22. # Compile D into normal object files
  23. .d.o:
  24. $(GDC) $(GDCFLAGS) $(MULTIFLAGS) $(D_EXTRA_DFLAGS) -c -o $@ $<
  25. # Compile D sources with libtool
  26. .d.lo:
  27. $(LTDCOMPILE) $(GDCFLAGS) $(MULTIFLAGS) $(D_EXTRA_DFLAGS) -c -o $@ $<
  28. LTDCOMPILE = $(LIBTOOL) --tag=D $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  29. --mode=compile $(GDC) $(AM_DFLAGS)