Revision 11306,
561 bytes
checked in by rbasch, 27 years ago
(diff) |
Find all disks by reading /dev/rdsk, instead of assuming (only)
c0t3d0s0. Read the label by doing read_vtoc() on partition 2.
Always display the device and first field of the label (drive
type). In verbose mode, display the entire label (includes
geometry information).
|
Line | |
---|
1 | /* |
---|
2 | * $Id: Imakefile,v 1.17 1998-03-27 03:52:27 rbasch Exp $ |
---|
3 | */ |
---|
4 | |
---|
5 | #ifdef SOLARIS |
---|
6 | LIBS=-lkvm -ladm |
---|
7 | #endif |
---|
8 | |
---|
9 | #ifdef sgi |
---|
10 | LIBS=-lmld |
---|
11 | #endif |
---|
12 | |
---|
13 | NAME=${HOSTTYPE} |
---|
14 | OSNAME=`uname -s` |
---|
15 | OSVERS=`uname -r` |
---|
16 | |
---|
17 | machtype_$(NAME).o: ${ATHVERS} machtype_$(NAME).c |
---|
18 | $(RM) $@ |
---|
19 | . $(ATHVERS); \ |
---|
20 | $(CC) -c $(CFLAGS) -DATHMAJV=\"$$major\" -DATHMINV=\"$$minor\" \ |
---|
21 | -DATHSYS=\"${ATHENA_SYS}\" -DOSNAME=\"${OSNAME}\" \ |
---|
22 | -DOSVERS=\"${OSVERS}\" $*.c |
---|
23 | |
---|
24 | build_program(machtype, machtype_${NAME}.o,,${LIBS}) |
---|
25 | install_program(machtype,-m 4755 -o root,${ATHRBINDIR}) |
---|
26 | |
---|
27 | install_man(machtype.1,machtype.1) |
---|
Note: See
TracBrowser
for help on using the repository browser.