command.mk 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #
  2. # This Source Code Form is subject to the terms of the Mozilla Public
  3. # License, v. 2.0. If a copy of the MPL was not distributed with this
  4. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
  5. #######################################################################
  6. # Master "Core Components" default command macros; #
  7. # can be overridden in <arch>.mk #
  8. #######################################################################
  9. AS = $(CC)
  10. ASFLAGS += $(CFLAGS)
  11. CCF = $(CC) $(CFLAGS)
  12. LINK_DLL = $(LD) $(OS_DLLFLAGS) $(DLLFLAGS) $(XLDFLAGS)
  13. CFLAGS = $(OPTIMIZER) $(OS_CFLAGS) $(WARNING_CFLAGS) $(XP_DEFINE) \
  14. $(DEFINES) $(INCLUDES) $(XCFLAGS)
  15. CSTD = -std=c99
  16. CXXSTD = -std=c++11
  17. PERL = perl
  18. RANLIB = echo
  19. TAR = /bin/tar
  20. #
  21. # For purify
  22. #
  23. NOMD_CFLAGS += $(OPTIMIZER) $(NOMD_OS_CFLAGS) $(XP_DEFINE) $(DEFINES) \
  24. $(INCLUDES) $(XCFLAGS)
  25. # Optimization of code for size
  26. # OPT_CODE_SIZE
  27. # =1: The code can be optimized for size.
  28. # The code is actually optimized for size only if ALLOW_OPT_CODE_SIZE=1
  29. # in a given source code directory (in manifest.mn)
  30. # =0: Never optimize the code for size.
  31. #
  32. # Default value = 0
  33. # Can be overridden from the make command line.
  34. ifndef OPT_CODE_SIZE
  35. OPT_CODE_SIZE = 0
  36. endif
  37. MK_COMMAND = included