1 1.43 mrg # $NetBSD: Makefile,v 1.43 2019/10/13 07:28:12 mrg Exp $ 2 1.5 mrg 3 1.1 cgd PROG= fdisk 4 1.1 cgd SRCS= fdisk.c 5 1.5 mrg 6 1.3 cgd MAN= fdisk.8 7 1.17 soda 8 1.42 tsutsui .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" 9 1.42 tsutsui CPPFLAGS+= -DBOOTSEL 10 1.42 tsutsui .if (${HOSTPROG:U} == "") 11 1.42 tsutsui CPPFLAGS+= -DUSE_DISKLIST 12 1.42 tsutsui .endif 13 1.42 tsutsui .endif 14 1.42 tsutsui 15 1.17 soda .if ${MACHINE} == "arc" 16 1.17 soda CPPFLAGS+= -D_PATH_DEFDISK='"/dev/rsd0d"' 17 1.22 thorpej .endif 18 1.22 thorpej 19 1.22 thorpej .if ${MACHINE} == "netwinder" 20 1.22 thorpej CPPFLAGS+= -D_PATH_DEFDISK='"/dev/rwd0c"' 21 1.17 soda .endif 22 1.1 cgd 23 1.43 mrg COPTS.fdisk.c+= ${GCC_NO_STRINGOP_TRUNCATION} 24 1.43 mrg 25 1.1 cgd .include <bsd.prog.mk> 26 1.35 mrg 27 1.33 dyoung .if (${HOSTPROG:U} == "") 28 1.40 christos DPADD+= ${LIBUTIL} ${LIBZ} 29 1.40 christos LDADD+= -lutil -lz 30 1.33 dyoung .endif 31