Advertisement
Guest User

Untitled

a guest
Feb 4th, 2020
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 2.81 KB | None | 0 0
  1. --- Makefile.old    2020-02-03 10:56:25.000000000 +0000
  2. +++ Makefile    2020-02-03 11:32:00.735254403 +0000
  3. @@ -144,13 +144,13 @@
  4.  # Use TARGET=<target_name> to optimize for a specifc target OS among the
  5.  # following list (use the default "generic" if uncertain) :
  6.  #    linux-glibc, linux-glibc-legacy, solaris, freebsd, openbsd, netbsd,
  7. -#    cygwin, haiku, aix51, aix52, osx, generic, custom
  8. +#    cygwin, haiku, aix51, aix52, aix72-gcc, osx, generic, custom
  9.  TARGET =
  10.  
  11.  #### TARGET CPU
  12.  # Use CPU=<cpu_name> to optimize for a particular CPU, among the following
  13.  # list :
  14. -#    generic, native, i586, i686, ultrasparc, custom
  15. +#    generic, native, i586, i686, ultrasparc, power8, power9, custom
  16.  CPU = generic
  17.  
  18.  #### Architecture, used when not building for native architecture
  19. @@ -257,6 +257,8 @@
  20.  CPU_CFLAGS.i586       = -O2 -march=i586
  21.  CPU_CFLAGS.i686       = -O2 -march=i686
  22.  CPU_CFLAGS.ultrasparc = -O6 -mcpu=v9 -mtune=ultrasparc
  23. +CPU_CFLAGS.power8     = -O2 -mcpu=power8 -mtune=power8
  24. +CPU_CFLAGS.power9     = -O2 -mcpu=power9 -mtune=power9
  25.  CPU_CFLAGS            = $(CPU_CFLAGS.$(CPU))
  26.  
  27.  #### ARCH dependant flags, may be overridden by CPU flags
  28. @@ -381,7 +383,7 @@
  29.    DEBUG_CFLAGS    =
  30.  endif
  31.  
  32. -# AIX 5.2 and above
  33. +# AIX 5.2
  34.  ifeq ($(TARGET),aix52)
  35.    set_target_defaults = $(call default_opts, \
  36.      USE_POLL USE_LIBCRYPT USE_OBSOLETE_LINKER)
  37. @@ -389,6 +391,14 @@
  38.    DEBUG_CFLAGS    =
  39.  endif
  40.  
  41. +# AIX 7.2 and above
  42. +ifeq ($(TARGET),aix72-gcc)
  43. +  set_target_defaults = $(call default_opts, \
  44. +    USE_POLL USE_THREAD USE_LIBCRYPT USE_OBSOLETE_LINKER USE_GETADDRINFO USE_TFO)
  45. +  TARGET_CFLAGS   = -D_H_XMEM -D_H_VAR
  46. +  TARGET_LDFLAGS  = -latomic
  47. +endif
  48. +
  49.  # Cygwin
  50.  ifeq ($(TARGET),cygwin)
  51.    set_target_defaults = $(call default_opts, \
  52. @@ -754,7 +764,7 @@
  53.     @echo "Please choose the target among the following supported list :"
  54.     @echo
  55.     @echo "   linux-glibc, linux-glibc-legacy, solaris, freebsd, openbsd, netbsd,"
  56. -   @echo "   cygwin, haiku, aix51, aix52, osx, generic, custom"
  57. +   @echo "   cygwin, haiku, aix51, aix52, aix72-gcc, osx, generic, custom"
  58.     @echo
  59.     @echo "Use \"generic\" if you don't want any optimization, \"custom\" if you"
  60.     @echo "want to precisely tweak every option, or choose the target which"
  61. @@ -832,7 +842,7 @@
  62.        else \
  63.          echo "TARGET not set, you may pass 'TARGET=xxx' to set one among :";\
  64.          echo "  linux-glibc, linux-glibc-legacy, solaris, freebsd, netbsd, osx,"; \
  65. -        echo "  openbsd, aix51, aix52, cygwin, haiku, generic, custom"; \
  66. +        echo "  openbsd, aix51, aix52, aix72-gcc, cygwin, haiku, generic, custom"; \
  67.        fi
  68.     $(Q)echo;echo "Enabled features for TARGET '$(TARGET)' (disable with 'USE_xxx=') :"
  69.     $(Q)set -- $(foreach opt,$(patsubst USE_%,%,$(use_opts)),$(if $(USE_$(opt)),$(opt),)); echo "  $$*" | (fmt || cat) 2>/dev/null
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement