freebsd-skq/share/mk/bsd.libnames.mk

126 lines
4.6 KiB
Makefile
Raw Normal View History

1999-08-28 00:22:10 +00:00
# $FreeBSD$
# The include file <bsd.libnames.mk> define library names.
# Other include files (e.g. bsd.prog.mk, bsd.lib.mk) include this
# file where necessary.
.if !target(__<bsd.init.mk>__)
.error bsd.libnames.mk cannot be included directly.
.endif
1998-05-31 11:32:38 +00:00
LIBCRT0?= ${DESTDIR}${LIBDIR}/crt0.o
1998-05-31 11:32:38 +00:00
LIBALIAS?= ${DESTDIR}${LIBDIR}/libalias.a
LIBASN1?= ${DESTDIR}${LIBDIR}/libasn1.a
LIBATM?= ${DESTDIR}${LIBDIR}/libatm.a
2003-07-02 23:54:37 +00:00
LIBBSDXML?= ${DESTDIR}${LIBDIR}/libbsdxml.a
2003-11-10 09:07:30 +00:00
LIBBSNMP?= ${DESTDIR}${LIBDIR}/libbsnmp.a
LIBBLUETOOTH?= ${DESTDIR}${LIBDIR}/libbluetooth.a
2001-07-09 22:00:32 +00:00
LIBBZ2?= ${DESTDIR}${LIBDIR}/libbz2.a
1998-05-31 11:32:38 +00:00
LIBC?= ${DESTDIR}${LIBDIR}/libc.a
LIBC_PIC?= ${DESTDIR}${LIBDIR}/libc_pic.a
2000-11-26 22:19:52 +00:00
LIBC_R?= ${DESTDIR}${LIBDIR}/libc_r.a
1998-05-31 11:32:38 +00:00
LIBCALENDAR?= ${DESTDIR}${LIBDIR}/libcalendar.a
1998-09-15 10:27:20 +00:00
LIBCAM?= ${DESTDIR}${LIBDIR}/libcam.a
LIBCOM_ERR?= ${DESTDIR}${LIBDIR}/libcom_err.a
1998-05-31 11:32:38 +00:00
LIBCOMPAT?= ${DESTDIR}${LIBDIR}/libcompat.a
LIBCRYPT?= ${DESTDIR}${LIBDIR}/libcrypt.a
LIBCRYPTO?= ${DESTDIR}${LIBDIR}/libcrypto.a
1998-05-31 11:32:38 +00:00
LIBCURSES?= ${DESTDIR}${LIBDIR}/libcurses.a
LIBDES?= ${DESTDIR}${LIBDIR}/libdes.a
LIBDEVINFO?= ${DESTDIR}${LIBDIR}/libdevinfo.a
1998-09-15 10:27:20 +00:00
LIBDEVSTAT?= ${DESTDIR}${LIBDIR}/libdevstat.a
1998-05-31 11:32:38 +00:00
LIBDIALOG?= ${DESTDIR}${LIBDIR}/libdialog.a
LIBDISK?= ${DESTDIR}${LIBDIR}/libdisk.a
LIBEDIT?= ${DESTDIR}${LIBDIR}/libedit.a
2001-03-20 20:21:08 +00:00
LIBFETCH?= ${DESTDIR}${LIBDIR}/libfetch.a
LIBFL?= "don't use LIBFL, use LIBL"
LIBFORM?= ${DESTDIR}${LIBDIR}/libform.a
1998-05-31 11:32:38 +00:00
LIBFTPIO?= ${DESTDIR}${LIBDIR}/libftpio.a
LIBG2C?= ${DESTDIR}${LIBDIR}/libg2c.a
1998-05-31 11:32:38 +00:00
LIBGCC?= ${DESTDIR}${LIBDIR}/libgcc.a
LIBGCC_PIC?= ${DESTDIR}${LIBDIR}/libgcc_pic.a
LIBGEOM?= ${DESTDIR}${LIBDIR}/libgeom.a
1998-05-31 11:32:38 +00:00
LIBGNUREGEX?= ${DESTDIR}${LIBDIR}/libgnuregex.a
LIBGSSAPI?= ${DESTDIR}${LIBDIR}/libgssapi.a
LIBHDB?= ${DESTDIR}${LIBDIR}/libhdb.a
1999-05-28 04:30:05 +00:00
LIBHISTORY?= ${DESTDIR}${LIBDIR}/libhistory.a
2000-02-27 18:41:27 +00:00
LIBIPSEC?= ${DESTDIR}${LIBDIR}/libipsec.a
1998-05-31 11:32:38 +00:00
LIBIPX?= ${DESTDIR}${LIBDIR}/libipx.a
LIBISC?= ${DESTDIR}${LIBDIR}/libisc.a
LIBKADM5CLNT?= ${DESTDIR}${LIBDIR}/libkadm5clnt.a
LIBKADM5SRV?= ${DESTDIR}${LIBDIR}/libkadm5srv.a
LIBKAFS5?= ${DESTDIR}${LIBDIR}/libkafs5.a
LIBKEYCAP?= ${DESTDIR}${LIBDIR}/libkeycap.a
LIBKICONV?= ${DESTDIR}${LIBDIR}/libkiconv.a
LIBKRB5?= ${DESTDIR}${LIBDIR}/libkrb5.a
1998-05-31 11:32:38 +00:00
LIBKVM?= ${DESTDIR}${LIBDIR}/libkvm.a
LIBL?= ${DESTDIR}${LIBDIR}/libl.a
2000-09-16 04:35:51 +00:00
LIBLN?= "don't use LIBLN, use LIBL"
1998-05-31 11:32:38 +00:00
LIBM?= ${DESTDIR}${LIBDIR}/libm.a
LIBMD?= ${DESTDIR}${LIBDIR}/libmd.a
LIBMENU?= ${DESTDIR}${LIBDIR}/libmenu.a
.if !defined(NO_SENDMAIL)
LIBMILTER?= ${DESTDIR}${LIBDIR}/libmilter.a
.endif
1998-05-31 11:32:38 +00:00
LIBMP?= ${DESTDIR}${LIBDIR}/libmp.a
2000-09-16 04:35:51 +00:00
LIBMYTINFO?= "don't use LIBMYTINFO, use LIBNCURSES"
LIBNCP?= ${DESTDIR}${LIBDIR}/libncp.a
1998-05-31 11:32:38 +00:00
LIBNCURSES?= ${DESTDIR}${LIBDIR}/libncurses.a
LIBNETGRAPH?= ${DESTDIR}${LIBDIR}/libnetgraph.a
LIBNGATM?= ${DESTDIR}${LIBDIR}/libngatm.a
1998-05-31 11:32:38 +00:00
LIBOBJC?= ${DESTDIR}${LIBDIR}/libobjc.a
LIBOPIE?= ${DESTDIR}${LIBDIR}/libopie.a
# The static PAM library doesn't know its secondary dependencies,
# so we have to specify them explicitly.
LIBPAM?= ${DESTDIR}${LIBDIR}/libpam.a
MINUSLPAM?= -lpam
.if defined(LDFLAGS) && !empty(LDFLAGS:M-static)
.if !defined(NO_KERBEROS)
LIBPAM+= ${LIBKRB5} ${LIBASN1} ${LIBROKEN}
MINUSLPAM+= -lkrb5 -lasn1 -lroken
LIBPAM+= ${LIBCOM_ERR}
2001-05-14 11:45:16 +00:00
MINUSLPAM+= -lcom_err
.endif
LIBPAM+= ${LIBRADIUS} ${LIBRPCSVC} ${LIBTACPLUS} ${LIBCRYPT} \
${LIBUTIL} ${LIBOPIE} ${LIBMD} ${LIBYPCLNT}
MINUSLPAM+= -lradius -lrpcsvc -ltacplus -lcrypt \
-lutil -lopie -lmd -lypclnt
.if !defined(NOCRYPT) && !defined(NO_OPENSSL) && !defined(NO_OPENSSH)
LIBPAM+= ${LIBSSH} ${LIBCRYPTO}
MINUSLPAM+= -lssh -lcrypto
.endif
.endif
LIBPANEL?= ${DESTDIR}${LIBDIR}/libpanel.a
LIBPC?= ${DESTDIR}${LIBDIR}/libpc.a
1998-05-31 11:32:38 +00:00
LIBPCAP?= ${DESTDIR}${LIBDIR}/libpcap.a
1998-09-09 17:51:15 +00:00
LIBPERL?= ${DESTDIR}${LIBDIR}/libperl.a
LIBPLOT?= ${DESTDIR}${LIBDIR}/libplot.a
1998-11-18 01:53:56 +00:00
LIBRADIUS?= ${DESTDIR}${LIBDIR}/libradius.a
1998-05-31 11:32:38 +00:00
LIBREADLINE?= ${DESTDIR}${LIBDIR}/libreadline.a
LIBRESOLV?= ${DESTDIR}${LIBDIR}/libresolv.a
LIBROKEN?= ${DESTDIR}${LIBDIR}/libroken.a
1998-05-31 11:32:38 +00:00
LIBRPCSVC?= ${DESTDIR}${LIBDIR}/librpcsvc.a
LIBSDP?= ${DESTDIR}${LIBDIR}/libsdp.a
Rewrite of the CAM error recovery code. Some of the major changes include: - The SCSI error handling portion of cam_periph_error() has been broken out into a number of subfunctions to better modularize the code that handles the hierarchy of SCSI errors. As a result, the code is now much easier to read. - String handling and error printing has been significantly revamped. We now use sbufs to do string formatting instead of using printfs (for the kernel) and snprintf/strncat (for userland) as before. There is a new catchall error printing routine, cam_error_print() and its string-based counterpart, cam_error_string() that allow the kernel and userland applications to pass in a CCB and have errors printed out properly, whether or not they're SCSI errors. Among other things, this helped eliminate a fair amount of duplicate code in camcontrol. We now print out more information than before, including the CAM status and SCSI status and the error recovery action taken to remedy the problem. - sbufs are now available in userland, via libsbuf. This change was necessary since most of the error printing code is shared between libcam and the kernel. - A new transfer settings interface is included in this checkin. This code is #ifdef'ed out, and is primarily intended to aid discussion with HBA driver authors on the final form the interface should take. There is example code in the ahc(4) driver that implements the HBA driver side of the new interface. The new transfer settings code won't be enabled until we're ready to switch all HBA drivers over to the new interface. src/Makefile.inc1, lib/Makefile: Add libsbuf. It must be built before libcam, since libcam uses sbuf routines. libcam/Makefile: libcam now depends on libsbuf. libsbuf/Makefile: Add a makefile for libsbuf. This pulls in the sbuf sources from sys/kern. bsd.libnames.mk: Add LIBSBUF. camcontrol/Makefile: Add -lsbuf. Since camcontrol is statically linked, we can't depend on the dynamic linker to pull in libsbuf. camcontrol.c: Use cam_error_print() instead of checking for CAM_SCSI_STATUS_ERROR on every failed CCB. sbuf.9: Change the prototypes for sbuf_cat() and sbuf_cpy() so that the source string is now a const char *. This is more in line wth the standard system string functions, and helps eliminate warnings when dealing with a const source buffer. Fix a typo. cam.c: Add description strings for the various CAM error status values, as well as routines to look up those strings. Add new cam_error_string() and cam_error_print() routines for userland and the kernel. cam.h: Add a new CAM flag, CAM_RETRY_SELTO. Add enumerated types for the various options available with cam_error_print() and cam_error_string(). cam_ccb.h: Add new transfer negotiation structures/types. Change inq_len in the ccb_getdev structure to be "reserved". This field has never been filled in, and will be removed when we next bump the CAM version. cam_debug.h: Fix typo. cam_periph.c: Modularize cam_periph_error(). The SCSI error handling part of cam_periph_error() is now in camperiphscsistatuserror() and camperiphscsisenseerror(). In cam_periph_lock(), increase the reference count on the periph while we wait for our lock attempt to succeed so that the periph won't go away while we're sleeping. cam_xpt.c: Add new transfer negotiation code. (ifdefed out) Add a new function, xpt_path_string(). This is a string/sbuf analog to xpt_print_path(). scsi_all.c: Revamp string handing and error printing code. We now use sbufs for much of the string formatting code. More of that code is shared between userland the kernel. scsi_all.h: Get rid of SS_TURSTART, it wasn't terribly useful in the first place. Add a new error action, SS_REQSENSE. (Send a request sense and then retry the command.) This is useful when the controller hasn't performed autosense for some reason. Change the default actions around a bit. scsi_cd.c, scsi_da.c, scsi_pt.c, scsi_ses.c: SF_RETRY_SELTO -> CAM_RETRY_SELTO. Selection timeouts shouldn't be covered by a sense flag. scsi_pass.[ch]: SF_RETRY_SELTO -> CAM_RETRY_SELTO. Get rid of the last vestiges of a read/write interface. libkern/bsearch.c, sys/libkern.h, conf/files: Add bsearch.c, which is needed for some of the new table lookup routines. aic7xxx_freebsd.c: Define AHC_NEW_TRAN_SETTINGS if CAM_NEW_TRAN_CODE is defined. sbuf.h, subr_sbuf.c: Add the appropriate #ifdefs so sbufs can compile and run in userland. Change sbuf_printf() to use vsnprintf() instead of kvprintf(), which is only available in the kernel. Change the source string for sbuf_cpy() and sbuf_cat() to be a const char *. Add __BEGIN_DECLS and __END_DECLS around function prototypes since they're now exported to userland. kdump/mkioctls: Include stdio.h before cam.h since cam.h now includes a function with a FILE * argument. Submitted by: gibbs (mostly) Reviewed by: jdp, marcel (libsbuf makefile changes) Reviewed by: des (sbuf changes) Reviewed by: ken
2001-03-27 05:45:52 +00:00
LIBSBUF?= ${DESTDIR}${LIBDIR}/libsbuf.a
2001-12-18 18:27:27 +00:00
LIBSMB?= ${DESTDIR}${LIBDIR}/libsmb.a
LIBSSH?= ${DESTDIR}${LIBDIR}/libssh.a
LIBSSL?= ${DESTDIR}${LIBDIR}/libssl.a
1998-05-31 11:32:38 +00:00
LIBSTDCPLUSPLUS?= ${DESTDIR}${LIBDIR}/libstdc++.a
1998-11-18 01:53:56 +00:00
LIBTACPLUS?= ${DESTDIR}${LIBDIR}/libtacplus.a
1998-05-31 11:32:38 +00:00
LIBTERMCAP?= ${DESTDIR}${LIBDIR}/libtermcap.a
LIBTERMLIB?= "don't use LIBTERMLIB, use LIBTERMCAP"
LIBTINFO?= "don't use LIBTINFO, use LIBNCURSES"
LIBUFS?= ${DESTDIR}${LIBDIR}/libufs.a
LIBUGIDFW?= ${DESTDIR}${LIBDIR}/libugidfw.a
LIBUSBHID?= ${DESTDIR}${LIBDIR}/libusbhid.a
LIBUTIL?= ${DESTDIR}${LIBDIR}/libutil.a
LIBVGL?= ${DESTDIR}${LIBDIR}/libvgl.a
LIBWRAP?= ${DESTDIR}${LIBDIR}/libwrap.a
1998-05-31 11:32:38 +00:00
LIBXPG4?= ${DESTDIR}${LIBDIR}/libxpg4.a
LIBY?= ${DESTDIR}${LIBDIR}/liby.a
2002-04-13 07:23:25 +00:00
LIBYPCLNT?= ${DESTDIR}${LIBDIR}/libypclnt.a
1998-05-31 11:32:38 +00:00
LIBZ?= ${DESTDIR}${LIBDIR}/libz.a