};
#endif /* AFS_SUN511_ENV */
-/* inter-module dependencies */
-char _depends_on[] =
-#if AFS_SUN510_ENV
- "drv/ip drv/udp strmod/rpcmod fs/ufs";
-#else
- "drv/ip drv/udp strmod/rpcmod";
-#endif
-
/*
* Info/Structs to link the afs module into the kernel
*/
<all>
CFLAGS=-I. -I.. -I${TOP_OBJDIR}/src/config ${FSINCLUDES} $(DEFINES) $(KDEFS) $(KOPTS) ${DBUG}
+<sun4x_58 sunx86_58 sun4x_59 sunx86_59>
+LDFLAGS=-r -dy -N drv/ip -N drv/udp -N strmod/rpcmod
+
+<sun4x_510 sunx86_510 sun4x_511 sunx86_511>
+LDFLAGS=-r -dy -N drv/ip -N drv/udp -N strmod/rpcmod -N fs/ufs
+
# Name of directory to hold object files and libraries.
<all -sun4x_510 sun4x_511 sunx86_511>
KOBJ = MODLOAD32 MODLOAD64
${LIBAFS}: $(AFSAOBJS) $(AFSNFSOBJS)
$(RM) -f $@
- $(LD) -r -o $@ $(AFSAOBJS) ${AFSNFSOBJS}
+ $(LD) $(LDFLAGS) -o $@ $(AFSAOBJS) ${AFSNFSOBJS}
${LIBAFSNONFS}: $(AFSAOBJS) $(AFSNONFSOBJS)
$(RM) -f $@
- $(LD) -r -o $@ $(AFSAOBJS) ${AFSNONFSOBJS}
+ $(LD) $(LDFLAGS) -o $@ $(AFSAOBJS) ${AFSNONFSOBJS}