1 # 2 # CDDL HEADER START 3 # 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. 8 # 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. 14 # 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] 22 # 23 # CDDL HEADER END 24 # 25 26 # 27 # Copyright 2005 Sun Microsystems, Inc. All rights reserved. 28 # Use is subject to license terms. 29 # 30 31 32 include Makefile.benchmarks 33 34 BINS= $(ALL:%=bin/%) bin/tattle 35 36 TARBALL_CONTENTS = \ 37 Makefile.benchmarks \ 38 Makefile.SunOS \ 39 Makefile.Linux \ 40 Makefile.Aix \ 41 Makefile.com \ 42 Makefile \ 43 $(ALL:%=%.c) \ 44 elided.c \ 45 exec_bin.c \ 46 libmicro.c \ 47 libmicro_main.c \ 48 libmicro.h \ 49 recurse2.c \ 50 benchmark_finibatch.c \ 51 benchmark_initbatch.c \ 52 benchmark_optswitch.c \ 53 benchmark_fini.c \ 54 benchmark_init.c \ 55 benchmark_result.c \ 56 benchmark_finirun.c \ 57 benchmark_initrun.c \ 58 benchmark_initworker.c \ 59 benchmark_finiworker.c \ 60 bench \ 61 bench.sh \ 62 mk_tarball \ 63 multiview \ 64 multiview.sh \ 65 OPENSOLARIS.LICENSE \ 66 tattle.c \ 67 wrapper \ 68 wrapper.sh \ 69 README 70 71 default $(ALL) run cstyle lint tattle: $(BINS) 72 @cp bench.sh bench 73 @cp multiview.sh multiview 74 @cp wrapper.sh wrapper 75 @chmod +x bench multiview wrapper 76 @mkdir -p bin-`uname -m`; cd bin-`uname -m`; MACH=`uname -m` $(MAKE) -f ../Makefile.`uname -s` UNAME_RELEASE=`uname -r | sed 's/\./_/g'` $@ 77 78 clean: 79 rm -rf bin bin-* wrapper multiview bench 80 81 bin: 82 @mkdir -p bin 83 84 $(BINS): bin 85 @cp wrapper.sh wrapper 86 @chmod +x wrapper 87 @ln -sf ../wrapper $@ 88 89 90 libMicro.tar: FORCE 91 @chmod +x ./mk_tarball wrapper 92 @./mk_tarball $(TARBALL_CONTENTS) 93 94 FORCE: 95 96