1 # Makefile for commands/simple.
3 CFLAGS
= -D_MINIX
-D_POSIX_SOURCE
5 SERVERS
= ..
/..
/servers
6 CCLD
= $(CC
) -i
$(CFLAGS
)
9 # This Makefile is large, but that is because it lists all actions that must
10 # be taken to compile and install all the simple commands. If there were only
11 # one command then it would look like this:
14 # cat \ need the 'cat' executable
16 # all: $(ALL) default rule, make all binaries
18 # cat: cat.c 'cat' is made from 'cat.c'
19 # $(CCLD) -o $@ $< compile 'cat.c' ($<) to 'cat' ($@)
20 # install -S 4kw $@ stack size is 8k (8086) or 16k (others)
22 # install: \ rule to install all binaries
23 # /usr/bin/cat \ one can find 'cat' in /usr/bin
24 # /bin/cat \ important binaries are also in /bin
27 # install -cs -o bin $< $@ copy 'cat' to '/usr/bin/cat' (-c),
28 # strip symbol table (-s)
30 # /bin/cat: /usr/bin/cat
31 # install -l h -cs $< $@ install '/bin/cat' by linking (if possible)
32 # or copying (otherwise)
34 # Some of the binaries are installed under more than one name. The extra
35 # names are indented by one extra tab in the install rule.
36 # If you want to add a command then insert it at the appropriate position
37 # in sorted order. Search around for the command just above or below the
38 # the new command and add new rules for the new command near those places.
39 # Observe four key things:
40 # What to make, how to make, what to install, how to install.
219 add_route
: add_route.c
220 $(CCLD
) -o
$@ add_route.c
234 badblocks
: badblocks.c
343 $(CCLD
) -I
$(SYS
) -o
$@
$<
346 dhrystone
: dhrystone.c
399 $(CCLD
) -o
$@ finger.c
422 getty
: getty.c
/usr
/include/minix
/config.h
423 $(CCLD
) -o
$@ getty.c
427 $(CCLD
) -o
$@
$< -lcurses
439 $(CCLD
) -wo
-o
$@ host.c
443 $(CCLD
) -o
$@ hostaddr.c
451 $(CCLD
) -o
$@ ifconfig.c
458 in.fingerd
: in.fingerd.c
459 $(CCLD
) -o
$@ in.fingerd.c
463 $(CCLD
) -o
$@ in.rshd.c
466 installx
: install.c
# Note: avoided confict with 'install' rule.
467 $(CCLD
) -o
$@
install.c
478 $(CCLD
) -o
$@ ipcrm.c
506 $(CCLD
) -o
$@
$< -lcurses
509 loadramdisk
: loadramdisk.c
621 pr_routes
: pr_routes.c
625 progressbar
: progressbar.c
637 printroot
: printroot.c
654 $(CCLD
) -o
$@ ramdisk.c
658 $(CCLD
) -o
$@ rarpd.c
666 $(CCLD
) -o
$@ rawspeed.c
670 $(CCLD
) -o
$@ rdate.c
778 $(CCLD
) -o
$@
-DPARANOID
=0 tcpd.c
782 $(CCLD
) -o
$@
-DPARANOID
=1 tcpd.c
786 $(CCLD
) -o
$@
-I
$(SERVERS
) tcpstat.c
814 $(CCLD
) -o
$@
$< -lcurses
817 $(CCLD
) -o
$@ tr.c str.c
836 $(CCLD
) -o
$@
-I
$(SERVERS
) $<
843 uname
: uname.c
/usr
/include/minix
/config.h
844 $(CCLD
) -o
$@ uname.c
869 @
install -S
80k
$@
# note: '-S' is upper limit to 'vol -m'
890 writeisofs
: writeisofs.c
930 /usr
/bin
/uncompress \
980 /usr
/bin
/in.fingerd \
997 /usr
/bin
/loadramdisk \
1028 /usr
/bin
/pr_routes \
1029 /usr
/bin
/progressbar \
1033 /usr
/bin
/printroot \
1104 /usr
/bin
/writeisofs \
1118 /usr
/bin
/add_route
: add_route
1119 install -cs
-o bin
$> $@
1121 /usr
/bin
/del_route
: /usr
/bin
/add_route
1125 install -cs
-o root
-m
4755 $> $@
1128 install -cs
-o root
-m
4755 $> $@
1130 /usr
/bin
/backup
: backup
1131 install -cs
-o bin
$> $@
1133 /usr
/bin
/restore
: /usr
/bin
/backup
1136 /usr
/bin
/badblocks
: badblocks
1137 install -cs
-o bin
$> $@
1139 /usr
/bin
/banner
: banner
1140 install -cs
-o bin
$> $@
1142 /usr
/bin
/basename: basename
1143 install -cs
-o bin
$> $@
1146 install -cs
-o bin
$> $@
1148 /usr
/bin
/calendar
: calendar
1149 install -cs
-o bin
$> $@
1152 install -cs
-o bin
$> $@
1154 /usr
/bin
/cdiff
: cdiff
1155 install -cs
-o bin
$> $@
1157 /usr
/bin
/cdprobe
: cdprobe
1158 install -cs
-o bin
$> $@
1160 /usr
/bin
/cgrep
: cgrep
1161 install -cs
-o bin
$> $@
1163 /usr
/bin
/chmem
: chmem
1164 install -cs
-o bin
$> $@
1166 /usr
/bin
/chmod
: chmod
1167 install -cs
-o bin
$> $@
1169 /usr
/bin
/chown
: chown
1170 install -cs
-o bin
$> $@
1173 install -cs
-o bin
$> $@
1175 /usr
/bin
/chgrp
: /usr
/bin
/chown
1179 install -cs
-o bin
$> $@
1181 /usr
/bin
/cksum
: cksum
1182 install -cs
-o bin
$> $@
1184 /usr
/bin
/cleantmp
: cleantmp
1185 install -cs
-o bin
$> $@
1188 install -cs
-o bin
$> $@
1191 install -cs
-o bin
$> $@
1194 install -cs
-o bin
$> $@
1196 /usr
/bin
/compress
: compress
1197 install -cs
-o bin
$> $@
1199 /usr
/bin
/uncompress
/usr
/bin
/zcat
: /usr
/bin
/compress
1203 install -cs
-o bin
$> $@
1206 install -cs
-o bin
$> $@
1208 /usr
/bin
/clone
/usr
/bin
/cpdir \
1209 /usr
/bin
/ln
/usr
/bin
/mv
/usr
/bin
/rm: /usr
/bin
/cp
1212 /bin
/ln
/bin
/mv
/bin
/rm: /bin
/cp
1216 install -cs
-o bin
$> $@
1219 install -cs
-o bin
$> $@
1222 install -cs
-o bin
$> $@
1224 /bin
/dev2name
: dev2name
1225 install -cs
-o bin
$> $@
1227 /usr
/bin
/devsize
: devsize
1228 install -cs
-o bin
$> $@
1230 /usr
/bin
/decomp16
: decomp16
1231 install -cs
-o bin
$> $@
1234 install -cs
-o root
-m
4755 $> $@
1236 /usr
/bin
/dhrystone
: dhrystone
1237 install -cs
-o bin
$> $@
1240 install -cs
-o bin
$> $@
1242 /usr
/bin
/dirname
: dirname
1243 install -cs
-o bin
$> $@
1246 install -cs
-o bin
$> $@
1248 /usr
/bin
/dumpcore
: dumpcore
1249 install -cs
-o bin
$> $@
1252 install -cs
-o bin
$> $@
1254 /usr
/bin
/eject
: eject
1255 install -cs
-o bin
$> $@
1258 install -cs
-o bin
$> $@
1260 /usr
/bin
/expand
: expand
1261 install -cs
-o bin
$> $@
1263 /usr
/bin
/factor
: factor
1264 install -cs
-o bin
$> $@
1266 /usr
/bin
/fgrep
: fgrep
1267 install -cs
-o bin
$> $@
1270 install -cs
-o bin
$> $@
1273 install -cs
-o bin
$> $@
1275 /usr
/bin
/finger
: finger
1276 install -cs
-o bin
$> $@
1279 install -cs
-o bin
$> $@
1282 install -cs
-o bin
$> $@
1284 /usr
/bin
/fortune
: fortune
1285 install -cs
-o bin
$> $@
1288 install -cs
-o bin
$> $@
1290 /usr
/bin
/fsck1
: fsck1
1291 install -cs
-o bin
$> $@
1294 install -cs
-o bin
$> $@
1296 /usr
/bin
/getty
: getty
1297 install -cs
-o bin
$> $@
1299 /usr
/bin
/gomoku
: gomoku
1300 install -cs
-o bin
$> $@
1303 install -cs
-o bin
$> $@
1305 /usr
/bin
/egrep
: /usr
/bin
/grep
1309 install -cs
-o bin
$> $@
1312 install -cs
-o bin
$> $@
1314 /usr
/bin
/hostaddr
: hostaddr
1315 install -cs
-o root
-m
4755 $> $@
1318 install -cs
-o bin
$> $@
1320 /usr
/bin
/ifconfig
: ifconfig
1321 install -cs
-o root
-m
4755 $> $@
1323 /usr
/bin
/ifdef: ifdef
1324 install -cs
-o bin
$> $@
1326 /usr
/bin
/in.fingerd
: in.fingerd
1327 install -cs
-o bin
$> $@
1329 /usr
/bin
/in.rshd
: in.rshd
1330 install -cs
-o bin
$> $@
1332 /bin
/install: installx
1333 install -cs
-o root
-m
4755 $> $@
1335 /usr
/bin
/install: installx
1336 install -cs
-o root
-m
4755 $> $@
1339 install -cs
-o bin
$> $@
1342 install -cs
-o bin
$> $@
1344 /usr
/bin
/ipcrm
: ipcrm
1345 install -cs
-o bin
$> $@
1347 /usr
/bin
/irdpd
: irdpd
1348 install -cs
-o bin
$> $@
1350 /usr
/bin
/isoread
: isoread
1351 install -cs
-o bin
$> $@
1353 /usr
/bin
/isodir
/usr
/bin
/isoinfo
: /usr
/bin
/isoread
1357 install -cs
-o bin
$> $@
1360 install -cs
-o bin
$> $@
1363 install -cs
-o bin
$> $@
1365 /usr
/bin
/uptime
: /usr
/bin
/last
1368 /usr
/bin
/leave
: leave
1369 install -cs
-o bin
$> $@
1372 install -cs
-o bin
$> $@
1374 /usr
/bin
/loadramdisk
: loadramdisk
1375 install -cs
-o bin
$> $@
1377 /usr
/bin
/login
: login
1378 install -cs
-o bin
$> $@
1381 install -cs
-o bin
$> $@
1384 install -cs
-o bin
$> $@
1387 install -cs
-o daemon
-m
4755 $> $@
1390 install -cs
-o bin
$> $@
1393 install -cs
-o bin
$> $@
1395 /usr
/bin
/lspci
: lspci
1396 install -cs
-o bin
$> $@
1399 install -cs
-o root
-m
4755 $> $@
1402 install -cs
-o bin
$> $@
1405 install -cs
-o bin
$> $@
1407 /usr
/bin
/mkdir
: mkdir
1408 install -cs
-o bin
$> $@
1410 /usr
/bin
/mkfifo
: mkfifo
1411 install -cs
-o bin
$> $@
1414 install -cs
-o bin
$> $@
1416 /usr
/bin
/mknod
: mknod
1417 install -cs
-o bin
$> $@
1419 /usr
/bin
/mkproto
: mkproto
1420 install -cs
-o bin
$> $@
1422 /usr
/bin
/modem
: modem
1423 install -cs
-o bin
$> $@
1425 /usr
/bin
/mount
: mount
1426 install -cs
-o root
-m
4755 $> $@
1429 install -cs
-o bin
$> $@
1431 /usr
/bin
/newroot
: newroot
1432 install -cs
-o bin
$> $@
1435 install -cs
-o bin
$> $@
1438 install -cs
-o bin
$> $@
1440 /usr
/bin
/nohup
: nohup
1441 install -cs
-o bin
$> $@
1443 /usr
/bin
/nonamed
: nonamed
1444 install -cs
-o bin
$> $@
1447 install -cs
-o bin
$> $@
1449 /usr
/bin
/passwd
: passwd
1450 install -cs
-o root
-m
4755 $> $@
1452 /usr
/bin
/chfn
/usr
/bin
/chsh
: /usr
/bin
/passwd
1455 /usr
/bin
/paste
: paste
1456 install -cs
-o bin
$> $@
1459 install -cs
-o root
-m
4755 $> $@
1462 install -cs
-o bin
$> $@
1464 /usr
/bin
/pr_routes
: pr_routes
1465 install -cs
-o root
-m
4755 $> $@
1467 /usr
/bin
/progressbar
: progressbar
1468 install -cs
-o root
-m
755 $> $@
1471 install -cs
-o bin
$> $@
1473 /usr
/bin
/printf
: printf
1474 install -cs
-o bin
$> $@
1476 /usr
/bin
/printenv
: /usr
/bin
/env
1477 install -l h
-s
-o bin
/usr
/bin
/env
/usr
/bin
/printenv
1479 /usr
/bin
/printroot
: printroot
1480 install -cs
-o bin
$> $@
1482 /usr
/bin
/proto
: proto
1483 install -cs
-o bin
$> $@
1486 install -cs
-o bin
$> $@
1488 /usr
/lib
/pwdauth
: pwdauth
1489 install -cs
-o root
-m
4755 $> $@
1491 /usr
/bin
/ramdisk
: ramdisk
1492 install -cs
-o bin
$> $@
1494 /usr
/bin
/rarpd
: rarpd
1495 install -cs
-o bin
$> $@
1498 install -cs
-o bin
$> $@
1500 /usr
/bin
/rawspeed
: rawspeed
1501 install -cs
-o bin
$> $@
1503 /usr
/bin
/rdate
: rdate
1504 install -cs
-o bin
$> $@
1506 /usr
/bin
/readall
: readall
1507 install -cs
-o bin
$> $@
1509 /usr
/bin
/readlink
: /usr
/bin
/stat
1512 /usr
/bin
/readfs
: readfs
1513 install -cs
-o bin
$> $@
1515 /usr
/bin
/remsync
: remsync
1516 install -cs
-o bin
$> $@
1519 install -cs
-o bin
$> $@
1522 install -cs
-o bin
$> $@
1524 /usr
/bin
/rput
: /usr
/bin
/rget
1527 /usr
/bin
/rlogin
: rlogin
1528 install -cs
-o bin
$> $@
1530 /usr
/bin
/rmdir
: rmdir
1531 install -cs
-o bin
$> $@
1534 install -cs
-o bin
$> $@
1537 install -cs
-o bin
$> $@
1540 install -cs
-o bin
$> $@
1543 install -cs
-o bin
$> $@
1546 install -cs
-o bin
$> $@
1548 /usr
/bin
/sleep
: sleep
1549 install -cs
-o bin
$> $@
1552 install -cs
-o bin
$> $@
1555 install -cs
-o bin
$> $@
1557 /usr
/bin
/split
: split
1558 install -cs
-o bin
$> $@
1561 install -cs
-o bin
$> $@
1563 /usr
/bin
/fstat
: /usr
/bin
/stat
1566 /usr
/bin
/strings
: strings
1567 install -cs
-o bin
$> $@
1569 /usr
/bin
/strip: strip
1570 install -cs
-o bin
$> $@
1573 install -cs
-o bin
$> $@
1576 install -cs
-o root
-m
4755 $> $@
1579 install -cs
-o bin
$> $@
1581 /usr
/bin
/swapfs
: swapfs
1582 install -cs
-o bin
$> $@
1585 install -cs
-o bin
$> $@
1587 /usr
/bin
/synctree
: synctree
1588 install -cs
-o bin
$> $@
1591 install -cs
-o bin
$> $@
1593 /usr
/bin
/sysenv
: sysenv
1594 install -cs
-o bin
$> $@
1597 install -cs
-o bin
$> $@
1600 install -cs
-o bin
$> $@
1602 /usr
/bin
/tcpdp
: tcpdp
1603 install -cs
-o bin
$> $@
1605 /usr
/bin
/tcpstat
: tcpstat
1606 install -cs
-o bin
$> $@
1609 install -cs
-o bin
$> $@
1612 install -cs
-o bin
-g uucp
-m
2755 $> $@
1614 /usr
/bin
/termcap
: termcap
1615 install -cs
-o bin
$> $@
1618 install -cs
-o bin
$> $@
1621 install -cs
-o bin
$> $@
1624 install -cs
-o root
-m
4755 $> $@
1626 /usr
/bin
/touch
: touch
1627 install -cs
-o bin
$> $@
1630 install -cs
-o bin
$> $@
1632 /usr
/bin
/truncate
: truncate
1633 install -cs
-o bin
$> $@
1635 /usr
/bin
/tsort
: tsort
1636 install -cs
-o bin
$> $@
1639 install -cs
-o bin
$> $@
1642 install -cs
-o bin
$> $@
1644 /usr
/bin
/udpstat
: udpstat
1645 install -cs
-o bin
$> $@
1647 /usr
/bin
/umount
: umount
1648 install -cs
-o root
-m
4755 $> $@
1650 /usr
/bin
/uname
: uname
1651 install -cs
-o bin
$> $@
1653 /usr
/bin
/arch
: /usr
/bin
/uname
1656 /usr
/bin
/unexpand
: unexpand
1657 install -cs
-o bin
$> $@
1660 install -cs
-o bin
$> $@
1662 /usr
/bin
/update
: update
1663 install -cs
-o bin
$> $@
1666 install -cs
-o bin
$> $@
1668 /usr
/bin
/uudecode
: /usr
/bin
/uud
1672 install -cs
-o bin
$> $@
1674 /usr
/bin
/uuencode
: /usr
/bin
/uue
1678 install -cs
-o bin
$> $@
1681 install -cs
-o bin
$> $@
1683 /usr
/bin
/which
: which
1684 install -cs
-o bin
$> $@
1687 install -cs
-o bin
$> $@
1689 /usr
/bin
/whoami
: whoami
1690 install -cs
-o bin
$> $@
1692 /usr
/bin
/write
: write
1693 install -cs
-o bin
-g tty
-m
2755 $> $@
1695 /usr
/bin
/writeisofs
: writeisofs
1696 install -cs
-S
2M
-o bin
$> $@
1698 /usr
/bin
/xargs
: xargs
1699 install -cs
-o bin
$> $@
1702 install -cs
-o bin
$> $@
1704 /bin
/cat
: /usr
/bin
/cat
1705 install -l h
-cs
$> $@
1707 /bin
/fsck
: /usr
/bin
/fsck
1708 install -l h
-cs
$> $@
1710 /bin
/intr
: /usr
/bin
/intr
1711 install -l h
-cs
$> $@
1713 /bin
/mount
: /usr
/bin
/mount
1714 install -l h
-cs
$> $@
1716 /bin
/printroot
: /usr
/bin
/printroot
1717 install -l h
-cs
$> $@
1719 /bin
/pwd
: /usr
/bin
/pwd
1720 install -l h
-cs
$> $@
1722 /bin
/sync
: /usr
/bin
/sync
1723 install -l h
-cs
$> $@
1725 /bin
/umount
: /usr
/bin
/umount
1726 install -l h
-cs
$> $@
1729 rm -rf
$(ALL
) a.out core