1 # @(#)Makefile 8.1 (Berkeley) 6/2/93
11 #################################################################
15 # A number of Make variables are used to generate the crunchgen config file.
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
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)
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.
36 # Define Makefile variable RESCUE
37 CRUNCH_BUILDOPTS+= -DRESCUE
39 # Don't do symlinks as part of the install
40 CRUNCH_GENERATE_LINKS= no
42 # Which sources have local-arch build tools?
43 # Define as blank; othrs need to override
46 ###################################################################
47 # Programs from stock /bin
49 # WARNING: Changing this list may require adjusting
50 # /usr/include/paths.h as well! You were warned!
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
61 ###################################################################
62 # Programs from standard /sbin
64 # WARNING: Changing this list may require adjusting
65 # /usr/include/paths.h as well! You were warned!
67 # Note that mdmfs have their own private 'pathnames.h'
68 # headers in addition to the standard 'paths.h' header.
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
78 ##################################################################
79 # Programs from stock /usr/bin
81 CRUNCH_SRCDIRS+= usr.bin
85 ##################################################################
86 # Programs from stock /usr/sbin
88 CRUNCH_SRCDIRS+= usr.sbin
90 ##################################################################
92 CRUNCH_SRCDIRS+= libexec
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"
104 CRUNCH_LIBS+= -lcrypto -lssl -lz
106 # the crunchgen build environment
107 .include <bsd.crunchgen.mk>
109 # and since it creates a program..
110 .include <bsd.prog.mk>