diff options
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/Makefile.am b/Makefile.am index 5c1ed96a..7b851e29 100644 --- a/Makefile.am +++ b/Makefile.am @@ -25,7 +25,9 @@ SUBDIRS = doc include EXTRA_DIST = ## more items will be succesively added below -lib_LTLIBRARIES = libgc.la +lib_LTLIBRARIES = libgc.la @addlibs@ + +EXTRA_LTLIBRARIES = libgccpp.la include_HEADERS = include/gc.h include/gc_local_alloc.h \ include/gc_pthread_redirects.h include/gc_config_macros.h \ @@ -49,7 +51,11 @@ libgc_la_LDFLAGS = -version-info 1:2:0 EXTRA_libgc_la_SOURCES = alpha_mach_dep.S \ mips_sgi_mach_dep.S mips_ultrix_mach_dep.s powerpc_macosx_mach_dep.s \ rs6000_mach_dep.s sparc_mach_dep.S sparc_netbsd_mach_dep.s \ - sparc_sunos4_mach_dep.s ia64_save_regs_in_stack.s gc_cpp.cc + sparc_sunos4_mach_dep.s ia64_save_regs_in_stack.s + +libgccpp_la_SOURCES = gc_cpp.cc +libgccpp_la_LIBADD = $(THREADLIBS) +libgccpp_la_LDFLAGS = -version-info 1:2:0 EXTRA_DIST += alpha_mach_dep.S mips_sgi_mach_dep.S sparc_mach_dep.S @@ -71,10 +77,14 @@ test_cpp.o: $(srcdir)/tests/test_cpp.cc gctest_SOURCES = tests/test.c gctest_LDADD = ./libgc.la $(THREADLIBS) $(EXTRA_TEST_LIBS) test_cpp_SOURCES = tests/test_cpp.cc -test_cpp_LDADD = ./libgc.la $(THREADLIBS) $(EXTRA_TEST_LIBS) -TESTS_ENVIRONMENT = LD_LIBRARY_PATH=../../gcc +test_cpp_LDADD = ./libgc.la ./libgccpp.la $(THREADLIBS) $(EXTRA_TEST_LIBS) + TESTS = gctest @addtests@ +test_cpp$(EXEEXT): test_cpp.o + $(LIBTOOL) --mode=link $(CXX) $(AM_CFLAGS) $(MY_CFLAGS) \ + test_cpp.o $(test_cpp_LDADD) $(LDFLAGS) -o $@ + ## FIXME: relies on internal code generated by automake. all_objs = @addobjs@ $(libgc_la_OBJECTS) $(all_objs) : include/private/gcconfig.h include/private/gc_priv.h \ |