opnsense-src/lib/libdisk/Makefile

44 lines
664 B
Makefile
Raw Normal View History

1999-08-27 20:22:10 -04:00
# $FreeBSD$
.if ${MACHINE_CPUARCH} == "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
SRCS+= write_${MACHINE}_disk.c
INCS= libdisk.h
2004-03-30 01:16:41 -05:00
WARNS?= 2
CFLAGS+= -I${.CURDIR}/../../sys/geom
2000-03-29 10:10:28 -05:00
.if ${MACHINE} == "pc98"
CFLAGS+= -DPC98
.endif
CLEANFILES+= tmp.c tst01 tst01.o
NO_PROFILE=
NO_PIC=
1995-04-30 02:19:32 -04:00
2001-03-27 12:27:19 -05: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