mk: Add FORCE_CPUTYPE which overrides user's CPUTYPE or forcefully sets CPUTYPE
[dragonfly.git] / lib / Makefile
CommitLineData
984263bc
MD
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 $
0010e23a 3# $DragonFly: src/lib/Makefile,v 1.35 2008/09/30 12:20:29 hasso Exp $
984263bc
MD
4
5# To satisfy shared library or ELF linkage when only the libraries being
6# built are visible:
7#
8396b091
PA
8# ${_libc_r} must be built before libpthread.
9# libcom_err must be built before libpam.
10# libcrypt must be built before libpam.
50ef37d2 11# libmd must be built before libarchive, libatm, libopie, libradius, and libtacplus.
8396b091 12# libncurses must be built before libdialog and libedit.
984263bc 13# libradius must be built before libpam.
984263bc 14# libsbuf must be built before libcam.
8396b091 15# libtacplus must be built before libpam.
26c2c67b 16# libthread_xu must be built before libpthread.
8396b091 17# libutil must be built before libpam.
9f95f3e0 18# libpthread must be built before libprop.
984263bc
MD
19#
20# Otherwise, the SUBDIR list should be in alphabetical order.
21
8396b091
PA
22SUBDIR_ORDERED= ${_libc_r} \
23 libcom_err \
24 libcrypt \
25 libmd \
26 libncurses \
27 libradius \
28 libsbuf \
29 libtacplus \
30 libthread_xu \
31 libutil \
32 libpthread
33SUBDIR= ${SUBDIR_ORDERED} \
34 csu \
35 i18n_module \
36 libalias \
37 libarchive \
38 libatm \
39 libbluetooth \
40 libbz2 \
41 libc \
42 libc_rtld \
43 libcalendar \
44 libcam \
45 libcompat \
46 libdevattr \
47 libdevinfo \
48 libdevstat \
49 libedit \
50 libevtr \
51 libexpat \
52 libfetch \
53 libfsid \
54 libftpio \
55 libipsec \
56 libipx \
57 libkcore \
58 libkiconv \
59 libkinfo \
60 libkvm \
61 libldns \
10cbe914 62 liblzma \
8396b091
PA
63 libm \
64 libmagic \
65 ${_libmilter} \
66 libncp \
67 libnetgraph \
68 libopie \
69 libpam \
70 libpcap \
71 libposix1e \
72 libprop \
73 librpcsvc \
74 librt \
75 libsctp \
76 libsdp \
77 ${_libsm} \
78 libsmb \
79 ${_libsmdb} \
80 ${_libsmutil} \
81 libstand \
82 libtelnet \
83 libusbhid \
84 libvgl \
85 libwrap \
86 libxpg4 \
87 liby \
88 libypclnt \
89 libz \
90 pam_module
984263bc 91
d63c503b
MD
92.if exists(${.CURDIR}/compat/${MACHINE_ARCH}/Makefile)
93SUBDIR+= compat/${MACHINE_ARCH}
94.endif
95
cecff5c1 96.if !defined(NO_LIBC_R)
984263bc
MD
97_libc_r= libc_r
98.endif
99
984263bc
MD
100.if !defined(NO_SENDMAIL)
101_libmilter= libmilter
102_libsm= libsm
103_libsmdb= libsmdb
104_libsmutil= libsmutil
105.endif
106
984263bc 107.include <bsd.subdir.mk>