NetBSD-5.0.2/x11/Xserver/hw/xfree86/Makefile.drivermod
# $NetBSD: Makefile.drivermod,v 1.5 2006/09/07 03:45:50 dbj Exp $
LIB=${MODULE}
# XXX this is a really bad hack to install an archive as a .o
# This hack is not required for targets that use the dlopen() module scheme.
.if ${MACHINE} != "sgimips"
__archivebuild: .USE
${_MKTARGET_BUILD}
rm -rf ${.TARGET}
${LD} -X -r ${.ALLSRC:M*o} -o ${.TARGET}
__archiveinstall: .USE
${_MKTARGET_INSTALL}
${INSTALL_FILE} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
${SYSPKGTAG} ${.ALLSRC} ${DESTDIR}${LIBDIR}/${MODULE}.o
.endif
.include <bsd.lib.mk>