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