diff options
author | phk <phk@FreeBSD.org> | 2002-10-23 19:52:32 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2002-10-23 19:52:32 +0000 |
commit | 3c688df1144b5bdaff8d7a1bb0a2b070aeb58570 (patch) | |
tree | 8f96ba2125f5c49c01733b91085df28bc416b157 /lib/libdisk/Makefile | |
parent | a422fc77aed8e1bd796a01b2de09138e90fabad5 (diff) | |
download | FreeBSD-src-3c688df1144b5bdaff8d7a1bb0a2b070aeb58570.zip FreeBSD-src-3c688df1144b5bdaff8d7a1bb0a2b070aeb58570.tar.gz |
Untangle #ifdefs in the write-end of things by giving each arch its
own file and own copy of WriteDisk() to do things in.
This should have happened years ago, instead of adding #ifdefs all
over the place.
Diffstat (limited to 'lib/libdisk/Makefile')
-rw-r--r-- | lib/libdisk/Makefile | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/libdisk/Makefile b/lib/libdisk/Makefile index a1d0746..ec637d1 100644 --- a/lib/libdisk/Makefile +++ b/lib/libdisk/Makefile @@ -4,11 +4,21 @@ LIB= disk SRCS= blocks.c chunk.c disk.c change.c \ create_chunk.c rules.c write_disk.c INCS= libdisk.h +WARNS= 2 -CFLAGS+= -Wall .if ${MACHINE} == "pc98" CFLAGS+= -DPC98 +SRCS += write_pc98_disk.c .endif + +.if ${MACHINE} == "i386" +SRCS += write_i386_disk.c +.endif + +.if ${MACHINE} == "alpha" +SRCS += write_alpha_disk.c +.endif + CLEANFILES+= tmp.c tst01 tst01.o NOPROFILE= yes NOPIC= yes |