blob: 3ef81f1b063d3fbdceed9a8c399157e9e3a2983d [file] [log] [blame]
# Copyright (c) 2010 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.
CXX ?= g++
CXXFLAGS ?= -Wall -Werror -g
PKG_CONFIG ?= pkg-config
LIBS = -lbase -lpthread -lrt
TEST_LIBS = -lgtest -lgflags
INCLUDE_DIRS = -I.. $(shell $(PKG_CONFIG) --cflags x11 xrandr)
LIB_DIRS = $(shell $(PKG_CONFIG) --libs x11 xrandr)
OBJECTS=monitor_reconfigure_main.o resolution_selector.o
$(CXX) $(CXXFLAGS) $(INCLUDE_DIRS) -c $< -o $@
-o $@
all: $(BIN)
test: resolution_selector_test
resolution_selector_test: resolution_selector.o
@rm -f $(BIN) $(OBJECTS) resolution_selector_test