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