xref: /illumos-gate/usr/src/cmd/sgs/link_audit/Makefile (revision d8e10381)
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
575e45495Sab# Common Development and Distribution License (the "License").
675e45495Sab# 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#
2124fe0b3bSjmcp# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
227c478bd9Sstevel@tonic-gate# Use is subject to license terms.
237c478bd9Sstevel@tonic-gate#
24cf9a187cSAndy Fiddaman# Copyright 2019 OmniOS Community Edition (OmniOSce) Association.
25cf9a187cSAndy Fiddaman#
267c478bd9Sstevel@tonic-gate
277c478bd9Sstevel@tonic-gateinclude		../../../Makefile.master
287c478bd9Sstevel@tonic-gate
297c478bd9Sstevel@tonic-gateROOTDEMODIRBASE=	$(ROOT)/usr/demo/link_audit
307c478bd9Sstevel@tonic-gate
317c478bd9Sstevel@tonic-gateDEMOFILES= \
327c478bd9Sstevel@tonic-gate		00README \
337c478bd9Sstevel@tonic-gate		Makefile \
347c478bd9Sstevel@tonic-gate		man/perfcnt.man \
357c478bd9Sstevel@tonic-gate		man/symbindrep.man \
367c478bd9Sstevel@tonic-gate		man/dumpbind.man \
377c478bd9Sstevel@tonic-gate		src/bindings.c \
387c478bd9Sstevel@tonic-gate		src/bindings.h \
397c478bd9Sstevel@tonic-gate		src/dumpbind.c \
407c478bd9Sstevel@tonic-gate		src/env.c \
417c478bd9Sstevel@tonic-gate		src/env.h \
427c478bd9Sstevel@tonic-gate		src/hash.c \
437c478bd9Sstevel@tonic-gate		src/hash.h \
447c478bd9Sstevel@tonic-gate		src/sotruss.ksh \
457c478bd9Sstevel@tonic-gate		src/mach.h \
467c478bd9Sstevel@tonic-gate		src/perfcnt.c \
477c478bd9Sstevel@tonic-gate		src/perfcnt.ksh \
487c478bd9Sstevel@tonic-gate		src/symbindrep.c \
497c478bd9Sstevel@tonic-gate		src/symbindrep.ksh \
507c478bd9Sstevel@tonic-gate		src/truss.c \
517c478bd9Sstevel@tonic-gate		src/who.c \
527c478bd9Sstevel@tonic-gate		src/who.h \
537c478bd9Sstevel@tonic-gate		src/whocalls.ksh
547c478bd9Sstevel@tonic-gate
557c478bd9Sstevel@tonic-gateROOTDEMODIRS=	$(ROOTDEMODIRBASE) .WAIT \
567c478bd9Sstevel@tonic-gate		$(ROOTDEMODIRBASE)/man \
577c478bd9Sstevel@tonic-gate		$(ROOTDEMODIRBASE)/src
587c478bd9Sstevel@tonic-gate
597c478bd9Sstevel@tonic-gateROOTDEMOFILES=	$(DEMOFILES:%=$(ROOTDEMODIRBASE)/%)
607c478bd9Sstevel@tonic-gate
617c478bd9Sstevel@tonic-gate$(ROOTDEMODIRS) :=	DIRMODE =	755
627c478bd9Sstevel@tonic-gate
637c478bd9Sstevel@tonic-gate
647c478bd9Sstevel@tonic-gate
657c478bd9Sstevel@tonic-gateSUBDIRS=	$(MACH)
667c478bd9Sstevel@tonic-gate
677c478bd9Sstevel@tonic-gateall:=		TARGET=	all
687c478bd9Sstevel@tonic-gateinstall:=	TARGET=	install
697c478bd9Sstevel@tonic-gateclean:=		TARGET=	clean
707c478bd9Sstevel@tonic-gateclobber:=	TARGET=	clobber
717c478bd9Sstevel@tonic-gate
727c478bd9Sstevel@tonic-gate.PARALLEL: $(ROOTDEMOFILES)
737c478bd9Sstevel@tonic-gate
747c478bd9Sstevel@tonic-gate.KEEP_STATE:
757c478bd9Sstevel@tonic-gate
76*d8e10381SRichard Loweall clean clobber: $(SUBDIRS)
7775e45495Sab
78*d8e10381SRichard Loweinstall: $(ROOTDEMODIRS) .WAIT $(SUBDIRS) $(ROOTDEMOFILES)
797c478bd9Sstevel@tonic-gate
807c478bd9Sstevel@tonic-gate$(SUBDIRS):	FRC
817c478bd9Sstevel@tonic-gate		@cd $@; pwd; $(MAKE) $(TARGET)
827c478bd9Sstevel@tonic-gate		@if [ -d $(MACH64) ]; then                      \
837c478bd9Sstevel@tonic-gate			cd $(MACH64); pwd; $(MAKE) $(TARGET);   \
847c478bd9Sstevel@tonic-gate		else /bin/true; fi
857c478bd9Sstevel@tonic-gate
867c478bd9Sstevel@tonic-gate$(ROOTDEMODIRS):
877c478bd9Sstevel@tonic-gate	$(INS.dir)
887c478bd9Sstevel@tonic-gate
897c478bd9Sstevel@tonic-gate$(ROOTDEMODIRBASE)/man/%: man/%
907c478bd9Sstevel@tonic-gate	$(INS.file)
917c478bd9Sstevel@tonic-gate
927c478bd9Sstevel@tonic-gate$(ROOTDEMODIRBASE)/src/%: common/%
937c478bd9Sstevel@tonic-gate	$(INS.file)
947c478bd9Sstevel@tonic-gate
957c478bd9Sstevel@tonic-gate$(ROOTDEMODIRBASE)/%: common/%
967c478bd9Sstevel@tonic-gate	$(INS.file)
977c478bd9Sstevel@tonic-gate
987c478bd9Sstevel@tonic-gate$(ROOTDEMODIRBASE)/%: common/%.demo
997c478bd9Sstevel@tonic-gate	$(INS.rename)
1007c478bd9Sstevel@tonic-gate
1017c478bd9Sstevel@tonic-gateFRC:
102