| OLD | NEW |
| (Empty) | |
| 1 # Copyright (C) 2011 The Chromium OS Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE.makefile file. |
| 4 # |
| 5 # Top-level Makefile for cros-disks. |
| 6 |
| 7 # Pull in chromium os defaults |
| 8 # TODO(rtc): This verison of common.mk came from drewry@, we should find |
| 9 # a way to share the file rather than copying it. |
| 10 include common.mk |
| 11 |
| 12 PKG_CONFIG ?= pkg-config |
| 13 |
| 14 INCLUDE_DIRS = -I.. $(shell $(PKG_CONFIG) --cflags dbus-1 dbus-glib-1\ |
| 15 dbus-c++-1 glib-2.0) |
| 16 LIB_DIRS = $(shell $(PKG_CONFIG) --libs dbus-1 dbus-glib-1 dbus-c++-1 glib-2.0) |
| 17 |
| 18 CFLAGS := -Iinclude $(CFLAGS) |
| 19 CXXFLAGS := -Iinclude -I../ $(INCLUDE_DIRS) $(CXXFLAGS) |
| 20 LDFLAGS += -lbase -lgflags -lmetrics $(LIB_DIRS) |
| 21 |
| 22 disks: $(OUT)disks |
| 23 |
| 24 $(OUT)disks: $(filter-out %_testrunner.o %_unittest.o,$(C_OBJECTS)) \ |
| 25 $(CXX_OBJECTS) |
| 26 $(call cxx_binary) |
| 27 all: $(OUT)disks |
| 28 RM_ON_CLEAN += $(OUT)disks |
| OLD | NEW |