xref: /titanic_52/usr/src/cmd/sgs/link_audit/Makefile.targ (revision d50bcaae2118610560f2b107d0d282315e47e4e4)
17c478bd9Sstevel@tonic-gate#
27c478bd9Sstevel@tonic-gate# CDDL HEADER START
37c478bd9Sstevel@tonic-gate#
47c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the
5f808c858Sraf# Common Development and Distribution License (the "License").
6f808c858Sraf# You may not use this file except in compliance with the License.
77c478bd9Sstevel@tonic-gate#
87c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
97c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
107c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions
117c478bd9Sstevel@tonic-gate# and limitations under the License.
127c478bd9Sstevel@tonic-gate#
137c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
147c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
157c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
167c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
177c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
187c478bd9Sstevel@tonic-gate#
197c478bd9Sstevel@tonic-gate# CDDL HEADER END
207c478bd9Sstevel@tonic-gate#
217c478bd9Sstevel@tonic-gate#
221dd08564Sab196087# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
237c478bd9Sstevel@tonic-gate# Use is subject to license terms.
247c478bd9Sstevel@tonic-gate#
25*d50bcaaeSAndrew Stormont# Copyright 2015 RackTop Systems.
267c478bd9Sstevel@tonic-gate#
277c478bd9Sstevel@tonic-gate
287c478bd9Sstevel@tonic-gate%:	../common/%.ksh
297c478bd9Sstevel@tonic-gate	$(RM) $@
307c478bd9Sstevel@tonic-gate	cat $< > $@
317c478bd9Sstevel@tonic-gate	chmod +x $@
327c478bd9Sstevel@tonic-gate
337c478bd9Sstevel@tonic-gate$(PICDIR)/%.o:	%.c
347c478bd9Sstevel@tonic-gate		$(COMPILE.c) $< -o $@
357c478bd9Sstevel@tonic-gate		$(POST_PROCESS_O)
367c478bd9Sstevel@tonic-gate
377c478bd9Sstevel@tonic-gate$(PICDIR)/%.o:	../common/%.c
387c478bd9Sstevel@tonic-gate		$(COMPILE.c) $< -o $@
397c478bd9Sstevel@tonic-gate		$(POST_PROCESS_O)
407c478bd9Sstevel@tonic-gate
417c478bd9Sstevel@tonic-gate$(OBJDIR)/%.o:	%.c
427c478bd9Sstevel@tonic-gate		$(COMPILE.c) $< -o $@
437c478bd9Sstevel@tonic-gate		$(POST_PROCESS_O)
447c478bd9Sstevel@tonic-gate
457c478bd9Sstevel@tonic-gate$(OBJDIR)/%.o: ../common/%.c
467c478bd9Sstevel@tonic-gate		$(COMPILE.c) $< -o $@
477c478bd9Sstevel@tonic-gate		$(POST_PROCESS_O)
487c478bd9Sstevel@tonic-gate
49f808c858Sraf$(TRUSSLIB): $(TRUSSPICS)
507c478bd9Sstevel@tonic-gate		$(BUILD.SO)
517c478bd9Sstevel@tonic-gate		$(POST_PROCESS_SO)
527c478bd9Sstevel@tonic-gate
53f808c858Sraf$(BINDLIB): $(BINDPICS)
547c478bd9Sstevel@tonic-gate		$(BUILD.SO)
557c478bd9Sstevel@tonic-gate		$(POST_PROCESS_SO)
567c478bd9Sstevel@tonic-gate
57f808c858Sraf$(SYMBINDREP): $(SYMBINDREPPICS)
587c478bd9Sstevel@tonic-gate		$(BUILD.SO)
597c478bd9Sstevel@tonic-gate		$(POST_PROCESS_SO)
607c478bd9Sstevel@tonic-gate
61f808c858Sraf$(PERFLIB): $(PERFPICS)
627c478bd9Sstevel@tonic-gate		$(BUILD.SO)
637c478bd9Sstevel@tonic-gate		$(POST_PROCESS_SO)
647c478bd9Sstevel@tonic-gate
65f808c858Sraf$(WHOLIB): $(WHOPICS)
667c478bd9Sstevel@tonic-gate		$(BUILD.SO)
677c478bd9Sstevel@tonic-gate		$(POST_PROCESS_SO)
687c478bd9Sstevel@tonic-gate
697c478bd9Sstevel@tonic-gatedumpbind: $(OBJDIR)/dumpbind.o
70*d50bcaaeSAndrew Stormont		$(LINK.c) -o $@ $(OBJDIR)/dumpbind.o $(LDLIBS)
717c478bd9Sstevel@tonic-gate		$(POST_PROCESS)
727c478bd9Sstevel@tonic-gate
737c478bd9Sstevel@tonic-gate$(ROOTUSRBIN)/%: %
747c478bd9Sstevel@tonic-gate		$(INS.file)
757c478bd9Sstevel@tonic-gate
767c478bd9Sstevel@tonic-gate$(ROOTCCSLIB)/%: %
777c478bd9Sstevel@tonic-gate		$(INS.file)
787c478bd9Sstevel@tonic-gate
797c478bd9Sstevel@tonic-gate$(ROOTCCSLIB64)/%: %
807c478bd9Sstevel@tonic-gate		$(INS.file)
817c478bd9Sstevel@tonic-gate
827c478bd9Sstevel@tonic-gate$(ROOTONLDBIN)/%: %
837c478bd9Sstevel@tonic-gate		$(INS.file)
847c478bd9Sstevel@tonic-gate
857c478bd9Sstevel@tonic-gate$(ROOTONLDLIB)/%: %
867c478bd9Sstevel@tonic-gate		$(INS.file)
877c478bd9Sstevel@tonic-gate
887c478bd9Sstevel@tonic-gate$(ROOTONLDLIB64)/%: %
897c478bd9Sstevel@tonic-gate		$(INS.file)
907c478bd9Sstevel@tonic-gate
917c478bd9Sstevel@tonic-gate$(ROOTCCSLIB):
927c478bd9Sstevel@tonic-gate	$(INS.dir)
937c478bd9Sstevel@tonic-gate
947c478bd9Sstevel@tonic-gate$(ROOTCCSLIB64):
957c478bd9Sstevel@tonic-gate	$(INS.dir)
967c478bd9Sstevel@tonic-gate
971dd08564Sab196087LINT_HDR=	perl ../../tools/lint_hdr.pl
981dd08564Sab196087
997c478bd9Sstevel@tonic-gatelint:
1001dd08564Sab196087		$(LINT_HDR) link_audit			 > $(LINTOUT)
1011dd08564Sab196087		$(LINT_HDR) -s truss.so.1		>> $(LINTOUT)
1027c478bd9Sstevel@tonic-gate		$(LINT.c) ../common/truss.c \
1031dd08564Sab196087			../common/env.c 		2>&1 | tee -a $(LINTOUT)
1041dd08564Sab196087
1051dd08564Sab196087		$(LINT_HDR) -s symbindrep.so.1		>> $(LINTOUT)
1067c478bd9Sstevel@tonic-gate		$(LINT.c) ../common/symbindrep.c \
1071dd08564Sab196087			../common/env.c			2>&1 | tee -a $(LINTOUT)
1081dd08564Sab196087
1091dd08564Sab196087		$(LINT_HDR) -s perfcnt.so.1		>> $(LINTOUT)
1107c478bd9Sstevel@tonic-gate		$(LINT.c) ../common/perfcnt.c \
1117c478bd9Sstevel@tonic-gate			../common/hash.c \
1121dd08564Sab196087			../common/env.c			2>&1 | tee -a $(LINTOUT)
1131dd08564Sab196087
1141dd08564Sab196087		$(LINT_HDR) -s who.so.1			>> $(LINTOUT)
1157c478bd9Sstevel@tonic-gate		$(LINT.c) ../common/who.c \
1161dd08564Sab196087			../common/env.c			2>&1 | tee -a $(LINTOUT)
1171dd08564Sab196087
1181dd08564Sab196087		$(LINT_HDR) -s dumpbind			>> $(LINTOUT)
1191dd08564Sab196087		$(LINT.c) ../common/dumpbind.c		2>&1 | tee -a $(LINTOUT)
1201dd08564Sab196087
1211dd08564Sab196087		$(LINT_HDR) -s bindings.so.1		>> $(LINTOUT)
1227c478bd9Sstevel@tonic-gate		$(LINT.c) ../common/bindings.c \
1231dd08564Sab196087			../common/env.c			2>&1 | tee -a $(LINTOUT)
1247c478bd9Sstevel@tonic-gate
1257c478bd9Sstevel@tonic-gateinclude		../../../../lib/Makefile.targ
126