]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - lib/libdisk/Makefile
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / lib / libdisk / Makefile
1 # $FreeBSD$
2
3 .if ${MACHINE_CPUARCH} == "ia64"
4 _open_disk=     open_ia64_disk.c
5 .else
6 _change =       change.c
7 _open_disk=     open_disk.c
8 .endif
9
10 LIB=    disk
11 SRCS=   blocks.c ${_change} chunk.c create_chunk.c disk.c ${_open_disk} \
12         rules.c write_disk.c 
13 SRCS+=  write_${MACHINE}_disk.c
14
15 INCS=   libdisk.h
16
17 WARNS?= 2
18
19 CFLAGS+=        -I${.CURDIR}/../../sys/geom
20
21 .if ${MACHINE} == "pc98"
22 CFLAGS+=        -DPC98
23 .endif
24
25 CLEANFILES+=    tmp.c tst01 tst01.o
26 NO_PROFILE=
27 NO_PIC=
28
29 MAN=            libdisk.3
30
31 .include <bsd.lib.mk>
32
33 tst01: tst01.o libdisk.a
34         cc ${CFLAGS} -static tst01.o -o tst01 libdisk.a
35
36 ad0:    all install tst01
37         ./tst01 ad0
38
39 da0:    all install tst01
40         ./tst01 da0
41
42 da1:    all install tst01
43         ./tst01 da1