initrd: Detach from the world and build on the fly
[dragonfly.git] / initrd / bin / Makefile
1 #$FreeBSD: head/rescue/rescue/Makefile 252356 2013-06-28 21:00:08Z davide $
2 #       @(#)Makefile    8.1 (Berkeley) 6/2/93
3
4 PROG=   rescue
5 SCRIPTS=dowpa
6
7 ###################################################################
8 # Programs from stock /bin
9 #
10 # WARNING: Changing this list may require adjusting
11 # /usr/include/paths.h as well!  You were warned!
12 #
13 CRUNCH_SRCDIRS+= bin
14 CRUNCH_PROGS_bin=       \
15         cat             \
16         chmod           \
17         cp              \
18         cpdup           \
19         dd              \
20         df              \
21         echo            \
22         kill            \
23         ln              \
24         ls              \
25         mined           \
26         mkdir           \
27         mv              \
28         ps              \
29         pwd             \
30         rm              \
31         rmdir           \
32         sh              \
33         sleep           \
34         sync            \
35         test
36
37 CRUNCH_LIBS+= -lcrypt -lprivate_edit -lkvm -ll -lmd -lprivate_ncurses -lutil
38 # No longer needed if bin/sh uses pregenerated/ headers.
39 #CRUNCH_BUILDTOOLS+= bin/sh bin/sh/mknodes bin/sh/mksyntax
40
41 # Additional options for specific programs
42 CRUNCH_ALIAS_test= [
43
44 CRUNCH_ALIAS_sh= -sh
45 # The -sh alias shouldn't appear in /rescue as a hard link
46 CRUNCH_SUPPRESS_LINK_-sh= 1
47
48 CRUNCH_ALIAS_ln= link
49 CRUNCH_ALIAS_rm= unlink
50
51
52 CRUNCH_SRCDIRS+= usr.bin
53 CRUNCH_PROGS_usr.bin= du less undo ssh fetch
54 CRUNCH_ALIAS_less= more
55 CRUNCH_ALIAS_ssh= scp
56
57 CRUNCH_KEEP_ssh= roaming_write roaming_read add_recv_bytes
58
59 CRUNCH_LIBS+=   ${PRIVATELIB_LDFLAGS}
60 CRUNCH_LIBS+=   -lfetch -lprivate_ssh -lprivate_ssl -lprivate_crypto -lz -lpthread
61
62 .include <bsd.crunchgen.mk>
63 .include <bsd.prog.mk>