Makefile.am 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. ## Process this file with automake to produce Makefile.in.
  2. ## FIXME: `make dist' in this directory will not currently work. Many
  3. ## files that should be in the distribution are not mentioned in this
  4. ## Makefile.am.
  5. AUTOMAKE_OPTIONS = foreign subdir-objects no-dist
  6. ACLOCAL_AMFLAGS = -I .. -I ../config
  7. SUBDIRS = include testsuite
  8. noinst_LTLIBRARIES = libgcjgc.la libgcjgc_convenience.la
  9. if POWERPC_DARWIN
  10. asm_libgcjgc_sources = powerpc_darwin_mach_dep.s
  11. else
  12. asm_libgcjgc_sources =
  13. endif
  14. libgcjgc_la_SOURCES = allchblk.c alloc.c blacklst.c checksums.c dbg_mlc.c \
  15. dyn_load.c finalize.c gc_dlopen.c gcj_mlc.c headers.c \
  16. malloc.c mallocx.c mark.c mark_rts.c misc.c new_hblk.c \
  17. obj_map.c os_dep.c pcr_interface.c ptr_chck.c real_malloc.c reclaim.c \
  18. specific.c stubborn.c typd_mlc.c \
  19. backgraph.c win32_threads.c \
  20. pthread_support.c pthread_stop_world.c darwin_stop_world.c \
  21. $(asm_libgcjgc_sources)
  22. libgcjgc_convenience_la_SOURCES = $(libgcjgc_la_SOURCES)
  23. EXTRA_DIST = alpha_mach_dep.S \
  24. mips_sgi_mach_dep.s mips_ultrix_mach_dep.s powerpc_darwin_mach_dep.s \
  25. rs6000_mach_dep.s sparc_mach_dep.S sparc_netbsd_mach_dep.s \
  26. sparc_sunos4_mach_dep.s ia64_save_regs_in_stack.s
  27. # Include THREADLIBS here to ensure that the correct versions of
  28. # linuxthread semaphore functions get linked:
  29. libgcjgc_la_LIBADD = $(addobjs) $(THREADLIBS) $(EXTRA_TEST_LIBS)
  30. libgcjgc_la_DEPENDENCIES = $(addobjs)
  31. libgcjgc_la_LDFLAGS = $(extra_ldflags_libgc) -version-info 1:2:0 -rpath $(toolexeclibdir)
  32. libgcjgc_la_LINK = $(LINK) $(libgcjgc_la_LDFLAGS)
  33. libgcjgc_convenience_la_LIBADD = $(addobjs)
  34. libgcjgc_convenience_la_DEPENDENCIES = $(addobjs)
  35. AM_CXXFLAGS = $(GC_CFLAGS) $(THREADCFLAGS)
  36. AM_CFLAGS = $(GC_CFLAGS) $(THREADCFLAGS)
  37. AM_LDFLAGS = $(shell $(top_srcdir)/../libtool-ldflags $(LDFLAGS))
  38. override CFLAGS := $(filter-out $(O0_CFLAGS), $(CFLAGS)) $(O0_CFLAGS)
  39. ## FIXME: we shouldn't have to do this, but automake forces us to.
  40. .s.lo:
  41. ## We use -Wp,-P to strip #line directives. Irix `as' chokes on
  42. ## these.
  43. $(LTCOMPILE) -Wp,-P -x assembler-with-cpp -c $<
  44. .S.lo:
  45. $(LTCOMPILE) -Wp,-P -x assembler-with-cpp -c $<
  46. # Work around what appears to be a GNU make bug handling MAKEFLAGS
  47. # values defined in terms of make variables, as is the case for CC and
  48. # friends when we are called from the top level Makefile.
  49. AM_MAKEFLAGS = \
  50. "AR_FLAGS=$(AR_FLAGS)" \
  51. "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
  52. "CFLAGS=$(CFLAGS)" \
  53. "CXXFLAGS=$(CXXFLAGS)" \
  54. "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
  55. "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
  56. "INSTALL=$(INSTALL)" \
  57. "INSTALL_DATA=$(INSTALL_DATA)" \
  58. "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
  59. "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
  60. "LDFLAGS=$(LDFLAGS)" \
  61. "LIBCFLAGS=$(LIBCFLAGS)" \
  62. "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
  63. "MAKE=$(MAKE)" \
  64. "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
  65. "PICFLAG=$(PICFLAG)" \
  66. "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
  67. "SHELL=$(SHELL)" \
  68. "EXPECT=$(EXPECT)" \
  69. "RUNTEST=$(RUNTEST)" \
  70. "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
  71. "exec_prefix=$(exec_prefix)" \
  72. "infodir=$(infodir)" \
  73. "libdir=$(libdir)" \
  74. "prefix=$(prefix)" \
  75. "tooldir=$(tooldir)" \
  76. "AR=$(AR)" \
  77. "AS=$(AS)" \
  78. "CC=$(CC)" \
  79. "CXX=$(CXX)" \
  80. "LD=$(LD)" \
  81. "LIBCFLAGS=$(LIBCFLAGS)" \
  82. "NM=$(NM)" \
  83. "PICFLAG=$(PICFLAG)" \
  84. "RANLIB=$(RANLIB)" \
  85. "DESTDIR=$(DESTDIR)"
  86. CONFIG_STATUS_DEPENDENCIES = $(srcdir)/configure.host
  87. MAKEOVERRIDES=