]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - tools/bsdbox/Makefile
zfs: merge openzfs/zfs@e13538856
[FreeBSD/FreeBSD.git] / tools / bsdbox / Makefile
1 #       @(#)Makefile    8.1 (Berkeley) 6/2/93
2
3 MAN=
4
5 .include <bsd.own.mk>
6 MK_SSP= no
7
8 PROG=   bsdbox
9 BINDIR?=/sbin
10
11 #################################################################
12 #
13 # General notes:
14 #
15 # A number of Make variables are used to generate the crunchgen config file.
16 #
17 #  CRUNCH_SRCDIRS: lists directories to search for included programs
18 #  CRUNCH_PROGS:  lists programs to be included
19 #  CRUNCH_LIBS:  libraries to statically link with
20 #  CRUNCH_SHLIBS:  libraries to dynamically link with
21 #  CRUNCH_BUILDOPTS: generic build options to be added to every program
22 #  CRUNCH_BUILDTOOLS: lists programs that need build tools built in the
23 #       local architecture.
24 #
25 # Special options can be specified for individual programs
26 #  CRUNCH_SRCDIR_$(P): base source directory for program $(P)
27 #  CRUNCH_BUILDOPTS_$(P): additional build options for $(P)
28 #  CRUNCH_ALIAS_$(P): additional names to be used for $(P)
29 #
30 # By default, any name appearing in CRUNCH_PROGS or CRUNCH_ALIAS_${P}
31 # will be used to generate a hard link to the resulting binary.
32 # Specific links can be suppressed by setting
33 # CRUNCH_SUPPRESS_LINK_$(NAME) to 1.
34 #
35
36 # Define Makefile variable RESCUE
37 CRUNCH_BUILDOPTS+= -DRESCUE
38
39 # Don't do symlinks as part of the install
40 CRUNCH_GENERATE_LINKS= no
41
42 # Which sources have local-arch build tools?
43 # Define as blank; othrs need to override
44 CRUNCH_BUILDTOOLS=
45
46 ###################################################################
47 # Programs from stock /bin
48 #
49 # WARNING: Changing this list may require adjusting
50 # /usr/include/paths.h as well!  You were warned!
51 #
52 CRUNCH_SRCDIRS+= bin
53 # These are required to be shared so login and su can run as
54 # setuid binaries - they use these libraries. PAM needs to be
55 # built dynamically or it tries to build _all_ of the modules
56 # statically - and that ends very badly.
57 CRUNCH_SHLIBS+= -lc -lutil -lcrypt -lxo -lgpio
58 CRUNCH_LIBS+= -lkvm -lmemstat -lnetgraph
59 CRUNCH_LIBS+= -lcrypt -ledit -ltermcapw
60
61 ###################################################################
62 # Programs from standard /sbin
63 #
64 # WARNING: Changing this list may require adjusting
65 # /usr/include/paths.h as well!  You were warned!
66 #
67 # Note that mdmfs have their own private 'pathnames.h'
68 # headers in addition to the standard 'paths.h' header.
69 #
70 CRUNCH_SRCDIRS+= sbin
71
72 CRUNCH_LIBS+= -l80211 -lalias -lcam -lcursesw -ldevstat -lipsec
73 # Don't forget this - ifconfig, etc -adrian
74 CRUNCH_LIBS+= ${LDADD_ifconfig}
75 CRUNCH_LIBS+= -lgeom -lbsdxml -ljail -lkiconv -lmd -lsbuf -lufs
76 CRUNCH_BUILDOPTS+= CRUNCH_CFLAGS+=-I${OBJTOP}/lib/libifconfig
77
78 ##################################################################
79 # Programs from stock /usr/bin
80 #
81 CRUNCH_SRCDIRS+= usr.bin
82 # grep
83 CRUNCH_LIBS+=   -lbz2
84
85 ##################################################################
86 # Programs from stock /usr/sbin
87 #
88 CRUNCH_SRCDIRS+= usr.sbin
89
90 ##################################################################
91
92 CRUNCH_SRCDIRS+= libexec
93
94 CRUNCH_LIBS+= -lm
95
96 .include "Makefile.base"
97 .include "Makefile.net"
98 .include "Makefile.hostapd"
99 #.include "Makefile.textproc"
100 .include "Makefile.login"
101 .include "Makefile.kld"
102 .include "Makefile.fs"
103
104 CRUNCH_LIBS+= -lcrypto -lssl -lz
105
106 # the crunchgen build environment
107 .include <bsd.crunchgen.mk>
108
109 # and since it creates a program..
110 .include <bsd.prog.mk>