usb4bsd: Pull up libusb and usbcontrol to FreeBSD current's.
[dragonfly.git] / lib / Makefile
1 #       @(#)Makefile    8.1 (Berkeley) 6/4/93
2 # $FreeBSD: src/lib/Makefile,v 1.107.2.16 2002/10/10 19:24:35 kbyanc Exp $
3
4 # To satisfy shared library or ELF linkage when only the libraries being
5 # built are visible:
6 #
7 # ${_libc_r} must be built before libpthread.
8 # libcom_err must be built before libpam.
9 # libcrypt must be built before libpam.
10 # libmd must be built before libarchive, libatm, libopie, libradius, and libtacplus.
11 # libncurses must be built before libdialog and libedit.
12 # libradius must be built before libpam.
13 # libsbuf must be built before libcam.
14 # libtacplus must be built before libpam.
15 # libthread_xu must be built before libpthread.
16 # libutil must be built before libpam.
17 # libpthread must be built before libprop.
18 #
19 # Otherwise, the SUBDIR list should be in alphabetical order.
20
21 SUBDIR_ORDERED= ${_libc_r} \
22         libcom_err \
23         libcrypt \
24         libmd \
25         libncurses \
26         libradius \
27         libsbuf \
28         libtacplus \
29         libthread_xu \
30         libutil \
31         libpthread
32 SUBDIR= ${SUBDIR_ORDERED} \
33         csu \
34         i18n_module \
35         libalias \
36         libarchive \
37         libatm \
38         libbluetooth \
39         libbz2 \
40         libc \
41         libc_rtld \
42         libcalendar \
43         libcam \
44         libcompat \
45         libdevattr \
46         libdevinfo \
47         libdevstat \
48         libdl \
49         libdm \
50         libedit \
51         libevtr \
52         libexpat \
53         libfetch \
54         libfsid \
55         libftpio \
56         libhammer \
57         libipsec \
58         libipx \
59         libkcore \
60         libkiconv \
61         libkinfo \
62         libkvm \
63         libldns \
64         liblzma \
65         libm \
66         libmagic \
67         ${_libmilter} \
68         libncp \
69         ${_libnetgraph} \
70         libopie \
71         libpam \
72         libpcap \
73         libposix1e \
74         libprop \
75         libpuffs \
76         librefuse \
77         librpcsvc \
78         librt \
79         libsctp \
80         libsdp \
81         ${_libsm} \
82         libsmb \
83         ${_libsmdb} \
84         ${_libsmutil} \
85         libstand \
86         libtcplay \
87         libtelnet \
88         ${_libusb} \
89         ${_libusbhid} \
90         libvgl \
91         libwrap \
92         libxpg4 \
93         liby \
94         libypclnt \
95         libz \
96         pam_module
97
98 .if exists(${.CURDIR}/compat/${MACHINE_ARCH}/Makefile)
99 SUBDIR+= compat/${MACHINE_ARCH}
100 .endif
101
102 .if !defined(NO_LIBC_R)
103 _libc_r=        libc_r
104 .endif
105
106 .if !defined(NO_SENDMAIL)
107 _libmilter=     libmilter
108 _libsm=         libsm
109 _libsmdb=       libsmdb
110 _libsmutil=     libsmutil
111 .endif
112
113 .if defined(WANT_NETGRAPH7) 
114 _libnetgraph=   libnetgraph7
115 .else
116 _libnetgraph=   libnetgraph
117 .endif
118
119 .if defined(WANT_USB4BSD)
120 _libusb=        libusb
121 _libusbhid=     libu4bhid
122 .else
123 _libusbhid=     libusbhid
124 .endif
125
126 .include <bsd.subdir.mk>