1 1.8 christos # $NetBSD: Makefile.inc,v 1.8 2021/04/25 23:52:59 christos Exp $ 2 1.2 lukem 3 1.2 lukem WARNS?= 3 # XXX: -Wsign-compare issues ld.elf_so source 4 1.1 pk 5 1.6 martin .if ${MKCOMPAT} != "no" 6 1.6 martin 7 1.3 mrg .if ${MACHINE_ARCH} == "sparc64" 8 1.3 mrg MLIBDIR= sparc 9 1.3 mrg .endif 10 1.3 mrg 11 1.3 mrg .if ${MACHINE_ARCH} == "x86_64" 12 1.3 mrg MLIBDIR= i386 13 1.3 mrg .endif 14 1.3 mrg 15 1.3 mrg .if ${MACHINE_ARCH} == "powerpc64" 16 1.3 mrg MLIBDIR= powerpc 17 1.3 mrg .endif 18 1.3 mrg 19 1.8 christos .if !empty(MACHINE_ARCH:Mmips64*) 20 1.3 mrg # For now make "elf32" look for native (n32) 21 1.3 mrg MLIBDIR= 64 22 1.3 mrg COMPAT_MLIBDIR= o32 23 1.5 macallan CPPFLAGS+= -DLDD_ELF64 -DMIPS_N32 24 1.3 mrg .endif 25 1.8 christos 26 1.8 christos .if !empty(MACHINE_ARCH:Mmipsn64*) 27 1.8 christos MLIBDIR= n32 28 1.8 christos COMPAT_MLIBDIR= o32 29 1.8 christos CPPFLAGS+= -DMIPS_N32 30 1.8 christos .endif 31 1.8 christos 32 1.7 christos CPPFLAGS+= -D_KERNTYPES 33 1.3 mrg 34 1.6 martin .endif # MKCOMPAT 35 1.6 martin 36 1.1 pk .if exists(${.CURDIR}/../../Makefile.inc) 37 1.1 pk .include "${.CURDIR}/../../Makefile.inc" 38 1.1 pk .endif 39