summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authornyan <nyan@FreeBSD.org>2002-10-31 05:43:49 +0000
committernyan <nyan@FreeBSD.org>2002-10-31 05:43:49 +0000
commit0315c477ee0eedac4a4b0aab922b03f26c915f5d (patch)
tree25c996df343c394423bd4b8b7e2a45c07738830e /lib
parent2616a319ce384dc11021eaddf578c3f9e9afbdaa (diff)
downloadFreeBSD-src-0315c477ee0eedac4a4b0aab922b03f26c915f5d.zip
FreeBSD-src-0315c477ee0eedac4a4b0aab922b03f26c915f5d.tar.gz
Use ${MACHINE} variable instead of using '.if .endif' each machines.
Diffstat (limited to 'lib')
-rw-r--r--lib/libdisk/Makefile19
1 files changed, 1 insertions, 18 deletions
diff --git a/lib/libdisk/Makefile b/lib/libdisk/Makefile
index 7ac8042..e0faefa 100644
--- a/lib/libdisk/Makefile
+++ b/lib/libdisk/Makefile
@@ -2,30 +2,13 @@
LIB= disk
SRCS= blocks.c chunk.c disk.c change.c \
- create_chunk.c rules.c write_disk.c
+ create_chunk.c rules.c write_disk.c write_${MACHINE}_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
OpenPOWER on IntegriCloud