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