xref: /titanic_52/usr/src/cmd/sgs/link_audit/Makefile.targ (revision 25cf1a301a396c38e8adf52c15f537b80d2483f7)
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# Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26# ident	"%Z%%M%	%I%	%E% SMI"
27#
28
29%:	../common/%.ksh
30	$(RM) $@
31	cat $< > $@
32	chmod +x $@
33
34$(PICDIR)/%.o:	%.c
35		$(COMPILE.c) $< -o $@
36		$(POST_PROCESS_O)
37
38$(PICDIR)/%.o:	../common/%.c
39		$(COMPILE.c) $< -o $@
40		$(POST_PROCESS_O)
41
42$(OBJDIR)/%.o:	%.c
43		$(COMPILE.c) $< -o $@
44		$(POST_PROCESS_O)
45
46$(OBJDIR)/%.o: ../common/%.c
47		$(COMPILE.c) $< -o $@
48		$(POST_PROCESS_O)
49
50$(TRUSSLIB): $(TRUSSPICS) $$(MAPFILE)
51		$(BUILD.SO)
52		$(POST_PROCESS_SO)
53
54$(BINDLIB): $(BINDPICS) $$(MAPFILE)
55		$(BUILD.SO)
56		$(POST_PROCESS_SO)
57
58$(SYMBINDREP): $(SYMBINDREPPICS) $$(MAPFILE)
59		$(BUILD.SO)
60		$(POST_PROCESS_SO)
61
62$(PERFLIB): $(PERFPICS) $$(MAPFILE)
63		$(BUILD.SO)
64		$(POST_PROCESS_SO)
65
66$(WHOLIB): $(WHOPICS) $$(MAPFILE)
67		$(BUILD.SO)
68		$(POST_PROCESS_SO)
69
70dumpbind: $(OBJDIR)/dumpbind.o
71		$(LINK.c) -o $@ $(OBJDIR)/dumpbind.o
72		$(POST_PROCESS)
73
74$(ROOTUSRBIN)/%: %
75		$(INS.file)
76
77$(ROOTCCSLIB)/%: %
78		$(INS.file)
79
80$(ROOTCCSLIB64)/%: %
81		$(INS.file)
82
83$(ROOTONLDBIN)/%: %
84		$(INS.file)
85
86$(ROOTONLDLIB)/%: %
87		$(INS.file)
88
89$(ROOTONLDLIB64)/%: %
90		$(INS.file)
91
92$(ROOTCCSLIB):
93	$(INS.dir)
94
95$(ROOTCCSLIB64):
96	$(INS.dir)
97
98lint:
99		@echo "\nLint of: truss.so.1"		 > $(LINTOUT)
100		@echo "========================"	>> $(LINTOUT)
101		$(LINT.c) ../common/truss.c \
102			../common/env.c 		>> $(LINTOUT) 2>&1
103		@echo "\nLint of: symbindrep.so.1"	>> $(LINTOUT)
104		@echo "========================"	>> $(LINTOUT)
105		$(LINT.c) ../common/symbindrep.c \
106			../common/env.c			>> $(LINTOUT) 2>&1
107		@echo "\nLint of: perfcnt.so.1"		>> $(LINTOUT)
108		@echo "========================"	>> $(LINTOUT)
109		$(LINT.c) ../common/perfcnt.c \
110			../common/hash.c \
111			../common/env.c			>> $(LINTOUT) 2>&1
112		@echo "\nLint of: who.so.1"		>> $(LINTOUT)
113		@echo "========================"	>> $(LINTOUT)
114		$(LINT.c) ../common/who.c \
115			../common/env.c			>> $(LINTOUT) 2>&1
116		@echo "\nLint of: dumpbind"		>> $(LINTOUT)
117		@echo "========================"	>> $(LINTOUT)
118		$(LINT.c) ../common/dumpbind.c		>> $(LINTOUT) 2>&1
119		@echo "\nLint of: bindings.so.1"	>> $(LINTOUT)
120		@echo "========================"	>> $(LINTOUT)
121		$(LINT.c) ../common/bindings.c \
122			../common/env.c			>> $(LINTOUT) 2>&1
123
124include		../../../../lib/Makefile.targ
125