venus-makefile-cleanup-20010829

cleanup and remove now unused for/do constructs
This commit is contained in:
Nathan Neulinger 2001-08-29 18:40:51 +00:00 committed by Derrick Brashear
parent 08ab25471c
commit 65bbcedf9a

View File

@ -12,7 +12,9 @@ SYS_NAME=@AFS_SYSNAME@
SHELL = /bin/sh SHELL = /bin/sh
LINUX_VERS=dummy LINUX_KERNEL_PATH=@LINUX_KERNEL_PATH@
LINUX_VERSION=@LINUX_VERSION@
include ../config/Makefile.${SYS_NAME} include ../config/Makefile.${SYS_NAME}
INSTALLex = ${INSTALL} -m 755 INSTALLex = ${INSTALL} -m 755
@ -57,16 +59,17 @@ CMLIBS = ${VLIB}/libsys.a \
LIBS = ${FSLIBS} LIBS = ${FSLIBS}
include ../config/Makefile.version all: install
#
# Build targets
#
cacheout: cacheout.o cacheout: cacheout.o
$(CC) ${CFLAGS} -o cacheout cacheout.o ${LIBS} ${XLIBS} ${CMLIBS} $(CC) ${CFLAGS} -o cacheout cacheout.o ${LIBS} ${XLIBS} ${CMLIBS}
cacheout.o: cacheout.c cacheout.o: cacheout.c
all: fs up cmdebug fstrace kdump gcpags kdump64 ${DESTDIR}/bin/fs ${DESTDIR}/root.server/usr/afs/bin/fs: fs
${DESTDIR}/bin/fs ${DESTDIR}root.server/usr/afs/bin/fs: fs
${INSTALL} -s $? $@ ${INSTALL} -s $? $@
${DESTDIR}/bin/up: up ${DESTDIR}/bin/up: up
@ -87,15 +90,13 @@ ${DESTDIR}/etc/kdump: kdump
ln -fs kdump.IP20 ${DESTDIR}/etc/kdump.IP22; \ ln -fs kdump.IP20 ${DESTDIR}/etc/kdump.IP22; \
ln -fs kdump.IP20 ${DESTDIR}/etc/kdump.IP32; \ ln -fs kdump.IP20 ${DESTDIR}/etc/kdump.IP32; \
for f in kdump.IP??; \ for f in kdump.IP??; \
do ${INSTALL} -s $$f ${DESTDIR}/etc/$$f || exit $$? ; \ do ${INSTALL} -s $$f ${DESTDIR}/etc/$$f || exit $$? ; \
done ;; \ done ;; \
sun4x_5[78] ) \ sun4x_5[78] ) \
${INSTALLex} -f kdump.sh.solaris7 $@; \ ${INSTALLex} -f kdump.sh.solaris7 $@; \
${INSTALL} -s -f $? ${DESTDIR}/etc/kdump32;; \ ${INSTALL} -s -f $? ${DESTDIR}/etc/kdump32;; \
*linux* ) \ *linux* ) \
for lv in ${LINUX_VERS}; do \ ${INSTALL} -s kdump-${LINUX_VERSION} ${DESTDIR}/etc/kdump-${LINUX_VERSION} ;; \
${INSTALL} -s kdump-$$lv ${DESTDIR}/etc/kdump-$$lv ; \
done ;; \
hp_ux11* ) \ hp_ux11* ) \
${INSTALLex} -f kdump.sh.hp_ux11 $@; \ ${INSTALLex} -f kdump.sh.hp_ux11 $@; \
${INSTALL} -s -f $? ${DESTDIR}/etc/kdump32;; \ ${INSTALL} -s -f $? ${DESTDIR}/etc/kdump32;; \
@ -113,12 +114,6 @@ ${DESTDIR}/etc/kdump64: kdump64
esac esac
install: all ${DESTDIR}/bin/fs ${DESTDIR}root.server/usr/afs/bin/fs \
${DESTDIR}/bin/up ${DESTDIR}/etc/fstrace ${DESTDIR}/bin/cmdebug \
${DESTDIR}/etc/kdump ${DESTDIR}/etc/kdump64
system: install
up.o: up.c AFS_component_version_number.c up.o: up.c AFS_component_version_number.c
up: up.o up: up.o
@ -169,13 +164,9 @@ kdump.o: kdump.c ${INCLS} AFS_component_version_number.c
-set -x; \ -set -x; \
case ${SYS_NAME} in \ case ${SYS_NAME} in \
alpha_linux* ) \ alpha_linux* ) \
for lv in ${LINUX_VERS}; do \ ${CC} -g -I${LINUX_KERNEL_PATH}/include -I${DESTDIR}/include -I${TOP_SRCDIR}/config -I${SRCDIR}/include ${XCFLAGS} -mno-fp-regs -ffixed-8 -o kdump-${LINUX_VERSION}.o -c kdump.c ;; \
${CC} -g -I${LINUX_SRCDIR}$$lv/include -I${DESTDIR}/include -I${TOP_SRCDIR}/config -I${SRCDIR}/include ${XCFLAGS} -mno-fp-regs -ffixed-8 -o kdump-$$lv.o -c kdump.c ; \
done ;; \
*linux* ) \ *linux* ) \
for lv in ${LINUX_VERS}; do \ ${CC} -g -I${LINUX_KERNEL_PATH}/include -I${DESTDIR}/include -I${TOP_SRCDIR}/config -I${SRCDIR}/include ${XCFLAGS} -o kdump-${LINUX_VERSION}.o -c kdump.c ;; \
${CC} -g -I${LINUX_SRCDIR}$$lv/include -I${DESTDIR}/include -I${TOP_SRCDIR}/config -I${SRCDIR}/include ${XCFLAGS} -o kdump-$$lv.o -c kdump.c ; \
done ;; \
alpha_osf1 | alpha_osf20 | alpha_osf30 | alpha_osf32 | alpha_osf32c| alpha_dux?? ) \ alpha_osf1 | alpha_osf20 | alpha_osf30 | alpha_osf32 | alpha_osf32c| alpha_dux?? ) \
${CC} -g ${CFLAGS} -I/usr/sys/include -I/usr/sys/BINARY -I/usr/sys/AFS -DDEBUGGER -c kdump.c ;;\ ${CC} -g ${CFLAGS} -I/usr/sys/include -I/usr/sys/BINARY -I/usr/sys/AFS -DDEBUGGER -c kdump.c ;;\
sgi_6? ) \ sgi_6? ) \
@ -240,9 +231,7 @@ kdump: kdump.o
esac || exit $$? ; \ esac || exit $$? ; \
done ;; \ done ;; \
*linux* ) \ *linux* ) \
for lv in ${LINUX_VERS}; do \ ${CC} -g -o kdump-${LINUX_VERSION} kdump-${LINUX_VERSION}.o ${DESTDIR}/lib/afs/libcmd.a ${DESTDIR}/lib/afs/util.a ${XLIBS} ;; \
${CC} -g -o kdump-$$lv kdump-$$lv.o ${DESTDIR}/lib/afs/libcmd.a ${DESTDIR}/lib/afs/util.a ${XLIBS} ; \
done ;; \
alpha_osf1 | alpha_osf20 | alpha_osf30 | alpha_osf32 | alpha_osf32c | alpha_dux??) \ alpha_osf1 | alpha_osf20 | alpha_osf30 | alpha_osf32 | alpha_osf32c | alpha_dux??) \
${CC} -g -o kdump kdump.o ${DESTDIR}/lib/afs/libcmd.a ${DESTDIR}/lib/afs/util.a ${XLIBS} -ll -lmld;; \ ${CC} -g -o kdump kdump.o ${DESTDIR}/lib/afs/libcmd.a ${DESTDIR}/lib/afs/util.a ${XLIBS} -ll -lmld;; \
ncrx86_* ) ${CC} -g -o kdump kdump.o ${DESTDIR}/lib/afs/libcmd.a ${DESTDIR}/lib/afs/util.a -lelf ${XLIBS} ;; \ ncrx86_* ) ${CC} -g -o kdump kdump.o ${DESTDIR}/lib/afs/libcmd.a ${DESTDIR}/lib/afs/util.a -lelf ${XLIBS} ;; \
@ -258,9 +247,26 @@ kdump64 : kdump64.o
${CC} -g ${XCFLAGS64} -o kdump64 kdump64.o ${DESTDIR}/lib/afs/libcmd64.a ${XLIBELFA} ${XLIBKVM} ${XLIBS} ;; \ ${CC} -g ${XCFLAGS64} -o kdump64 kdump64.o ${DESTDIR}/lib/afs/libcmd64.a ${XLIBELFA} ${XLIBKVM} ${XLIBS} ;; \
esac esac
#
# Install targets
#
install: ${DESTDIR}/bin/fs \
${DESTDIR}/root.server/usr/afs/bin/fs \
${DESTDIR}/bin/up \
${DESTDIR}/etc/fstrace \
${DESTDIR}/bin/cmdebug \
${DESTDIR}/etc/kdump \
${DESTDIR}/etc/kdump64
#
# Misc targets
#
clean: clean:
rm -f *.o *.a up fs 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
test: test:
cd test; $(MAKE) cd test; $(MAKE)
include ../config/Makefile.version