1999-08-28 00:22:10 +00:00
|
|
|
# $FreeBSD$
|
1996-05-07 23:19:49 +00:00
|
|
|
|
2003-11-02 08:39:08 +00:00
|
|
|
.if ${MACHINE_ARCH} == "ia64"
|
|
|
|
_open_disk= open_ia64_disk.c
|
|
|
|
.else
|
|
|
|
_change = change.c
|
|
|
|
_open_disk= open_disk.c
|
|
|
|
.endif
|
|
|
|
|
1995-05-01 08:08:02 +00:00
|
|
|
LIB= disk
|
2003-11-02 08:39:08 +00:00
|
|
|
SRCS= blocks.c ${_change} chunk.c create_chunk.c disk.c ${_open_disk} \
|
|
|
|
rules.c write_disk.c write_${MACHINE}_disk.c
|
2000-01-14 07:57:47 +00:00
|
|
|
INCS= libdisk.h
|
2002-10-23 20:02:33 +00:00
|
|
|
|
2004-03-30 06:16:41 +00:00
|
|
|
WARNS?= 2
|
1995-04-28 23:57:04 +00:00
|
|
|
|
2003-04-21 20:36:44 +00:00
|
|
|
CFLAGS+= -I${.CURDIR}/../../sys/geom
|
|
|
|
|
2000-03-29 15:10:28 +00:00
|
|
|
.if ${MACHINE} == "pc98"
|
|
|
|
CFLAGS+= -DPC98
|
2002-10-29 12:13:36 +00:00
|
|
|
.endif
|
|
|
|
|
1998-12-31 02:35:43 +00:00
|
|
|
CLEANFILES+= tmp.c tst01 tst01.o
|
2004-10-24 15:33:08 +00:00
|
|
|
NOPROFILE=
|
|
|
|
NOPIC=
|
1995-04-30 06:19:32 +00:00
|
|
|
|
2001-03-27 17:27:19 +00:00
|
|
|
MAN= libdisk.3
|
1996-03-17 23:20:09 +00:00
|
|
|
|
1995-05-01 08:08:02 +00:00
|
|
|
.include <bsd.lib.mk>
|
|
|
|
|
1995-05-03 06:30:59 +00:00
|
|
|
tst01: tst01.o libdisk.a
|
|
|
|
cc ${CFLAGS} -static tst01.o -o tst01 libdisk.a
|
2002-10-29 12:13:36 +00:00
|
|
|
|
|
|
|
ad0: all install tst01
|
|
|
|
./tst01 ad0
|
|
|
|
|
|
|
|
da0: all install tst01
|
|
|
|
./tst01 da0
|
|
|
|
|
|
|
|
da1: all install tst01
|
|
|
|
./tst01 da1
|