Makefile.multilib 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. # multilib support
  4. ifeq ($(ADK_TARGET_WITH_MULTILIB),y)
  5. TABI:=
  6. TCFLAGS:=
  7. ifeq ($(ADK_TARGET_MULTILIB_X86_X32),y)
  8. TABI+=x86_64-openadk-linux-gnu:x32
  9. TCFLAGS:=-m
  10. endif
  11. ifeq ($(ADK_TARGET_MULTILIB_X86_32),y)
  12. TABI+=i486-openadk-linux-gnu:32
  13. TCFLAGS:=-m
  14. endif
  15. ifeq ($(ADK_TARGET_MULTILIB_X86_64),y)
  16. TABI+=x86_64-openadk-linux-gnu:64
  17. TCFLAGS:=-m
  18. endif
  19. ifeq ($(ADK_TARGET_MULTILIB_MIPS_N32),y)
  20. ifeq ($(ADK_KERNEL_CPU_LITTLE_ENDIAN),y)
  21. TABI+=mips64el-openadk-linux-gnu:n32
  22. TCFLAGS:=-mabi=
  23. else
  24. TABI+=mips64-openadk-linux-gnu:n32
  25. TCFLAGS:=-mabi=
  26. endif
  27. endif
  28. ifeq ($(ADK_TARGET_MULTILIB_MIPS_O32),y)
  29. ifeq ($(ADK_KERNEL_CPU_LITTLE_ENDIAN),y)
  30. TABI+=mips64el-openadk-linux-gnu:32
  31. TCFLAGS:=-mabi=
  32. else
  33. TABI+=mips64-openadk-linux-gnu:32
  34. TCFLAGS:=-mabi=
  35. endif
  36. endif
  37. ifeq ($(ADK_TARGET_MULTILIB_MIPS_64),y)
  38. ifeq ($(ADK_KERNEL_CPU_LITTLE_ENDIAN),y)
  39. TABI+=mips64el-openadk-linux-gnu:64
  40. TCFLAGS:=-mabi=
  41. else
  42. TABI+=mips64-openadk-linux-gnu:64
  43. TCFLAGS:=-mabi=
  44. endif
  45. endif
  46. endif