4 # The contents of this file are subject to the terms
5 # of the Common Development and Distribution License
6 # (the "License"). You may not use this file except
7 # in compliance with the License.
9 # You can obtain a copy of the license at
10 # src/OPENSOLARIS.LICENSE
11 # or http://www.opensolaris.org/os/licensing.
12 # See the License for the specific language governing
13 # permissions and limitations under the License.
15 # When distributing Covered Code, include this CDDL
16 # HEADER in each file and include the License file at
17 # usr/src/OPENSOLARIS.LICENSE. If applicable,
18 # add the following below this CDDL HEADER, with the
19 # fields enclosed by brackets "[]" replaced with your
20 # own identifying information: Portions Copyright [yyyy]
21 # [name of copyright owner]
27 # Copyright 2005 Sun Microsystems, Inc. All rights reserved.
28 # Use is subject to license terms.
32 include Makefile.benchmarks
36 BINS= $(ALL:%=bin-$(ARCH)/%) bin-$(ARCH)/tattle
38 # TARBALL_CONTENTS = \
52 benchmark_finibatch.c \
53 benchmark_initbatch.c \
54 benchmark_optswitch.c \
60 benchmark_initworker.c \
61 benchmark_finiworker.c \
75 default $(ALL) run cstyle lint tattle: $(BINS)
77 @cp coreos_bench.sh coreos_bench
78 @cp multiview.sh multiview
79 @cp wrapper.sh wrapper
80 @cp create_stuff.sh create_stuff
81 @cp benchDS.sh benchDS
82 @cp od_account_create.sh od_account_create
83 @cp od_account_delete.sh od_account_delete
84 @chmod +x bench coreos_bench create_stuff multiview wrapper benchDS od_account_create od_account_delete
85 @mkdir -p bin-$(ARCH); cd bin-$(ARCH); MACH=$(ARCH) $(MAKE) -f ../Makefile.`uname -s` ARCH=$(ARCH) UNAME_RELEASE=`uname -r | sed 's/\./_/g'` $@
86 @echo "code signing all the binaries under bin-$(ARCH) and apple/bin-$(ARCH)"
87 @for file in $(abspath bin-$(ARCH)/*) $(abspath apple/bin-$(ARCH)/*);do \
88 if test -x $$file;then \
89 codesign -s - $$file 1>& /dev/null ; \
94 .PHONY: clean clean_subdirs clean_$(SUBDIRS)
97 rm -rf bin bin-* wrapper multiview create_stuff bench tattle benchDS od_account_create od_account_delete coreos_bench
100 for dir in $(SUBDIRS); do $(MAKE) -C $$dir clean; done
103 @mkdir -p bin-$(ARCH)
106 @cp wrapper.sh wrapper
108 @ln -sf ../wrapper $@
110 # commenting the lbMicro.tar as it is not being used.
111 # libMicro.tar: FORCE
112 # @chmod +x ./mk_tarball wrapper
113 # @./mk_tarball $(TARBALL_CONTENTS)