From 4380ef5e29eb219706a725848c4e704762a58708 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 1 Apr 2000 21:49:24 +0000 Subject: Update. * dlfcn/Makefile (distribute): Add glreflib1.c and glreflib2.c. (tests): Add glrefmain. Add rules to build modules and run tests. Ignore result of glrefmain for now since it fails. * dlfcn/glrefmain.c: New file. * dlfcn/glreflib1.c: New file. * dlfcn/glreflib2.c: New file. * test-skeleton.c: Include for strsignal prototype. --- dlfcn/Makefile | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) (limited to 'dlfcn/Makefile') diff --git a/dlfcn/Makefile b/dlfcn/Makefile index 7457b5687e..31e081f5bb 100644 --- a/dlfcn/Makefile +++ b/dlfcn/Makefile @@ -1,4 +1,4 @@ -# Copyright (C) 1995, 1996, 1997, 1998, 1999 Free Software Foundation, Inc. +# Copyright (C) 1995-1999, 2000 Free Software Foundation, Inc. # This file is part of the GNU C Library. # The GNU C Library is free software; you can redistribute it and/or @@ -20,7 +20,7 @@ subdir := dlfcn headers := bits/dlfcn.h dlfcn.h extra-libs := libdl libdl-routines := dlopen dlclose dlsym dlvsym dlerror dladdr -distribute := dlopenold.c +distribute := dlopenold.c glreflib1.c glreflib2.c extra-libs-others := libdl @@ -31,4 +31,21 @@ libdl-routines += dlopenold libdl-shared-only-routines := dlopenold endif +ifeq (yes,$(build-shared)) +tests = glrefmain +endif +modules-names = glreflib1 glreflib2 +extra-objs += $(modules-names:=.os) + include ../Rules + +test-modules = $(addprefix $(objpfx),$(addsuffix .so,$(modules-names))) +$(test-modules): $(objpfx)%.so: $(objpfx)%.os + $(build-module) + +$(objpfx)glrefmain: $(objpfx)libdl.so +$(objpfx)glrefmain.out: $(objpfx)glrefmain \ + $(objpfx)glreflib1.so $(objpfx)glreflib2.so + -$(elf-objpfx)$(rtld-installed-name) \ + --library-path $(rpath-link)$(patsubst %,:%,$(sysdep-library-path)) \ + $(objpfx)glrefmain > $@ -- cgit v1.2.3