8322 nl: misleading-indentation
[unleashed/tickless.git] / usr / src / cmd / sgs / link_audit / Makefile.targ
blob42dff453bef8d58d610b8092cbed8080afa81291
2 # CDDL HEADER START
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
19 # CDDL HEADER END
22 # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
23 # Use is subject to license terms.
25 # Copyright 2015 RackTop Systems.
28 %:      ../common/%.ksh
29         $(RM) $@
30         cat $< > $@
31         chmod +x $@
33 $(PICDIR)/%.o:  %.c
34                 $(COMPILE.c) $< -o $@
35                 $(POST_PROCESS_O)
37 $(PICDIR)/%.o:  ../common/%.c
38                 $(COMPILE.c) $< -o $@
39                 $(POST_PROCESS_O)
41 $(OBJDIR)/%.o:  %.c
42                 $(COMPILE.c) $< -o $@
43                 $(POST_PROCESS_O)
45 $(OBJDIR)/%.o: ../common/%.c
46                 $(COMPILE.c) $< -o $@
47                 $(POST_PROCESS_O)
49 $(TRUSSLIB): $(TRUSSPICS)
50                 $(BUILD.SO)
51                 $(POST_PROCESS_SO)
53 $(BINDLIB): $(BINDPICS)
54                 $(BUILD.SO)
55                 $(POST_PROCESS_SO)
57 $(SYMBINDREP): $(SYMBINDREPPICS)
58                 $(BUILD.SO)
59                 $(POST_PROCESS_SO)
61 $(PERFLIB): $(PERFPICS)
62                 $(BUILD.SO)
63                 $(POST_PROCESS_SO)
65 $(WHOLIB): $(WHOPICS)
66                 $(BUILD.SO)
67                 $(POST_PROCESS_SO)
69 dumpbind: $(OBJDIR)/dumpbind.o
70                 $(LINK.c) -o $@ $(OBJDIR)/dumpbind.o $(LDLIBS)
71                 $(POST_PROCESS)
73 $(ROOTUSRBIN)/%: %
74                 $(INS.file)
76 $(ROOTCCSLIB)/%: %
77                 $(INS.file)
79 $(ROOTCCSLIB64)/%: %
80                 $(INS.file)
82 $(ROOTONLDBIN)/%: %
83                 $(INS.file)
85 $(ROOTONLDLIB)/%: %
86                 $(INS.file)
88 $(ROOTONLDLIB64)/%: %
89                 $(INS.file)
91 $(ROOTCCSLIB):
92         $(INS.dir)
94 $(ROOTCCSLIB64):
95         $(INS.dir)
97 LINT_HDR=       perl ../../tools/lint_hdr.pl
99 lint:
100                 $(LINT_HDR) link_audit                   > $(LINTOUT)
101                 $(LINT_HDR) -s truss.so.1               >> $(LINTOUT)
102                 $(LINT.c) ../common/truss.c \
103                         ../common/env.c                 2>&1 | tee -a $(LINTOUT)
105                 $(LINT_HDR) -s symbindrep.so.1          >> $(LINTOUT)
106                 $(LINT.c) ../common/symbindrep.c \
107                         ../common/env.c                 2>&1 | tee -a $(LINTOUT)
109                 $(LINT_HDR) -s perfcnt.so.1             >> $(LINTOUT)
110                 $(LINT.c) ../common/perfcnt.c \
111                         ../common/hash.c \
112                         ../common/env.c                 2>&1 | tee -a $(LINTOUT)
114                 $(LINT_HDR) -s who.so.1                 >> $(LINTOUT)
115                 $(LINT.c) ../common/who.c \
116                         ../common/env.c                 2>&1 | tee -a $(LINTOUT)
118                 $(LINT_HDR) -s dumpbind                 >> $(LINTOUT)
119                 $(LINT.c) ../common/dumpbind.c          2>&1 | tee -a $(LINTOUT)
121                 $(LINT_HDR) -s bindings.so.1            >> $(LINTOUT)
122                 $(LINT.c) ../common/bindings.c \
123                         ../common/env.c                 2>&1 | tee -a $(LINTOUT)
125 include         ../../../../lib/Makefile.targ