mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-16 18:10:11 +00:00
b0b67c47a5
1998-07-02 21:51 Ulrich Drepper <drepper@cygnus.com> * Makeconfig: Define list of subdirs as all-subdirs and make subdirs a copy. * Makefile: Add rules to generate map files. (distribute): Remove libc.map, add Versions.def and versions.awk. * Makerules: Change rules to find map files on common-objpfx. * elf/Makefile: Likewise. * md5-crypt/Makefile: Likewise. * nis/Makefile (libnsl-map): Remove. * Versions.def: New file. * versions.awk: New file. * argp/Versions: New file. * assert/Versions: New file. * catgets/Versions: New file. * csu/Versions: New file. * ctype/Versions: New file. * db/Versions: New file. * debug/Versions: New file. * dirent/Versions: New file. * elf/Versions: New file. * gmon/Versions: New file. * grp/Versions: New file. * hesiod/Versions: New file. * hurd/Versions: New file. * iconv/Versions: New file. * inet/Versions: New file. * intl/Versions: New file. * io/Versions: New file. * libio/Versions: New file. * linuxthreads/Versions: New file. * locale/Versions: New file. * login/Versions: New file. * malloc/Versions: New file. * math/Versions: New file. * md5-crypt/Versions: New file. * misc/Versions: New file. * nis/Versions: New file. * nss/Versions: New file. * posix/Versions: New file. * pwd/Versions: New file. * resolv/Versions: New file. * resource/Versions: New file. * rt/Versions: New file. * setjmp/Versions: New file. * shadow/Versions: New file. * signal/Versions: New file. * socket/Versions: New file. * stdio/Versions: New file. * stdio-common/Versions: New file. * stdlib/Versions: New file. * streams/Versions: New file. * string/Versions: New file. * sunrpc/Versions: New file. * sysdeps/alpha/Versions: New file. * sysdeps/alpha/fpu/Versions: New file. * sysdeps/i386/Versions: New file. * sysdeps/sparc/Versions: New file. * sysdeps/unix/sysv/Versions: New file. * sysdeps/unix/sysv/linux/Versions: New file. * sysdeps/unix/sysv/linux/alpha/Versions: New file. * sysdeps/unix/sysv/linux/i386/Versions: New file. * sysdeps/unix/sysv/linux/mips/Versions: New file. * sysvipc/Versions: New file. * termios/Versions: New file. * time/Versions: New file. * wcsmbs/Versions: New file. * wctype/Versions: New file. * libc.map: Removed. * db/libdb.map: Removed. * elf/libdl.map: Removed. * hesiod/libnss_hesiod.map: Removed. * hurd/libhurduser.map: Removed. * hurd/libmachuser.map: Removed. * linuxthreads/libpthread.map: Removed. * locale/libBrokenLocale.map: Removed. * login/libutil.map: Removed. * math/libm.map: Removed. * md5-crypt/libcrypt.map: Removed. * nis/libnsl.map: Removed. * nis/libnsl_compat.map: Removed. * nis/libnss_nis.map: Removed. * nis/libnss_nisplus.map: Removed. * nss/libnss_db.map: Removed. * nss/libnss_files.map: Removed. * resolv/libnss_dns.map: Removed. * resolv/libresolv.map: Removed. * rt/librt.map: Removed. * elf/dl-load.c (fillin_rpath): Fix test for trusted directory. Fix typos. * elf/rtld.c (process_dl_debug): Recognize 'all'. (process_envvars): LD_BIND_NOW must be followed by y, Y, or 1. * sysdeps/generic/elf/backtracesyms.c: Allocate string memory of correct size. * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Fix typo in comment.
84 lines
2.6 KiB
Makefile
84 lines
2.6 KiB
Makefile
# Copyright (C) 1996, 1997, 1998 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
|
|
# modify it under the terms of the GNU Library General Public License as
|
|
# published by the Free Software Foundation; either version 2 of the
|
|
# License, or (at your option) any later version.
|
|
|
|
# The GNU C Library is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
# Library General Public License for more details.
|
|
|
|
# You should have received a copy of the GNU Library General Public
|
|
# License along with the GNU C Library; see the file COPYING.LIB. If not,
|
|
# write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
# Boston, MA 02111-1307, USA.
|
|
|
|
#
|
|
# Sub-makefile for MD5 crypt portion of the library.
|
|
#
|
|
subdir := md5-crypt
|
|
|
|
headers := crypt.h
|
|
|
|
distribute := md5.h
|
|
|
|
tests := md5test md5c-test
|
|
|
|
extra-libs := libcrypt
|
|
extra-libs-others := $(extra-libs)
|
|
|
|
md5-routines := crypt-entry md5-crypt md5
|
|
libcrypt-routines := $(md5-routines)
|
|
|
|
onlymd5-routines := onlymd5-entry md5-crypt md5
|
|
distribute += onlymd5-entry.c
|
|
extra-objs = $(patsubst %,onlymd5-entry%,$(object-suffixes))
|
|
|
|
include ../Makeconfig
|
|
|
|
rpath-dirs += md5-crypt
|
|
|
|
ifeq ($(crypt-in-libc),yes)
|
|
routines += $(libcrypt-routines)
|
|
endif
|
|
|
|
$(objpfx)md5test: $(objpfx)md5.o
|
|
|
|
include ../Rules
|
|
|
|
ifeq ($(build-shared),yes)
|
|
libdepend = $(common-objpfx)md5-crypt/libcrypt.so$(libcrypt.so-version)
|
|
else
|
|
libdepend = $(common-objpfx)md5-crypt/libcrypt.a
|
|
endif
|
|
|
|
$(objpfx)md5test $(objpfx)md5c-test: $(libdepend)
|
|
|
|
.PHONY: libmd5crypt
|
|
libmd5crypt: $(foreach o,$(object-suffixes), \
|
|
$(addprefix $(objpfx),$(patsubst %,$(libtype$o),md5crypt)))
|
|
ifeq ($(build-shared),yes)
|
|
libmd5crypt: $(objpfx)libmd5crypt.so
|
|
# Use the same soname as the real libcrypt, so that it can be used as a
|
|
# drop in replacement.
|
|
LDFLAGS-md5crypt.so = -Wl,-soname=lib$(libprefix)crypt.so$(libcrypt.so-version)
|
|
# We also use the same version script.
|
|
libmd5crypt-map := $(common-objpfx)libcrypt.map
|
|
endif
|
|
|
|
define o-iterator-doit
|
|
$(objpfx)$(patsubst %,$(libtype$o),md5crypt): \
|
|
$(onlymd5-routines:%=$(objpfx)%$o); $$(build-extra-lib)
|
|
endef
|
|
object-suffixes-left = $(object-suffixes)
|
|
include $(patsubst %,$(..)o-iterator.mk,$(object-suffixes))
|
|
|
|
# Depend on libc.so so a DT_NEEDED is generated in the shared objects.
|
|
# This ensures they will load libc.so for needed symbols if loaded by
|
|
# a statically-linked program that hasn't already loaded it.
|
|
$(objpfx)libcrypt.so: $(common-objpfx)libc.so
|
|
$(objpfx)libmd5crypt.so: $(common-objpfx)libc.so
|