/Modules/_ctypes/libffi/Makefile.am

http://unladen-swallow.googlecode.com/ · Makefile · 177 lines · 149 code · 19 blank · 9 comment · 23 complexity · d79c7caf8fdc4f370a3c325a5e576e32 MD5 · raw file

  1. ## Process this with automake to create Makefile.in
  2. AUTOMAKE_OPTIONS = foreign subdir-objects
  3. SUBDIRS = include testsuite man
  4. EXTRA_DIST = LICENSE ChangeLog.v1 ChangeLog.libgcj configure.host \
  5. src/alpha/ffi.c src/alpha/osf.S src/alpha/ffitarget.h \
  6. src/arm/ffi.c src/arm/sysv.S src/arm/ffitarget.h \
  7. src/cris/ffi.c src/cris/sysv.S src/cris/ffitarget.h \
  8. src/ia64/ffi.c src/ia64/ffitarget.h src/ia64/ia64_flags.h \
  9. src/ia64/unix.S \
  10. src/mips/ffi.c src/mips/n32.S src/mips/o32.S \
  11. src/mips/ffitarget.h \
  12. src/m32r/ffi.c src/m32r/sysv.S src/m32r/ffitarget.h \
  13. src/m68k/ffi.c src/m68k/sysv.S src/m68k/ffitarget.h \
  14. src/powerpc/ffi.c src/powerpc/sysv.S \
  15. src/powerpc/linux64.S src/powerpc/linux64_closure.S \
  16. src/powerpc/ppc_closure.S src/powerpc/asm.h \
  17. src/powerpc/aix.S src/powerpc/darwin.S \
  18. src/powerpc/aix_closure.S src/powerpc/darwin_closure.S \
  19. src/powerpc/ffi_darwin.c src/powerpc/ffitarget.h \
  20. src/s390/ffi.c src/s390/sysv.S src/s390/ffitarget.h \
  21. src/sh/ffi.c src/sh/sysv.S src/sh/ffitarget.h \
  22. src/sh64/ffi.c src/sh64/sysv.S src/sh64/ffitarget.h \
  23. src/sparc/v8.S src/sparc/v9.S src/sparc/ffitarget.h \
  24. src/sparc/ffi.c src/x86/darwin64.S \
  25. src/x86/ffi.c src/x86/sysv.S src/x86/win32.S src/x86/darwin.S \
  26. src/x86/freebsd.S \
  27. src/x86/ffi64.c src/x86/unix64.S src/x86/ffitarget.h \
  28. src/pa/ffitarget.h src/pa/ffi.c src/pa/linux.S src/pa/hpux32.S \
  29. src/frv/ffi.c src/frv/eabi.S src/frv/ffitarget.h src/dlmalloc.c \
  30. libtool-version ChangeLog.libffi
  31. info_TEXINFOS = doc/libffi.texi
  32. ## ################################################################
  33. ##
  34. ## This section is for make and multilib madness.
  35. ##
  36. # Work around what appears to be a GNU make bug handling MAKEFLAGS
  37. # values defined in terms of make variables, as is the case for CC and
  38. # friends when we are called from the top level Makefile.
  39. AM_MAKEFLAGS = \
  40. "AR_FLAGS=$(AR_FLAGS)" \
  41. "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
  42. "CFLAGS=$(CFLAGS)" \
  43. "CXXFLAGS=$(CXXFLAGS)" \
  44. "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
  45. "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
  46. "INSTALL=$(INSTALL)" \
  47. "INSTALL_DATA=$(INSTALL_DATA)" \
  48. "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
  49. "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
  50. "JC1FLAGS=$(JC1FLAGS)" \
  51. "LDFLAGS=$(LDFLAGS)" \
  52. "LIBCFLAGS=$(LIBCFLAGS)" \
  53. "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
  54. "MAKE=$(MAKE)" \
  55. "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
  56. "PICFLAG=$(PICFLAG)" \
  57. "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
  58. "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
  59. "SHELL=$(SHELL)" \
  60. "exec_prefix=$(exec_prefix)" \
  61. "infodir=$(infodir)" \
  62. "libdir=$(libdir)" \
  63. "prefix=$(prefix)" \
  64. "AR=$(AR)" \
  65. "AS=$(AS)" \
  66. "CC=$(CC)" \
  67. "CXX=$(CXX)" \
  68. "LD=$(LD)" \
  69. "NM=$(NM)" \
  70. "RANLIB=$(RANLIB)" \
  71. "DESTDIR=$(DESTDIR)"
  72. MAKEOVERRIDES=
  73. lib_LTLIBRARIES = libffi.la
  74. noinst_LTLIBRARIES = libffi_convenience.la
  75. libffi_la_SOURCES = src/debug.c src/prep_cif.c src/types.c \
  76. src/raw_api.c src/java_raw_api.c src/closures.c
  77. pkgconfigdir = $(libdir)/pkgconfig
  78. pkgconfig_DATA = libffi.pc
  79. nodist_libffi_la_SOURCES =
  80. if MIPS
  81. nodist_libffi_la_SOURCES += src/mips/ffi.c src/mips/o32.S src/mips/n32.S
  82. endif
  83. if X86
  84. nodist_libffi_la_SOURCES += src/x86/ffi.c src/x86/sysv.S
  85. endif
  86. if X86_FREEBSD
  87. nodist_libffi_la_SOURCES += src/x86/ffi.c src/x86/freebsd.S
  88. endif
  89. if X86_WIN32
  90. nodist_libffi_la_SOURCES += src/x86/ffi.c src/x86/win32.S
  91. endif
  92. if X86_DARWIN
  93. nodist_libffi_la_SOURCES += src/x86/ffi.c src/x86/darwin.S src/x86/ffi64.c src/x86/darwin64.S
  94. endif
  95. if SPARC
  96. nodist_libffi_la_SOURCES += src/sparc/ffi.c src/sparc/v8.S src/sparc/v9.S
  97. endif
  98. if ALPHA
  99. nodist_libffi_la_SOURCES += src/alpha/ffi.c src/alpha/osf.S
  100. endif
  101. if IA64
  102. nodist_libffi_la_SOURCES += src/ia64/ffi.c src/ia64/unix.S
  103. endif
  104. if M32R
  105. nodist_libffi_la_SOURCES += src/m32r/sysv.S src/m32r/ffi.c
  106. endif
  107. if M68K
  108. nodist_libffi_la_SOURCES += src/m68k/ffi.c src/m68k/sysv.S
  109. endif
  110. if POWERPC
  111. nodist_libffi_la_SOURCES += src/powerpc/ffi.c src/powerpc/sysv.S src/powerpc/ppc_closure.S src/powerpc/linux64.S src/powerpc/linux64_closure.S
  112. endif
  113. if POWERPC_AIX
  114. nodist_libffi_la_SOURCES += src/powerpc/ffi_darwin.c src/powerpc/aix.S src/powerpc/aix_closure.S
  115. endif
  116. if POWERPC_DARWIN
  117. nodist_libffi_la_SOURCES += src/powerpc/ffi_darwin.c src/powerpc/darwin.S src/powerpc/darwin_closure.S
  118. endif
  119. if POWERPC_FREEBSD
  120. nodist_libffi_la_SOURCES += src/powerpc/ffi.c src/powerpc/sysv.S src/powerpc/ppc_closure.S
  121. endif
  122. if ARM
  123. nodist_libffi_la_SOURCES += src/arm/sysv.S src/arm/ffi.c
  124. endif
  125. if LIBFFI_CRIS
  126. nodist_libffi_la_SOURCES += src/cris/sysv.S src/cris/ffi.c
  127. endif
  128. if FRV
  129. nodist_libffi_la_SOURCES += src/frv/eabi.S src/frv/ffi.c
  130. endif
  131. if S390
  132. nodist_libffi_la_SOURCES += src/s390/sysv.S src/s390/ffi.c
  133. endif
  134. if X86_64
  135. nodist_libffi_la_SOURCES += src/x86/ffi64.c src/x86/unix64.S src/x86/ffi.c src/x86/sysv.S
  136. endif
  137. if SH
  138. nodist_libffi_la_SOURCES += src/sh/sysv.S src/sh/ffi.c
  139. endif
  140. if SH64
  141. nodist_libffi_la_SOURCES += src/sh64/sysv.S src/sh64/ffi.c
  142. endif
  143. if PA_LINUX
  144. nodist_libffi_la_SOURCES += src/pa/linux.S src/pa/ffi.c
  145. endif
  146. if PA_HPUX
  147. nodist_libffi_la_SOURCES += src/pa/hpux32.S src/pa/ffi.c
  148. endif
  149. libffi_convenience_la_SOURCES = $(libffi_la_SOURCES)
  150. nodist_libffi_convenience_la_SOURCES = $(nodist_libffi_la_SOURCES)
  151. AM_CFLAGS = -Wall -g -fexceptions
  152. libffi_la_LDFLAGS = -version-info `grep -v '^\#' $(srcdir)/libtool-version`
  153. AM_CPPFLAGS = -I. -I$(top_srcdir)/include -Iinclude -I$(top_srcdir)/src
  154. AM_CCASFLAGS = $(AM_CPPFLAGS)
  155. # No install-html or install-pdf support in automake yet
  156. .PHONY: install-html install-pdf
  157. install-html:
  158. install-pdf: