| OLD | NEW |
| (Empty) |
| 1 #!/usr/bin/make -f | |
| 2 # -*- makefile -*- | |
| 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 | |
| 5 # found in the LICENSE file. | |
| 6 | |
| 7 # Uncomment this to turn on verbose mode. | |
| 8 #export DH_VERBOSE=1 | |
| 9 | |
| 10 CFLAGS = -Wall -g | |
| 11 | |
| 12 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) | |
| 13 CFLAGS += -O0 | |
| 14 else | |
| 15 CFLAGS += -O2 | |
| 16 endif | |
| 17 | |
| 18 DEB_BUILD_GNU_TYPE := $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) | |
| 19 DEB_HOST_GNU_TYPE := $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) | |
| 20 ifeq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE)) | |
| 21 CC := gcc | |
| 22 CCC := g++ | |
| 23 else | |
| 24 CC := $(DEB_HOST_GNU_TYPE)-gcc | |
| 25 CCC := $(DEB_HOST_GNU_TYPE)-g++ | |
| 26 endif | |
| 27 | |
| 28 build: build-stamp | |
| 29 build-stamp: | |
| 30 dh_testdir | |
| 31 $(MAKE) CC=$(CC) CCC=$(CCC) | |
| 32 touch $@ | |
| 33 | |
| 34 clean: | |
| 35 dh_testdir | |
| 36 dh_testroot | |
| 37 rm -f build-stamp | |
| 38 $(MAKE) clean | |
| 39 dh_clean | |
| 40 | |
| 41 install: build | |
| 42 dh_testdir | |
| 43 dh_testroot | |
| 44 dh_clean -k | |
| 45 dh_installdirs | |
| 46 mkdir -p $(CURDIR)/debian/chromeos-metrics-daemon | |
| 47 $(MAKE) DESTDIR=$(CURDIR)/debian/chromeos-metrics-daemon install | |
| 48 | |
| 49 binary-indep: | |
| 50 | |
| 51 | |
| 52 # Build architecture-dependent files here. | |
| 53 binary-arch: build install | |
| 54 dh_testdir | |
| 55 dh_testroot | |
| 56 dh_link | |
| 57 dh_strip | |
| 58 dh_compress | |
| 59 dh_fixperms | |
| 60 dh_installdeb | |
| 61 dh_shlibdeps | |
| 62 dh_gencontrol | |
| 63 dh_md5sums | |
| 64 dh_builddeb | |
| 65 | |
| 66 binary: binary-arch | |
| 67 .PHONY: build clean binary-indep binary-arch binary install | |
| OLD | NEW |