Ignore machine-check MSRs
[freebsd-src/fkvm-freebsd.git] / lib / libdisk / Makefile
blob763170d4852cdcfe914f7386f20fdcdf8f39a812
1 # $FreeBSD$
3 .if ${MACHINE_ARCH} == "ia64"
4 _open_disk= open_ia64_disk.c
5 .else
6 _change = change.c
7 _open_disk= open_disk.c
8 .endif
10 LIB= disk
11 SRCS= blocks.c ${_change} chunk.c create_chunk.c disk.c ${_open_disk} \
12 rules.c write_disk.c
13 .if ${MACHINE} == "sun4v"
14 SRCS+= write_sparc64_disk.c
15 .else
16 SRCS+= write_${MACHINE}_disk.c
17 .endif
19 INCS= libdisk.h
21 WARNS?= 2
23 CFLAGS+= -I${.CURDIR}/../../sys/geom
25 .if ${MACHINE} == "pc98"
26 CFLAGS+= -DPC98
27 .endif
29 CLEANFILES+= tmp.c tst01 tst01.o
30 NO_PROFILE=
31 NO_PIC=
33 MAN= libdisk.3
35 .include <bsd.lib.mk>
37 tst01: tst01.o libdisk.a
38 cc ${CFLAGS} -static tst01.o -o tst01 libdisk.a
40 ad0: all install tst01
41 ./tst01 ad0
43 da0: all install tst01
44 ./tst01 da0
46 da1: all install tst01
47 ./tst01 da1