1*7c478bd9Sstevel@tonic-gate# 2*7c478bd9Sstevel@tonic-gate# CDDL HEADER START 3*7c478bd9Sstevel@tonic-gate# 4*7c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the 5*7c478bd9Sstevel@tonic-gate# Common Development and Distribution License, Version 1.0 only 6*7c478bd9Sstevel@tonic-gate# (the "License"). You may not use this file except in compliance 7*7c478bd9Sstevel@tonic-gate# with the License. 8*7c478bd9Sstevel@tonic-gate# 9*7c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10*7c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 11*7c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions 12*7c478bd9Sstevel@tonic-gate# and limitations under the License. 13*7c478bd9Sstevel@tonic-gate# 14*7c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 15*7c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16*7c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 17*7c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 18*7c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 19*7c478bd9Sstevel@tonic-gate# 20*7c478bd9Sstevel@tonic-gate# CDDL HEADER END 21*7c478bd9Sstevel@tonic-gate# 22*7c478bd9Sstevel@tonic-gate# 23*7c478bd9Sstevel@tonic-gate#ident "%Z%%M% %I% %E% SMI" 24*7c478bd9Sstevel@tonic-gate# 25*7c478bd9Sstevel@tonic-gate# Copyright (c) 1993,1998 by Sun Microsystems, Inc. 26*7c478bd9Sstevel@tonic-gate# 27*7c478bd9Sstevel@tonic-gate# cmd/backup/Makefile.backup 28*7c478bd9Sstevel@tonic-gate# 29*7c478bd9Sstevel@tonic-gate 30*7c478bd9Sstevel@tonic-gateinclude $(SRC)/cmd/Makefile.cmd 31*7c478bd9Sstevel@tonic-gate 32*7c478bd9Sstevel@tonic-gate# xxx should pass -Nlevel=4 (takes 62 minutes of cpu for lib and dump) 33*7c478bd9Sstevel@tonic-gateLINTFLAGS= -errchk=%all,longptr64 -errhdr=%user -F -m \ 34*7c478bd9Sstevel@tonic-gate -Ncheck=%all,no%extern -Nlevel=3 -Xtransition=yes \ 35*7c478bd9Sstevel@tonic-gate -errtags=yes -erroff=E_UNCAL_F,E_ASGN_RESET -s 36*7c478bd9Sstevel@tonic-gate# -c: continuation line indentation (broken for multi-line continuations) 37*7c478bd9Sstevel@tonic-gate# -h: heuristic checks (sometimes wrong) 38*7c478bd9Sstevel@tonic-gate# -p: extra-picky 39*7c478bd9Sstevel@tonic-gate# -v: verbose 40*7c478bd9Sstevel@tonic-gate# -C: ignore header block comments 41*7c478bd9Sstevel@tonic-gate# -P: check for non-POSIX types 42*7c478bd9Sstevel@tonic-gate#CSTYLEFLAGS= -c -h -p -v -P 43*7c478bd9Sstevel@tonic-gateCSTYLEFLAGS= -h -p -P 44*7c478bd9Sstevel@tonic-gate 45*7c478bd9Sstevel@tonic-gateUFSROOTETC= $(ROOT)/etc 46*7c478bd9Sstevel@tonic-gateUFSROOTUSR= $(ROOT)/usr 47*7c478bd9Sstevel@tonic-gateUFSROOTUSRLIB= $(UFSROOTUSR)/lib 48*7c478bd9Sstevel@tonic-gateUFSROOTUSRLIBFS= $(UFSROOTUSRLIB)/fs 49*7c478bd9Sstevel@tonic-gateUFSROOTUSRLIBFSTYPE= $(UFSROOTUSRLIBFS)/$(FSTYPE) 50*7c478bd9Sstevel@tonic-gateUFSROOTUSRSBIN= $(UFSROOTUSR)/sbin 51*7c478bd9Sstevel@tonic-gate 52*7c478bd9Sstevel@tonic-gate$(CH)$(UFSROOTETC) := DIRMODE = 755 53*7c478bd9Sstevel@tonic-gate$(UFSROOTETC) := OWNER = root 54*7c478bd9Sstevel@tonic-gate$(UFSROOTETC) := GROUP = sys 55*7c478bd9Sstevel@tonic-gate$(CH)$(UFSROOTUSR) := DIRMODE = 755 56*7c478bd9Sstevel@tonic-gate$(UFSROOTUSR) := OWNER = root 57*7c478bd9Sstevel@tonic-gate$(UFSROOTUSR) := GROUP = bin 58*7c478bd9Sstevel@tonic-gate$(CH)$(UFSROOTUSRLIB) := DIRMODE = 755 59*7c478bd9Sstevel@tonic-gate$(UFSROOTUSRLIB) := OWNER = root 60*7c478bd9Sstevel@tonic-gate$(UFSROOTUSRLIB) := GROUP = bin 61*7c478bd9Sstevel@tonic-gate$(CH)$(UFSROOTUSRLIBFS) := DIRMODE = 755 62*7c478bd9Sstevel@tonic-gate$(UFSROOTUSRLIBFS) := OWNER = root 63*7c478bd9Sstevel@tonic-gate$(UFSROOTUSRLIBFS) := GROUP = sys 64*7c478bd9Sstevel@tonic-gate$(CH)$(UFSROOTUSRLIBFSFSTYPE):= DIRMODE = 755 65*7c478bd9Sstevel@tonic-gate$(UFSROOTUSRLIBFSFSTYPE):= OWNER = root 66*7c478bd9Sstevel@tonic-gate$(UFSROOTUSRLIBFSFSTYPE):= GROUP = sys 67*7c478bd9Sstevel@tonic-gate$(CH)$(UFSROOTUSRSBIN) := DIRMODE = 755 68*7c478bd9Sstevel@tonic-gate$(UFSROOTUSRSBIN) := OWNER = root 69*7c478bd9Sstevel@tonic-gate$(UFSROOTUSRSBIN) := GROUP = bin 70*7c478bd9Sstevel@tonic-gate 71*7c478bd9Sstevel@tonic-gateUFSROOTPKGUSRLIBFSTYPE= $(PROG:%=$(UFSROOTUSRLIBFSTYPE)/%) 72*7c478bd9Sstevel@tonic-gateUFSROOTPKGETC= $(PROT:%=$(UFSROOTETC)/%) 73*7c478bd9Sstevel@tonic-gate 74*7c478bd9Sstevel@tonic-gate$(UFSROOTETC)/%: $(UFSROOTETC) % 75*7c478bd9Sstevel@tonic-gate $(INS.file) 76*7c478bd9Sstevel@tonic-gate 77*7c478bd9Sstevel@tonic-gate$(UFSROOTUSRLIBFSTYPE)/%: $(UFSROOTUSRLIBFSTYPE) % 78*7c478bd9Sstevel@tonic-gate $(INS.file) 79*7c478bd9Sstevel@tonic-gate 80*7c478bd9Sstevel@tonic-gate# set up TARGET macro for all Makefile here 81*7c478bd9Sstevel@tonic-gateall:= TARGET= all 82*7c478bd9Sstevel@tonic-gateinstall:= TARGET= install 83*7c478bd9Sstevel@tonic-gateclean:= TARGET= clean 84*7c478bd9Sstevel@tonic-gateclobber:= TARGET= clobber 85*7c478bd9Sstevel@tonic-gatelint:= TARGET= lint 86*7c478bd9Sstevel@tonic-gatedebug:= TARGET= debug 87*7c478bd9Sstevel@tonic-gatecheck:= TARGET= check 88*7c478bd9Sstevel@tonic-gate_msg:= TARGET= _msg 89*7c478bd9Sstevel@tonic-gate 90*7c478bd9Sstevel@tonic-gate# default dump library is the -O one 91*7c478bd9Sstevel@tonic-gateDUMPLIB= libdump.a 92*7c478bd9Sstevel@tonic-gate 93*7c478bd9Sstevel@tonic-gate# define the DO_SUBDIR macro, so that it can be changed here for all Makefiles 94*7c478bd9Sstevel@tonic-gateDO_SUBDIR= cd $@; pwd; $(MAKE) \ 95*7c478bd9Sstevel@tonic-gate LINTFLAGS="$(LINTFLAGS)" $(TARGET) 96*7c478bd9Sstevel@tonic-gateDO_LIBDIR= @cd $(@D); pwd; $(MAKE) LINTFLAGS="$(LINTFLAGS)" $(TARGET) 97