Makefile revision 24fe0b3bf671e123467ce1df0b67cadd3614c8e4
080575042aba2197b425ebfd52061dea061a9aa1xy# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
080575042aba2197b425ebfd52061dea061a9aa1xy# Use is subject to license terms.
080575042aba2197b425ebfd52061dea061a9aa1xy# Copyright (c) 1980 Regents of the University of California.
080575042aba2197b425ebfd52061dea061a9aa1xy# All rights reserved. The Berkeley software License Agreement
d5c3073dbbd835e1e9b7dca0c6c770cf3cc20afachenlu chen - Sun Microsystems - Beijing China# specifies the terms and conditions for redistribution.
080575042aba2197b425ebfd52061dea061a9aa1xy# dump.h header file
080575042aba2197b425ebfd52061dea061a9aa1xy# dumponline.c online dump support
080575042aba2197b425ebfd52061dea061a9aa1xy# dumpoptr.c operator interface
080575042aba2197b425ebfd52061dea061a9aa1xy# dumptape.c handles the mag tape and opening/closing
080575042aba2197b425ebfd52061dea061a9aa1xy# dumptraverse.c traverses the file system
080575042aba2197b425ebfd52061dea061a9aa1xy# lftw.c fixed version of ftw(3)
080575042aba2197b425ebfd52061dea061a9aa1xy# partial.c partial filesystem dump support
d5c3073dbbd835e1e9b7dca0c6c770cf3cc20afachenlu chen - Sun Microsystems - Beijing China# unctime.c undo ctime
080575042aba2197b425ebfd52061dea061a9aa1xy# CPPFLAGS:
080575042aba2197b425ebfd52061dea061a9aa1xy# DEBUG use local directory to find ddate and dumpdates
080575042aba2197b425ebfd52061dea061a9aa1xy# PARTIAL enable partial filesystem dump support
080575042aba2197b425ebfd52061dea061a9aa1xy# TDEBUG trace out the process forking
080575042aba2197b425ebfd52061dea061a9aa1xy# CAUTION: FSTYPE must be defined before including ../Makefile.backup,
080575042aba2197b425ebfd52061dea061a9aa1xy# otherwise UFSROOTPKGUSRLIBFSTYPE doesn't get expanded
080575042aba2197b425ebfd52061dea061a9aa1xy# properly and the magic doesn't happen.
080575042aba2197b425ebfd52061dea061a9aa1xy#CFLAGS += -DTDEBUG
080575042aba2197b425ebfd52061dea061a9aa1xyLOBJECTS= dumponline.o dumpfstab.o dumpitime.o dumpmain.o \
080575042aba2197b425ebfd52061dea061a9aa1xy# XXX This is only needed for the check: target. It would be nice to
080575042aba2197b425ebfd52061dea061a9aa1xy# XXX automatically generate the list when needed.
080575042aba2197b425ebfd52061dea061a9aa1xy ../../fs.d/ufs/roll_log/roll_log.h ../include/byteorder.h \
080575042aba2197b425ebfd52061dea061a9aa1xyCLOBBERFILES= $(PRODUCT) $(DEBUGPRODUCTS) dumpdates *.ln $(POFILES)
080575042aba2197b425ebfd52061dea061a9aa1xyinstall: all $(LIBDIR) $(UFSROOTPKGUSRLIBFSTYPE) dumpdates \
080575042aba2197b425ebfd52061dea061a9aa1xy#XXX Should actually note return value from close(2), particularly regarding
080575042aba2197b425ebfd52061dea061a9aa1xy#XXX tape descriptors. Some drives don't actually force anything to media
080575042aba2197b425ebfd52061dea061a9aa1xy#XXX except when they are writing a file mark....
080575042aba2197b425ebfd52061dea061a9aa1xy# grep is looking for non-space/tab
080575042aba2197b425ebfd52061dea061a9aa1xy cd $(ROLLDIR) ; pwd ; $(MAKE) `echo $(ROLLPOFILES) | sed -e 's@$(ROLLDIR)/@@g'`