]>
Commit | Line | Data |
---|---|---|
b0d623f7 A |
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 | ARCH = i386 | |
35 | ||
36 | BINS= $(ALL:%=bin-$(ARCH)/%) bin-$(ARCH)/tattle | |
37 | ||
6d2010ae | 38 | # TARBALL_CONTENTS = \ |
b0d623f7 A |
39 | Makefile.benchmarks \ |
40 | Makefile.SunOS \ | |
41 | Makefile.Linux \ | |
42 | Makefile.Aix \ | |
43 | Makefile.com \ | |
44 | Makefile \ | |
45 | $(ALL:%=%.c) \ | |
46 | elided.c \ | |
47 | exec_bin.c \ | |
48 | libmicro.c \ | |
49 | libmicro_main.c \ | |
50 | libmicro.h \ | |
51 | recurse2.c \ | |
52 | benchmark_finibatch.c \ | |
53 | benchmark_initbatch.c \ | |
54 | benchmark_optswitch.c \ | |
55 | benchmark_fini.c \ | |
56 | benchmark_init.c \ | |
57 | benchmark_result.c \ | |
58 | benchmark_finirun.c \ | |
59 | benchmark_initrun.c \ | |
60 | benchmark_initworker.c \ | |
61 | benchmark_finiworker.c \ | |
62 | bench \ | |
63 | bench.sh \ | |
6d2010ae A |
64 | coreos_bench \ |
65 | coreos_bench.sh \ | |
b0d623f7 A |
66 | mk_tarball \ |
67 | multiview \ | |
68 | multiview.sh \ | |
69 | OPENSOLARIS.LICENSE \ | |
70 | tattle.c \ | |
71 | wrapper \ | |
72 | wrapper.sh \ | |
73 | README | |
74 | ||
316670eb A |
75 | ifeq "$(Embedded)" "YES" |
76 | SEMOP_FLAG= | |
77 | endif | |
78 | ||
b0d623f7 A |
79 | default $(ALL) run cstyle lint tattle: $(BINS) |
80 | @cp bench.sh bench | |
6d2010ae | 81 | @cp coreos_bench.sh coreos_bench |
316670eb | 82 | @cp embd_bench.sh embd_bench |
b0d623f7 A |
83 | @cp multiview.sh multiview |
84 | @cp wrapper.sh wrapper | |
85 | @cp create_stuff.sh create_stuff | |
6d2010ae A |
86 | @cp benchDS.sh benchDS |
87 | @cp od_account_create.sh od_account_create | |
88 | @cp od_account_delete.sh od_account_delete | |
316670eb | 89 | @chmod +x bench coreos_bench embd_bench create_stuff multiview wrapper benchDS od_account_create od_account_delete |
b0d623f7 | 90 | @mkdir -p bin-$(ARCH); cd bin-$(ARCH); MACH=$(ARCH) $(MAKE) -f ../Makefile.`uname -s` ARCH=$(ARCH) UNAME_RELEASE=`uname -r | sed 's/\./_/g'` $@ |
6d2010ae A |
91 | @echo "code signing all the binaries under bin-$(ARCH) and apple/bin-$(ARCH)" |
92 | @for file in $(abspath bin-$(ARCH)/*) $(abspath apple/bin-$(ARCH)/*);do \ | |
93 | if test -x $$file;then \ | |
94 | codesign -s - $$file 1>& /dev/null ; \ | |
95 | fi; \ | |
96 | done; | |
97 | @echo "done" | |
98 | ||
b0d623f7 A |
99 | .PHONY: clean clean_subdirs clean_$(SUBDIRS) |
100 | ||
101 | clean: clean_subdirs | |
316670eb | 102 | rm -rf bin bin-* wrapper multiview create_stuff bench tattle benchDS od_account_create od_account_delete coreos_bench embd_bench |
b0d623f7 A |
103 | |
104 | clean_subdirs: | |
105 | for dir in $(SUBDIRS); do $(MAKE) -C $$dir clean; done | |
106 | ||
107 | bin: | |
108 | @mkdir -p bin-$(ARCH) | |
109 | ||
110 | $(BINS): bin | |
111 | @cp wrapper.sh wrapper | |
112 | @chmod +x wrapper | |
113 | @ln -sf ../wrapper $@ | |
114 | ||
6d2010ae A |
115 | # commenting the lbMicro.tar as it is not being used. |
116 | # libMicro.tar: FORCE | |
117 | # @chmod +x ./mk_tarball wrapper | |
118 | # @./mk_tarball $(TARBALL_CONTENTS) | |
b0d623f7 | 119 | |
6d2010ae | 120 | # FORCE: |
b0d623f7 | 121 |