freebsd-skq/lib/libdisk/Makefile
phk 9ac588fcdc Since make release is toast anyway, add wood to the pyre:
This significantly rewamps libdisks discovery of existing disk
layout.

Please send me reports if this does not work as expected on
i386 or sparc64 platforms.

I need to sort out alpha, pc98 and ia64 (in that order) before
testing on those platforms make a lot of sense.

Belived to work for:	i386 sparc64
Unknown state:		pc98 alpha ia64
2002-10-29 12:13:36 +00:00

50 lines
748 B
Makefile

# $FreeBSD$
LIB= disk
SRCS= blocks.c chunk.c disk.c change.c \
create_chunk.c rules.c write_disk.c
INCS= libdisk.h
WARNS= 2
.if ${MACHINE} == "pc98"
CFLAGS+= -DPC98
SRCS += write_pc98_disk.c
.endif
.if ${MACHINE} == "i386"
SRCS += write_i386_disk.c
.endif
.if ${MACHINE_ARCH} == "ia64"
SRCS += write_ia64_disk.c
.endif
.if ${MACHINE_ARCH} == "alpha"
SRCS += write_alpha_disk.c
.endif
.if ${MACHINE_ARCH} == "sparc64"
SRCS += write_sparc64_disk.c
.endif
CLEANFILES+= tmp.c tst01 tst01.o
NOPROFILE= yes
NOPIC= yes
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