10 #################################################################
14 # A number of Make variables are used to generate the crunchgen config file.
16 # CRUNCH_SRCDIRS: lists directories to search for included programs
17 # CRUNCH_PROGS: lists programs to be included
18 # CRUNCH_LIBS: libraries to statically link with
19 # CRUNCH_SHLIBS: libraries to dynamically link with
20 # CRUNCH_BUILDOPTS: generic build options to be added to every program
21 # CRUNCH_BUILDTOOLS: lists programs that need build tools built in the
24 # Special options can be specified for individual programs
25 # CRUNCH_SRCDIR_$(P): base source directory for program $(P)
26 # CRUNCH_BUILDOPTS_$(P): additional build options for $(P)
27 # CRUNCH_ALIAS_$(P): additional names to be used for $(P)
29 # By default, any name appearing in CRUNCH_PROGS or CRUNCH_ALIAS_${P}
30 # will be used to generate a hard link to the resulting binary.
31 # Specific links can be suppressed by setting
32 # CRUNCH_SUPPRESS_LINK_$(NAME) to 1.
35 # Define Makefile variable RESCUE
36 CRUNCH_BUILDOPTS+= -DRESCUE
38 # Don't do symlinks as part of the install
39 CRUNCH_GENERATE_LINKS= no
41 # Which sources have local-arch build tools?
42 # Define as blank; othrs need to override
45 ###################################################################
46 # Programs from stock /bin
48 # WARNING: Changing this list may require adjusting
49 # /usr/include/paths.h as well! You were warned!
52 # These are required to be shared so login and su can run as
53 # setuid binaries - they use these libraries. PAM needs to be
54 # built dynamically or it tries to build _all_ of the modules
55 # statically - and that ends very badly.
56 CRUNCH_SHLIBS+= -lc -lutil -lcrypt -lxo -lgpio
57 CRUNCH_LIBS+= -lkvm -lmemstat -lnetgraph
58 CRUNCH_LIBS+= -lcrypt -ledit -ltermcapw
60 ###################################################################
61 # Programs from standard /sbin
63 # WARNING: Changing this list may require adjusting
64 # /usr/include/paths.h as well! You were warned!
66 # Note that mdmfs have their own private 'pathnames.h'
67 # headers in addition to the standard 'paths.h' header.
71 CRUNCH_LIBS+= -l80211 -lalias -lcam -lcursesw -ldevstat -lipsec
72 # Don't forget this - ifconfig, etc -adrian
73 CRUNCH_LIBS+= ${LDADD_ifconfig}
74 CRUNCH_LIBS+= -lgeom -lbsdxml -ljail -lkiconv -lmd -lsbuf -lufs
75 CRUNCH_BUILDOPTS+= CRUNCH_CFLAGS+=-I${OBJTOP}/lib/libifconfig
77 ##################################################################
78 # Programs from stock /usr/bin
80 CRUNCH_SRCDIRS+= usr.bin
84 ##################################################################
85 # Programs from stock /usr/sbin
87 CRUNCH_SRCDIRS+= usr.sbin
89 ##################################################################
91 CRUNCH_SRCDIRS+= libexec
95 .include "Makefile.base"
96 .include "Makefile.net"
97 .include "Makefile.hostapd"
98 #.include "Makefile.textproc"
99 .include "Makefile.login"
100 .include "Makefile.kld"
101 .include "Makefile.fs"
103 CRUNCH_LIBS+= -lcrypto -lssl -lz
105 # the crunchgen build environment
106 .include <bsd.crunchgen.mk>
108 # and since it creates a program..
109 .include <bsd.prog.mk>