mk/crunchgen: Do not hard code the path to the source directories
[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_PATH_bin= ${.CURDIR}/../..
15 CRUNCH_PROGS_bin=       \
16         cat             \
17         chmod           \
18         cp              \
19         cpdup           \
20         dd              \
21         df              \
22         echo            \
23         kill            \
24         ln              \
25         ls              \
26         mined           \
27         mkdir           \
28         mv              \
29         ps              \
30         pwd             \
31         rm              \
32         rmdir           \
33         sh              \
34         sleep           \
35         sync            \
36         test
37
38 CRUNCH_LIBS+= -lcrypt -lprivate_edit -lkvm -ll -lmd -lprivate_ncurses -lutil
39 # No longer needed if bin/sh uses pregenerated/ headers.
40 #CRUNCH_BUILDTOOLS+= bin/sh bin/sh/mknodes bin/sh/mksyntax
41
42 # Additional options for specific programs
43 CRUNCH_ALIAS_test= [
44
45 CRUNCH_ALIAS_sh= -sh
46 # The -sh alias shouldn't appear in /rescue as a hard link
47 CRUNCH_SUPPRESS_LINK_-sh= 1
48
49 CRUNCH_ALIAS_ln= link
50 CRUNCH_ALIAS_rm= unlink
51
52
53 CRUNCH_SRCDIRS+= usr.bin
54 CRUNCH_PATH_usr.bin= ${.CURDIR}/../..
55 CRUNCH_PROGS_usr.bin= du less undo ssh fetch
56 CRUNCH_ALIAS_less= more
57 CRUNCH_ALIAS_ssh= scp
58
59 CRUNCH_KEEP_ssh= roaming_write roaming_read add_recv_bytes
60
61 CRUNCH_LIBS+=   ${PRIVATELIB_LDFLAGS}
62 CRUNCH_LIBS+=   -lfetch -lprivate_ssh -lprivate_ssl -lprivate_crypto -lz -lpthread
63
64 .include <bsd.crunchgen.mk>
65 .include <bsd.prog.mk>