freebsd-nq/lib/libdisk/Makefile

48 lines
729 B
Makefile
Raw Normal View History

1999-08-28 00:22:10 +00:00
# $FreeBSD$
.if ${MACHINE_ARCH} == "ia64"
_open_disk= open_ia64_disk.c
.else
_change = change.c
_open_disk= open_disk.c
.endif
LIB= disk
SRCS= blocks.c ${_change} chunk.c create_chunk.c disk.c ${_open_disk} \
rules.c write_disk.c
.if ${MACHINE} == "sun4v"
SRCS+= write_sparc64_disk.c
.else
SRCS+= write_${MACHINE}_disk.c
.endif
INCS= libdisk.h
2004-03-30 06:16:41 +00:00
WARNS?= 2
CFLAGS+= -I${.CURDIR}/../../sys/geom
2000-03-29 15:10:28 +00:00
.if ${MACHINE} == "pc98"
CFLAGS+= -DPC98
.endif
CLEANFILES+= tmp.c tst01 tst01.o
NO_PROFILE=
NO_PIC=
1995-04-30 06:19:32 +00:00
2001-03-27 17:27:19 +00:00
MAN= libdisk.3
.include <bsd.lib.mk>
tst01: tst01.o libdisk.a
cc ${CFLAGS} -static tst01.o -o tst01 libdisk.a
ad0: all install tst01
./tst01 ad0
da0: all install tst01
./tst01 da0
da1: all install tst01
./tst01 da1