blob: 16bb5d7ea78026b05eb2757fa55e27d6d8cf4ef0 [file] [log] [blame]
#!/usr/bin/make -f
# -*- makefile -*-
# Copyright (c) 2009 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
%:
dh $@
DEB_BUILD_GNU_TYPE := $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
DEB_HOST_GNU_TYPE := $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
ifeq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
CXX := g++
else
CXX := $(DEB_HOST_GNU_TYPE)-g++
endif
override_dh_auto_build:
$(MAKE) CXX=$(CXX)