mk/crunchgen: Allow to use symlinks for crunched programs
[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 # To include '../Makefine.inc' for use in <bsd.crunchgen.mk>
5 .include <bsd.init.mk>
6
7 PROG=   rescue
8 SCRIPTS=dowpa
9
10 ###################################################################
11 # Programs from stock /bin
12 #
13 # WARNING: Changing this list may require adjusting
14 # /usr/include/paths.h as well!  You were warned!
15 #
16 CRUNCH_SRCDIRS+= bin
17 CRUNCH_PATH_bin= ${.CURDIR}/../..
18 CRUNCH_PROGS_bin=       \
19         cat             \
20         chmod           \
21         cp              \
22         cpdup           \
23         dd              \
24         df              \
25         echo            \
26         kill            \
27         ln              \
28         ls              \
29         mined           \
30         mkdir           \
31         mv              \
32         ps              \
33         pwd             \
34         rm              \
35         rmdir           \
36         sh              \
37         sleep           \
38         sync            \
39         test
40
41 CRUNCH_LIBS+= -lcrypt -lprivate_edit -lkvm -ll -lmd -lprivate_ncurses -lutil
42 # No longer needed if bin/sh uses pregenerated/ headers.
43 #CRUNCH_BUILDTOOLS+= bin/sh bin/sh/mknodes bin/sh/mksyntax
44
45 # Additional options for specific programs
46 CRUNCH_ALIAS_test= [
47
48 CRUNCH_ALIAS_sh= -sh
49 # The -sh alias shouldn't appear in /rescue as a hard link
50 CRUNCH_SUPPRESS_LINK_-sh= 1
51
52 CRUNCH_ALIAS_ln= link
53 CRUNCH_ALIAS_rm= unlink
54
55
56 CRUNCH_SRCDIRS+= usr.bin
57 CRUNCH_PATH_usr.bin= ${.CURDIR}/../..
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>