xref: /titanic_50/usr/src/cmd/sgs/link_audit/Makefile (revision fa9e4066f08beec538e775443c5be79dd423fcab)
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 2004 Sun Microsystems, Inc.  All rights reserved.
26# Use is subject to license terms.
27#
28
29include		../../../Makefile.master
30
31ROOTDEMODIRBASE=	$(ROOT)/usr/demo/link_audit
32
33DEMOFILES= \
34		00README \
35		Makefile \
36		man/perfcnt.man \
37		man/symbindrep.man \
38		man/dumpbind.man \
39		src/bindings.c \
40		src/bindings.h \
41		src/dumpbind.c \
42		src/env.c \
43		src/env.h \
44		src/hash.c \
45		src/hash.h \
46		src/sotruss.ksh \
47		src/mach.h \
48		src/perfcnt.c \
49		src/perfcnt.ksh \
50		src/symbindrep.c \
51		src/symbindrep.ksh \
52		src/truss.c \
53		src/who.c \
54		src/who.h \
55		src/whocalls.ksh
56
57ROOTDEMODIRS=	$(ROOTDEMODIRBASE) .WAIT \
58		$(ROOTDEMODIRBASE)/man \
59		$(ROOTDEMODIRBASE)/src
60
61ROOTDEMOFILES=	$(DEMOFILES:%=$(ROOTDEMODIRBASE)/%)
62
63$(ROOTDEMODIRS) :=	OWNER =		root
64$(ROOTDEMODIRS) :=	GROUP =		bin
65$(ROOTDEMODIRS) :=	DIRMODE =	755
66
67
68
69SUBDIRS=	$(MACH)
70
71all:=		TARGET=	all
72install:=	TARGET=	install
73package:=	TARGET=	package
74clean:=		TARGET=	clean
75clobber:=	TARGET=	clobber
76lint:=		TARGET=	lint
77
78.PARALLEL: $(ROOTDEMOFILES)
79
80.KEEP_STATE:
81
82package all clean clobber lint install: \
83	$(ROOTDEMODIRS) .WAIT $(SUBDIRS) $(ROOTDEMOFILES)
84
85$(SUBDIRS):	FRC
86		@cd $@; pwd; $(MAKE) $(TARGET)
87		@if [ -d $(MACH64) ]; then                      \
88			cd $(MACH64); pwd; $(MAKE) $(TARGET);   \
89		else /bin/true; fi
90
91$(ROOTDEMODIRS):
92	$(INS.dir)
93
94$(ROOTDEMODIRBASE)/man/%: man/%
95	$(INS.file)
96
97$(ROOTDEMODIRBASE)/src/%: common/%
98	$(INS.file)
99
100$(ROOTDEMODIRBASE)/%: common/%
101	$(INS.file)
102
103$(ROOTDEMODIRBASE)/%: common/%.demo
104	$(INS.rename)
105
106FRC:
107