2 # @(#)Makefile 8.1 (Berkeley) 6/2/93
12 #################################################################
16 # A number of Make variables are used to generate the crunchgen config file.
18 # CRUNCH_SRCDIRS: lists directories to search for included programs
19 # CRUNCH_PROGS: lists programs to be included
20 # CRUNCH_LIBS: libraries to statically link with
21 # CRUNCH_SHLIBS: libraries to dynamically link with
22 # CRUNCH_BUILDOPTS: generic build options to be added to every program
23 # CRUNCH_BUILDTOOLS: lists programs that need build tools built in the
26 # Special options can be specified for individual programs
27 # CRUNCH_SRCDIR_$(P): base source directory for program $(P)
28 # CRUNCH_BUILDOPTS_$(P): additional build options for $(P)
29 # CRUNCH_ALIAS_$(P): additional names to be used for $(P)
31 # By default, any name appearing in CRUNCH_PROGS or CRUNCH_ALIAS_${P}
32 # will be used to generate a hard link to the resulting binary.
33 # Specific links can be suppressed by setting
34 # CRUNCH_SUPPRESS_LINK_$(NAME) to 1.
37 # Define Makefile variable RESCUE
38 CRUNCH_BUILDOPTS+= -DRESCUE
40 # Don't do symlinks as part of the install
41 CRUNCH_GENERATE_LINKS= no
43 # Which sources have local-arch build tools?
44 # Define as blank; othrs need to override
47 ###################################################################
48 # Programs from stock /bin
50 # WARNING: Changing this list may require adjusting
51 # /usr/include/paths.h as well! You were warned!
54 # These are required to be shared so login and su can run as
55 # setuid binaries - they use these libraries. PAM needs to be
56 # built dynamically or it tries to build _all_ of the modules
57 # statically - and that ends very badly.
58 CRUNCH_SHLIBS+= -lc -lutil -lcrypt
59 CRUNCH_LIBS+= -lkvm -lmemstat -lnetgraph
60 CRUNCH_LIBS+= -lcrypt -ledit -ll -ltermcap
62 ###################################################################
63 # Programs from standard /sbin
65 # WARNING: Changing this list may require adjusting
66 # /usr/include/paths.h as well! You were warned!
68 # Note that mdmfs have their own private 'pathnames.h'
69 # headers in addition to the standard 'paths.h' header.
73 CRUNCH_LIBS+= -lalias -lcam -lcurses -ldevstat -lipsec
74 # Don't forget this - ifconfig, etc -adrian
78 CRUNCH_LIBS+= -lgeom -lbsdxml -ljail -lkiconv -lmd -lsbuf -lufs
80 ##################################################################
81 # Programs from stock /usr/bin
83 CRUNCH_SRCDIRS+= usr.bin
87 ##################################################################
88 # Programs from stock /usr/sbin
90 CRUNCH_SRCDIRS+= usr.sbin
92 ##################################################################
94 CRUNCH_SRCDIRS+= libexec
98 .include "Makefile.base"
99 .include "Makefile.net"
100 .include "Makefile.hostapd"
101 #.include "Makefile.textproc"
102 .include "Makefile.login"
103 .include "Makefile.kld"
104 # telnet/telnetd are too broken to include as a crunchgen'ed binary,
105 # thanks to some of the horrible layering violations going on.
106 # .include "Makefile.telnetd"
107 .include "Makefile.fs"
109 CRUNCH_LIBS+= -lcrypto -lssl -lz
111 # the crunchgen build environment
112 .include <bsd.crunchgen.mk>
114 # and since it creates a program..
115 .include <bsd.prog.mk>