Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(71)

Side by Side Diff: src/platform/monitor_reconfig/Makefile

Issue 1619018: monitor_reconfigure: Clean up build and style. (Closed)
Patch Set: update header guard name Created 10 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Makefile for monitor_reconfigure 1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
2 ####################################################### 2 # Use of this source code is governed by a BSD-style license that can be
3 CXX ?= /usr/bin/g++ 3 # found in the LICENSE file.
4 CC ?= /usr/bin/gcc
5 CPPFLAGS += -I../..
6 CFLAGS += -Wall -g -O2
7 CXXFLAGS=$(CFLAGS)
8 LDFLAGS += -lX11 -lXrandr
9 #######################################################
10 4
11 NAME=monitor_reconfigure 5 CXX ?= g++
12 VERSION=0.1 6 CXXFLAGS ?= -Wall -Werror -g
7 PKG_CONFIG ?= pkg-config
13 8
14 CPPFLAGS+=-DPACKAGE=\"$(NAME)\" -DVERSION=\"$(VERSION)\" 9 LIBS = -lbase -lpthread -lrt
10 INCLUDE_DIRS = -I.. $(shell $(PKG_CONFIG) --cflags x11 xrandr)
11 LIB_DIRS = $(shell $(PKG_CONFIG) --libs x11 xrandr)
15 12
13
14 BIN=monitor_reconfigure
16 OBJECTS=monitor_reconfigure_main.o 15 OBJECTS=monitor_reconfigure_main.o
17 16
18 all: monitor_reconfigure 17 .cc.o:
18 » $(CXX) $(CXXFLAGS) $(INCLUDE_DIRS) -c $< -o $@
19 19
20 monitor_reconfigure: $(OBJECTS) 20 $(BIN): $(OBJECTS)
21 » $(CXX) $(LDFLAGS) $^ -o $@ 21 » $(CXX) $(CXXFLAGS) $(INCLUDE_DIRS) $(LIB_DIRS) $^ $(LIBS) $(LDFLAGS) \
22 » » -o $@
22 23
23 install: monitor_reconfigure 24 all: $(BIN)
24 » install -D -m 755 monitor_reconfigure $(DESTDIR)/usr/sbin/monitor_reconf igure»
25 25
26 clean: 26 clean:
27 » @rm -f monitor_reconfigure *.o 27 » @rm -f $(BIN) $(OBJECTS)
OLDNEW
« no previous file with comments | « no previous file | src/platform/monitor_reconfig/README » ('j') | src/platform/monitor_reconfig/monitor_reconfigure_main.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698