1*503e8d6bSpgoyette# $NetBSD: Makefile.compat,v 1.1 2024/06/16 21:52:01 pgoyette Exp $ 2*503e8d6bSpgoyette 3*503e8d6bSpgoyetteCOMPAT_ARCH= ${MACHINE_CPU:C/x86_64/amd64/} 4*503e8d6bSpgoyette 5*503e8d6bSpgoyette.if empty(KMOD:Mnetbsd32) 6*503e8d6bSpgoyetteCOMPAT_SUBDIR= ${COMPAT_ARCH} 7*503e8d6bSpgoyette.else 8*503e8d6bSpgoyetteCOMPAT_SUBDIR= ${COMPAT_ARCH:C/arm/arm32/} 9*503e8d6bSpgoyette.endif 10*503e8d6bSpgoyette 11*503e8d6bSpgoyetteCOMPAT_PATH= ${S}/arch/${COMPAT_ARCH}/${COMPAT_SUBDIR} 12*503e8d6bSpgoyette 13*503e8d6bSpgoyette.for _s in ${COMPAT_MACHDEP_SRCS} 14*503e8d6bSpgoyette.if exists(${COMPAT_PATH}/${_s}) 15*503e8d6bSpgoyette.PATH: ${COMPAT_PATH} 16*503e8d6bSpgoyetteSRCS+= ${_s} 17*503e8d6bSpgoyette.endif 18*503e8d6bSpgoyette.endfor 19