Makefile 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # Copyright (C) 1993-2026 Free Software Foundation, Inc.
  2. # This file is part of the GNU C Library.
  3. # The GNU C Library is free software; you can redistribute it and/or
  4. # modify it under the terms of the GNU Lesser General Public
  5. # License as published by the Free Software Foundation; either
  6. # version 2.1 of the License, or (at your option) any later version.
  7. # The GNU C Library is distributed in the hope that it will be useful,
  8. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  10. # Lesser General Public License for more details.
  11. # You should have received a copy of the GNU Lesser General Public
  12. # License along with the GNU C Library. If not, see
  13. # <https://www.gnu.org/licenses/>.
  14. # The mpn functions need this. All existing 68k ports use MIT syntax. If
  15. # a new port wants to use Motorola or Sony syntax, it can redefine this
  16. # variable.
  17. ifndef m68k-syntax-flag
  18. m68k-syntax-flag = -DMIT_SYNTAX
  19. endif
  20. asm-CPPFLAGS += $(m68k-syntax-flag)
  21. pic-ccflag = -fpic
  22. ifeq ($(subdir),csu)
  23. # Make sure gcrt1.o uses the large PIC model
  24. CFLAGS-gmon-start.c := -fPIC
  25. ifeq ($(build-pie-default),yes)
  26. # Override default PIE
  27. ASFLAGS-.o += -fno-pie
  28. endif
  29. endif
  30. ifeq ($(subdir),setjmp)
  31. # Make sure setjmp.c is compiled with a frame pointer
  32. CFLAGS-setjmp.c := -fno-omit-frame-pointer
  33. endif
  34. ifeq ($(subdir),elf)
  35. CFLAGS-rtld.c += -Wno-uninitialized -Wno-unused
  36. endif
  37. ifeq ($(subdir),gmon)
  38. CFLAGS-mcount.c += -Wno-frame-address
  39. endif