. Handle more compiler names, including most cross-compilers.
. Allows to use acd(1) and [whatever-]acc to designate ACK compiler.
. Do not abort (on COMPILER_TYPE not defined) if the compiler name
is not recognized.
.LIBS: .a
-AR?= aal
+### MINIX: see at bottom
+#AR?= aal
ARFLAGS?= rl
RANLIB?= ranlib
# MINIX
-.if !empty(CC:Mcc)
+.if !empty(CC:Mcc) || !empty(CC:Macd) || !empty(CC:M*acc)
COMPILER_TYPE=ack
-.elif !empty(CC:Mgcc) || !empty(CC:Mclang)
+AR?= aal
+.elif !empty(CC:M*gcc) || !empty(CC:M*clang) || !empty(CC:M*pcc)
COMPILER_TYPE=gnu
-AR=ar
+AR?= ar
.endif
.if exists(/usr/pkg/i386-pc-minix/lib/ldscripts/elf_i386_minix.x) \
# Set NBSD_LIBC to either "yes" or "no".
.if !defined(NBSD) || (${NBSD} == "no") \
- || (${COMPILER_TYPE} == "ack")
+ || !defined(COMPILER_TYPE) || (${COMPILER_TYPE} == "ack")
NBSD_LIBC= no
.else
NBSD_LIBC= yes