Chromium Code Reviews| 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 dbus-c++-1 glib-2.0) | |
|
Chris Masone
2011/03/31 14:48:18
do we do 80char in makefiles?
| |
| 15 LIB_DIRS = $(shell $(PKG_CONFIG) --libs dbus-1 dbus-glib-1 dbus-c++-1 glib-2.0) | |
| 16 | |
| 17 CFLAGS := -Iinclude $(CFLAGS) | |
| 18 CXXFLAGS := -Iinclude -I../ $(INCLUDE_DIRS) $(CXXFLAGS) | |
| 19 LDFLAGS += -lbase -lgflags -lmetrics $(LIB_DIRS) | |
| 20 | |
| 21 disks: $(OUT)disks | |
| 22 | |
| 23 $(OUT)disks: $(filter-out %_testrunner.o %_unittest.o,$(C_OBJECTS)) \ | |
| 24 $(CXX_OBJECTS) | |
| 25 $(call cxx_binary) | |
| 26 all: $(OUT)disks | |
| 27 RM_ON_CLEAN += $(OUT)disks | |
| OLD | NEW |