blob: 97949b1c2614fe32f36c3283751953f7c9bc3206 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# $FreeBSD$
# first, we list the source dirs that our programs reside in. These are
# searched in order listed to find the dir containing each program.
srcdirs /usr/src/bin /usr/src/sbin /usr/src/usr.bin /usr/src/usr.sbin
srcdirs /usr/src/gnu/usr.bin /usr/src/usr.bin/vi
# second, we list all the programs we want to include in our crunched binary.
# The order doesn't matter. Any program that needs hard links to it gets an
# `ln' directive.
# /bin stuff
progs cat chmod chroot cp dd df echo expr kill ln ls mkdir
progs mv rm rmdir sleep sync
# /sbin stuff
progs chown dmesg
progs mknod mount reboot restore swapon umount
progs mount_cd9660
ln restore rrestore
ln chown chgrp
# /usr/bin stuff
progs ftp vi
ln vi view
ln vi ex
# finally, we specify the libraries to link in with our binary
libs -lcrypt -lutil -ll -lm
libs -lcurses -ltermcap -ledit -lkvm -lz
|