xref: /freebsd/share/mk/bsd.libnames.mk (revision dec0135828ad7601210681a494fcc363c958d2d4)
1# $FreeBSD$
2
3# The include file <bsd.libnames.mk> define library names.
4# Other include files (e.g. bsd.prog.mk, bsd.lib.mk) include this
5# file where necessary.
6
7.if !target(__<bsd.init.mk>__)
8.error bsd.libnames.mk cannot be included directly.
9.endif
10
11.sinclude <src.libnames.mk>
12
13LIBCRT0?=	${DESTDIR}${LIBDIR}/crt0.o
14
15LIBALIAS?=	${DESTDIR}${LIBDIR}/libalias.a
16LIBARCHIVE?=	${DESTDIR}${LIBDIR}/libarchive.a
17LIBASN1?=	${DESTDIR}${LIBDIR}/libasn1.a
18LIBATM?=	${DESTDIR}${LIBDIR}/libatm.a
19LIBAUDITD?=	${DESTDIR}${LIBDIR}/libauditd.a
20LIBAVL?=	${DESTDIR}${LIBDIR}/libavl.a
21LIBBEGEMOT?=	${DESTDIR}${LIBDIR}/libbegemot.a
22LIBBLUETOOTH?=	${DESTDIR}${LIBDIR}/libbluetooth.a
23LIBBSDXML?=	${DESTDIR}${LIBDIR}/libbsdxml.a
24LIBBSM?=	${DESTDIR}${LIBDIR}/libbsm.a
25LIBBSNMP?=	${DESTDIR}${LIBDIR}/libbsnmp.a
26LIBBZ2?=	${DESTDIR}${LIBDIR}/libbz2.a
27LIBCXXRT?=	${DESTDIR}${LIBDIR}/libcxxrt.a
28LIBCPLUSPLUS?=	${DESTDIR}${LIBDIR}/libc++.a
29LIBC?=		${DESTDIR}${LIBDIR}/libc.a
30LIBC_PIC?=	${DESTDIR}${LIBDIR}/libc_pic.a
31LIBCALENDAR?=	${DESTDIR}${LIBDIR}/libcalendar.a
32LIBCAM?=	${DESTDIR}${LIBDIR}/libcam.a
33LIBCAPSICUM?=	${DESTDIR}${LIBDIR}/libcapsicum.a
34LIBCASPER?=	${DESTDIR}${LIBDIR}/libcasper.a
35LIBCOM_ERR?=	${DESTDIR}${LIBDIR}/libcom_err.a
36LIBCOMPAT?=	${DESTDIR}${LIBDIR}/libcompat.a
37LIBCOMPILER_RT?=${DESTDIR}${LIBDIR}/libcompiler_rt.a
38LIBCRYPT?=	${DESTDIR}${LIBDIR}/libcrypt.a
39LIBCRYPTO?=	${DESTDIR}${LIBDIR}/libcrypto.a
40LIBCTF?=	${DESTDIR}${LIBDIR}/libctf.a
41LIBCURSES?=	${DESTDIR}${LIBDIR}/libcurses.a
42LIBDEVINFO?=	${DESTDIR}${LIBDIR}/libdevinfo.a
43LIBDEVSTAT?=	${DESTDIR}${LIBDIR}/libdevstat.a
44LIBDIALOG?=	${DESTDIR}${LIBDIR}/libdialog.a
45LIBDNS?=	${DESTDIR}${LIBDIR}/libdns.a
46LIBDPV?=	${DESTDIR}${LIBDIR}/libdpv.a
47LIBDTRACE?=	${DESTDIR}${LIBDIR}/libdtrace.a
48LIBDWARF?=	${DESTDIR}${LIBDIR}/libdwarf.a
49LIBEDIT?=	${DESTDIR}${LIBDIR}/libedit.a
50LIBELF?=	${DESTDIR}${LIBDIR}/libelf.a
51LIBEXECINFO?=	${DESTDIR}${LIBDIR}/libexecinfo.a
52LIBFETCH?=	${DESTDIR}${LIBDIR}/libfetch.a
53LIBFIGPAR?=	${DESTDIR}${LIBDIR}/libfigpar.a
54LIBFL?=		"don't use LIBFL, use LIBL"
55LIBFORM?=	${DESTDIR}${LIBDIR}/libform.a
56LIBG2C?=	${DESTDIR}${LIBDIR}/libg2c.a
57LIBGEOM?=	${DESTDIR}${LIBDIR}/libgeom.a
58LIBGNUREGEX?=	${DESTDIR}${LIBDIR}/libgnuregex.a
59LIBGSSAPI?=	${DESTDIR}${LIBDIR}/libgssapi.a
60LIBGSSAPI_KRB5?= ${DESTDIR}${LIBDIR}/libgssapi_krb5.a
61LIBHDB?=	${DESTDIR}${LIBDIR}/libhdb.a
62LIBHEIMBASE?=	${DESTDIR}${LIBDIR}/libheimbase.a
63LIBHEIMNTLM?=	${DESTDIR}${LIBDIR}/libheimntlm.a
64LIBHEIMSQLITE?=	${DESTDIR}${LIBDIR}/libheimsqlite.a
65LIBHX509?=	${DESTDIR}${LIBDIR}/libhx509.a
66LIBIPSEC?=	${DESTDIR}${LIBDIR}/libipsec.a
67LIBJAIL?=	${DESTDIR}${LIBDIR}/libjail.a
68LIBKADM5CLNT?=	${DESTDIR}${LIBDIR}/libkadm5clnt.a
69LIBKADM5SRV?=	${DESTDIR}${LIBDIR}/libkadm5srv.a
70LIBKAFS5?=	${DESTDIR}${LIBDIR}/libkafs5.a
71LIBKDC?=	${DESTDIR}${LIBDIR}/libkdc.a
72LIBKEYCAP?=	${DESTDIR}${LIBDIR}/libkeycap.a
73LIBKICONV?=	${DESTDIR}${LIBDIR}/libkiconv.a
74LIBKRB5?=	${DESTDIR}${LIBDIR}/libkrb5.a
75LIBKVM?=	${DESTDIR}${LIBDIR}/libkvm.a
76LIBL?=		${DESTDIR}${LIBDIR}/libl.a
77LIBLN?=		"don't use LIBLN, use LIBL"
78LIBLZMA?=	${DESTDIR}${LIBDIR}/liblzma.a
79LIBM?=		${DESTDIR}${LIBDIR}/libm.a
80LIBMAGIC?=	${DESTDIR}${LIBDIR}/libmagic.a
81LIBMD?=		${DESTDIR}${LIBDIR}/libmd.a
82LIBMEMSTAT?=	${DESTDIR}${LIBDIR}/libmemstat.a
83LIBMENU?=	${DESTDIR}${LIBDIR}/libmenu.a
84LIBMILTER?=	${DESTDIR}${LIBDIR}/libmilter.a
85LIBMP?=		${DESTDIR}${LIBDIR}/libmp.a
86LIBNCURSES?=	${DESTDIR}${LIBDIR}/libncurses.a
87LIBNCURSESW?=	${DESTDIR}${LIBDIR}/libncursesw.a
88LIBNETGRAPH?=	${DESTDIR}${LIBDIR}/libnetgraph.a
89LIBNGATM?=	${DESTDIR}${LIBDIR}/libngatm.a
90LIBNV?=		${DESTDIR}${LIBDIR}/libnv.a
91LIBNVPAIR?=	${DESTDIR}${LIBDIR}/libnvpair.a
92LIBOPIE?=	${DESTDIR}${LIBDIR}/libopie.a
93
94# The static PAM library doesn't know its secondary dependencies,
95# so we have to specify them explicitly. Ths is an unfortunate,
96# but necessary departure from testing MK_ flags to define
97# values here.
98LIBPAM?=	${DESTDIR}${LIBDIR}/libpam.a
99MINUSLPAM=	-lpam
100.if defined(LDFLAGS) && !empty(LDFLAGS:M-static)
101.if ${MK_KERBEROS} != "no"
102LIBPAM+=	${LIBKRB5} ${LIBHX509} ${LIBASN1} ${LIBCRYPTO} ${LIBCRYPT} \
103		${LIBROKEN} ${LIBCOM_ERR}
104MINUSLPAM+=	-lkrb5 -lhx509 -lasn1 -lcrypto -lcrypt -lroken -lcom_err
105.endif
106LIBPAM+=	${LIBRADIUS} ${LIBTACPLUS} ${LIBCRYPT} \
107		${LIBUTIL} ${LIBOPIE} ${LIBMD}
108MINUSLPAM+=	-lradius -ltacplus -lcrypt \
109		-lutil -lopie -lmd
110.if ${MK_OPENSSH} != "no"
111LIBPAM+=	${LIBSSH} ${LIBCRYPTO} ${LIBCRYPT}
112MINUSLPAM+=	-lssh -lcrypto -lcrypt
113.endif
114.if ${MK_NIS} != "no"
115LIBPAM+=	${LIBYPCLNT}
116MINUSLPAM+=	-lypclnt
117.endif
118.endif
119
120LIBPANEL?=	${DESTDIR}${LIBDIR}/libpanel.a
121LIBPCAP?=	${DESTDIR}${LIBDIR}/libpcap.a
122LIBPJDLOG?=	${DESTDIR}${LIBDIR}/libpjdlog.a
123LIBPMC?=	${DESTDIR}${LIBDIR}/libpmc.a
124LIBPROC?=	${DESTDIR}${LIBDIR}/libproc.a
125LIBPROCSTAT?=	${DESTDIR}${LIBDIR}/libprocstat.a
126LIBPTHREAD?=	${DESTDIR}${LIBDIR}/libpthread.a
127LIBRADIUS?=	${DESTDIR}${LIBDIR}/libradius.a
128LIBROKEN?=	${DESTDIR}${LIBDIR}/libroken.a
129LIBRPCSVC?=	${DESTDIR}${LIBDIR}/librpcsvc.a
130LIBRPCSEC_GSS?=	${DESTDIR}${LIBDIR}/librpcsec_gss.a
131LIBRT?=		${DESTDIR}${LIBDIR}/librt.a
132LIBRTLD_DB?=	${DESTDIR}${LIBDIR}/librtld_db.a
133LIBSBUF?=	${DESTDIR}${LIBDIR}/libsbuf.a
134LIBSDP?=	${DESTDIR}${LIBDIR}/libsdp.a
135LIBSMB?=	${DESTDIR}${LIBDIR}/libsmb.a
136LIBSSL?=	${DESTDIR}${LIBDIR}/libssl.a
137LIBSSP_NONSHARED?=	${DESTDIR}${LIBDIR}/libssp_nonshared.a
138LIBSTAND?=	${DESTDIR}${LIBDIR}/libstand.a
139LIBSTDCPLUSPLUS?= ${DESTDIR}${LIBDIR}/libstdc++.a
140LIBTACPLUS?=	${DESTDIR}${LIBDIR}/libtacplus.a
141LIBTERMCAP?=	${DESTDIR}${LIBDIR}/libtermcap.a
142LIBTERMCAPW?=	${DESTDIR}${LIBDIR}/libtermcapw.a
143LIBTERMLIB?=	"don't use LIBTERMLIB, use LIBTERMCAP"
144LIBTINFO?=	"don't use LIBTINFO, use LIBNCURSES"
145LIBUFS?=	${DESTDIR}${LIBDIR}/libufs.a
146LIBUGIDFW?=	${DESTDIR}${LIBDIR}/libugidfw.a
147LIBUMEM?=	${DESTDIR}${LIBDIR}/libumem.a
148LIBUSBHID?=	${DESTDIR}${LIBDIR}/libusbhid.a
149LIBUSB?=	${DESTDIR}${LIBDIR}/libusb.a
150LIBULOG?=	${DESTDIR}${LIBDIR}/libulog.a
151LIBUTIL?=	${DESTDIR}${LIBDIR}/libutil.a
152LIBUUTIL?=	${DESTDIR}${LIBDIR}/libuutil.a
153LIBVGL?=	${DESTDIR}${LIBDIR}/libvgl.a
154LIBVMMAPI?=	${DESTDIR}${LIBDIR}/libvmmapi.a
155LIBWIND?=	${DESTDIR}${LIBDIR}/libwind.a
156LIBWRAP?=	${DESTDIR}${LIBDIR}/libwrap.a
157LIBXPG4?=	${DESTDIR}${LIBDIR}/libxpg4.a
158LIBY?=		${DESTDIR}${LIBDIR}/liby.a
159LIBYPCLNT?=	${DESTDIR}${LIBDIR}/libypclnt.a
160LIBZ?=		${DESTDIR}${LIBDIR}/libz.a
161LIBZFS?=	${DESTDIR}${LIBDIR}/libzfs.a
162LIBZFS_CORE?=	${DESTDIR}${LIBDIR}/libzfs_core.a
163LIBZPOOL?=	${DESTDIR}${LIBDIR}/libzpool.a
164
165# enforce the 2 -lpthread and -lc to always be the last in that exact order
166.if defined(LDADD)
167.if ${LDADD:M-lpthread}
168LDADD:=	${LDADD:N-lpthread} -lpthread
169.endif
170.if ${LDADD:M-lc}
171LDADD:=	${LDADD:N-lc} -lc
172.endif
173.endif
174