| OLD | NEW |
| 1 #!/usr/bin/make -f | 1 #!/usr/bin/make -f |
| 2 # -*- makefile -*- | 2 # -*- makefile -*- |
| 3 # Copyright (c) 2009 The Chromium OS Authors. All rights reserved. | 3 # Copyright (c) 2009 The Chromium OS Authors. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
| 6 | 6 |
| 7 # Uncomment this to turn on verbose mode. | 7 # Uncomment this to turn on verbose mode. |
| 8 #export DH_VERBOSE=1 | 8 #export DH_VERBOSE=1 |
| 9 | 9 |
| 10 # The number of jobs to pass to tools that can run in parallel (such as make | 10 # The number of jobs to pass to tools that can run in parallel (such as make |
| 11 # and dpkg-buildpackage | 11 # and dpkg-buildpackage |
| 12 NUM_JOBS=`cat /proc/cpuinfo | grep processor | awk '{a++} END {print a}'` | 12 NUM_JOBS=`cat /proc/cpuinfo | grep processor | awk '{a++} END {print a}'` |
| 13 | 13 |
| 14 build: build-stamp | 14 build: build-stamp |
| 15 build-stamp: | 15 build-stamp: |
| 16 dh_testdir | 16 dh_testdir |
| 17 » scons -j$(NUM_JOBS) microbenchmark_runner | 17 » scons -j$(NUM_JOBS) -Q |
| 18 touch $@ | 18 touch $@ |
| 19 | 19 |
| 20 clean: | 20 clean: |
| 21 dh_testdir | 21 dh_testdir |
| 22 dh_testroot | 22 dh_testroot |
| 23 rm -f build-stamp | 23 rm -f build-stamp |
| 24 scons -c | 24 scons -c |
| 25 dh_clean | 25 dh_clean |
| 26 | 26 |
| 27 install: build | 27 install: build |
| 28 dh_testdir | 28 dh_testdir |
| 29 dh_testroot | 29 dh_testroot |
| 30 dh_prep | 30 dh_prep |
| 31 dh_installdirs | 31 dh_installdirs |
| 32 » mkdir -p $(CURDIR)/debian/chromeos-microbenchmarks/usr/lib/chromeos-mic
robenchmarks/bin | 32 » cp $(CURDIR)/libchromeos_microbenchmark_main.a $(CURDIR)/debian/chromeo
s-microbenchmark/usr/lib/libchromeos_microbenchmark_main.a |
| 33 » # TODO(wad) add versioning to microbenchmarks to match the package vers
ion. | 33 » cp $(CURDIR)/microbenchmark.h $(CURDIR)/debian/chromeos-microbenchmark/
usr/include/microbenchmark/microbenchmark.h |
| 34 » cp $(CURDIR)/microbenchmark_runner $(CURDIR)/debian/chromeos-microbench
marks/usr/lib/chromeos-microbenchmarks/bin | |
| 35 | 34 |
| 36 # Build architecture-dependent files here. | 35 # Build architecture-dependent files here. |
| 37 binary-arch: install | 36 binary-arch: install |
| 38 dh_testdir | 37 dh_testdir |
| 39 dh_testroot | 38 dh_testroot |
| 40 dh_link | 39 dh_link |
| 41 dh_strip | 40 dh_strip |
| 42 dh_compress | 41 dh_compress |
| 43 dh_fixperms | 42 dh_fixperms |
| 44 dh_installdeb | 43 dh_installdeb |
| 45 dh_shlibdeps | 44 dh_shlibdeps |
| 46 dh_gencontrol | 45 dh_gencontrol |
| 47 dh_md5sums | 46 dh_md5sums |
| 48 dh_builddeb | 47 dh_builddeb |
| 49 | 48 |
| 50 binary: binary-arch | 49 binary: binary-arch |
| 51 | 50 |
| 52 .PHONY: build clean install binary-arch binary | 51 .PHONY: build clean install binary-arch binary |
| OLD | NEW |