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} \
|
2006-10-09 04:58:45 +00:00
|
|
|
rules.c write_disk.c
|
2006-10-09 05:12:54 +00:00
|
|
|
.if ${MACHINE} == "sun4v"
|
2006-10-09 04:58:45 +00:00
|
|
|
SRCS+= write_sparc64_disk.c
|
|
|
|
.else
|
|
|
|
SRCS+= write_${MACHINE}_disk.c
|
|
|
|
.endif
|
|
|
|
|
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-12-21 09:33:47 +00:00
|
|
|
NO_PROFILE=
|
2006-01-27 16:32:13 +00:00
|
|
|
NO_PIC=
|
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
|