${DEST}/bin/cmdebug: cmdebug
${INSTALL} -s $? $@
+${DEST}/bin/dedebug: dedebug
+ ${INSTALL} -s $? $@
up.o: up.c AFS_component_version_number.c
cmdebug: cmdebug.o ${CMLIBS}
$(CC) -o cmdebug cmdebug.o ${CFLAGS} ${CMLIBS} ${XLIBS}
+dedebug.o: dedebug.c ${INCLS} AFS_component_version_number.c
+
+dedebug: dedebug.o ${CMLIBS}
+ $(CC) -o dedebug dedebug.o ${CFLAGS} ${CMLIBS} ${XLIBS}
+
#
kdump-build: kdump.c ${INCLS} AFS_component_version_number.c
$(MAKE) kdump kdump64
touch kdump-build
-
+
#
# Build targets - one for each type of kdump build process we have
#
case ${SYS_NAME} in \
sun4c_51 | sun4c_52 | sun4m_51 | sun4m_52 | sun4c_53 | sun4m_53 | sun4_53 | sun4_54 | sun4c_54 | sun4m_54 | sunx86_5? ) \
${CC} -o kdump kdump.o ${TOP_LIBDIR}/libcmd.a ${TOP_LIBDIR}/util.a /usr/lib/libkvm.a -lelf ${XLIBS} ;; \
- sun*_5? ) \
+ sun*_5? | sun*_5?? ) \
${CC} -o kdump kdump.o ${TOP_LIBDIR}/libcmd.a ${TOP_LIBDIR}/util.a ${XLIBELFA} ${XLIBKVM} ${XLIBS} ;; \
sgi_6? ) \
for f in ../libafs/STATIC.IP*/CPU_KDEFS; \
kdump64:
-set -x; \
case ${SYS_NAME} in \
- sun4x_5[789] | hp_ux11* |sunx86_5[789] ) \
+ sun4x_5[789] | sun4x_510 | hp_ux11* | sunx86_5[789] | sunx86_510 ) \
$(MAKE) kdump64.o ; \
${CC} ${XCFLAGS64} -o kdump64 kdump64.o ${TOP_LIBDIR}/libcmd64.a ${XLIBELFA} ${XLIBKVM} ${XLIBS} ;; \
esac
kdump64.o : kdump.c ${INCLS} AFS_component_version_number.c
-set -x; \
case ${SYS_NAME} in \
- sun4x_5[789] | hp_ux11* |sunx86_5[789] ) \
+ sun4x_5[789] | sun4x_510 | hp_ux11* | sunx86_5[789] | sunx86_510 ) \
${CC} ${KERN_DBG} ${KERN_OPTMZ} -I${TOP_SRCDIR} -I${TOP_INCDIR}/afs \
-I${TOP_OBJDIR}/src/config -I${TOP_OBJDIR}/src -I${TOP_INCDIR} ${XCFLAGS64} \
-o kdump64.o -c ${srcdir}/kdump.c ;; \
for f in kdump.IP??; \
do ${INSTALL} -s $$f ${DEST}/etc/$$f || exit $$? ; \
done ;; \
- sun*_5[789] ) \
+ sun*_5[789] | sun*_510 ) \
${INSTALLex} -f ${srcdir}/kdump.sh.solaris7 ${DEST}/etc/kdump; \
- ${INSTALL} -s -f $? $@;; \
+ ${INSTALL} -s -f ${srcdir}/kdump ${DEST}/etc/kdump32;; \
*alpha_linux* ) \
${INSTALLex} -f ${srcdir}/kdump.sh.linux ${DEST}/etc/kdump; \
${INSTALL} -s kdump-alpha_linux-${LINUX_VERSION} $@ ;; \
*linux* ) \
${INSTALLex} -f ${srcdir}/kdump.sh.linux ${DEST}/etc/kdump; \
- ${INSTALL} -s kdump-linux-${LINUX_VERSION} $@ ;; \
+ ${INSTALL} -s kdump-linux-${LINUX_VERSION} $@-${LINUX_VERSION} ;; \
hp_ux11* ) \
${INSTALLex} -f ${srcdir}/kdump.sh.hp_ux11 ${DEST}/etc/kdump; \
${INSTALL} -s -f $? $@;; \
#
clean:
- $(RM) -f *.o *.a up fs kdump-* kdump kdump64 core cmdebug AFS_component_version_number.c fstrace gcpags
+ $(RM) -f *.o *.a up fs kdump-* kdump kdump64 core cmdebug AFS_component_version_number.c fstrace gcpags livesys dedebug
test:
cd test; $(MAKE)
${DESTDIR}${bindir}/cmdebug: cmdebug
${INSTALL} -s $? $@
+${DESTDIR}${bindir}/dedebug: dedebug
+ ${INSTALL} -s $? $@
+
${DESTDIR}${sbindir}/kdump: kdump-build
-set -x; \
case ${SYS_NAME} in \
for f in kdump.IP??; \
do ${INSTALL} -s $$f ${DESTDIR}${sbindir}/$$f || exit $$? ; \
done ;; \
- sun*_5[789] ) \
+ sun*_5[789] | sun*_510 ) \
${INSTALLex} -f kdump.sh.solaris7 ${DESTDIR}${sbindir}/kdump32; \
${INSTALL} -s -f $? $@;; \
*linux* ) \