mk/crunchgen: Do not hard code the path to the source directories
[dragonfly.git] / initrd / sbin / 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.sbin
5
6 SCRIPTS= ${.CURDIR}/../../sbin/dhclient/dhclient-script
7
8 CRUNCH_SRCDIRS+= sbin
9 CRUNCH_PATH_sbin= ${.CURDIR}/../..
10 CRUNCH_PROGS_sbin=      \
11         camcontrol      \
12         ccdconfig       \
13         dhclient        \
14         diskinfo        \
15         disklabel32     \
16         disklabel64     \
17         dmesg           \
18         dumpfs          \
19         dumpon          \
20         fdisk           \
21         ffsinfo         \
22         fsck            \
23         fsck_msdosfs    \
24         gpt             \
25         growfs          \
26         ifconfig        \
27         kldconfig       \
28         kldload         \
29         kldstat         \
30         kldunload       \
31         mount           \
32         mount_cd9660    \
33         mount_hammer    \
34         mount_hammer2   \
35         mount_msdos     \
36         mount_nfs       \
37         mount_ntfs      \
38         mount_null      \
39         mount_tmpfs     \
40         mount_ufs       \
41         natacontrol     \
42         newfs           \
43         newfs_hammer    \
44         newfs_hammer2   \
45         newfs_msdos     \
46         rconfig         \
47         reboot          \
48         route           \
49         shutdown        \
50         swapon          \
51         sysctl          \
52         tunefs          \
53         udevd           \
54         umount          \
55         vinum
56
57 CRUNCH_ALIAS_disklabel64= disklabel
58 CRUNCH_ALIAS_newfs= mount_mfs
59 CRUNCH_ALIAS_reboot= halt
60 CRUNCH_ALIAS_shutdown= poweroff
61 CRUNCH_ALIAS_swapon= swapoff swapctl
62
63 CRUNCH_LIBS+= -lcam -lsbuf -lutil -lkvm -lm -lhammer -lkiconv
64 CRUNCH_LIBS+= -lprivate_edit -lprivate_ncurses -ldevstat -lprop -lpthread
65 CRUNCH_LIBS+= -lbsdxml
66 CRUNCH_LIBS+= ${PRIVATELIB_LDFLAGS}
67
68 CRUNCH_SRCDIRS+= usr.sbin
69 CRUNCH_PATH_usr.sbin= ${.CURDIR}/../..
70 CRUNCH_PROGS_usr.sbin= boot0cfg chroot
71
72 .include <bsd.crunchgen.mk>
73 .include <bsd.prog.mk>