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

Side by Side Diff: Makefile

Issue 3443005: Added ext library to chrontel -l list so that it is explicitly passed to the linker. (Closed) Base URL: http://git.chromium.org/git/chrontel.git
Patch Set: Created 10 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 5
6 CC ?= gcc 6 CC ?= gcc
7 CCFLAGS ?= -Wall -Werror 7 CCFLAGS ?= -Wall -Werror
8 PKG_CONFIG ?= pkg-config 8 PKG_CONFIG ?= pkg-config
9 9
10 INCLUDE_DIRS = $(shell $(PKG_CONFIG) --cflags x11 xrandr) 10 INCLUDE_DIRS = $(shell $(PKG_CONFIG) --cflags x11 xrandr)
11 LIB_DIRS = $(shell $(PKG_CONFIG) --libs x11 xrandr) 11 LIB_DIRS = $(shell $(PKG_CONFIG) --libs x11 xrandr xext)
12 12
13 MON=ch7036_monitor 13 MON=ch7036_monitor
14 BUG=ch7036_debug 14 BUG=ch7036_debug
15 OBJECTS=ch7036_access.o GenTableCH7036.o edid_utils.o xrr_utils.o 15 OBJECTS=ch7036_access.o GenTableCH7036.o edid_utils.o xrr_utils.o
16 16
17 all: $(MON) $(BUG) 17 all: $(MON) $(BUG)
18 18
19 .c.o: 19 .c.o:
20 $(CC) $(CCFLAGS) $(INCLUDE_DIRS) -c $< -o $@ 20 $(CC) $(CCFLAGS) $(INCLUDE_DIRS) -c $< -o $@
21 21
22 $(MON): $(OBJECTS) $(MON).o 22 $(MON): $(OBJECTS) $(MON).o
23 $(CC) $(CCFLAGS) $(INCLUDE_DIRS) $(LIB_DIRS) $^ $(LIBS) $(LDFLAGS) \ 23 $(CC) $(CCFLAGS) $(INCLUDE_DIRS) $(LIB_DIRS) $^ $(LIBS) $(LDFLAGS) \
24 -o $@ 24 -o $@
25 25
26 $(BUG): $(OBJECTS) $(BUG).o 26 $(BUG): $(OBJECTS) $(BUG).o
27 $(CC) $(CCFLAGS) $(INCLUDE_DIRS) $(LIB_DIRS) $^ $(LIBS) $(LDFLAGS) \ 27 $(CC) $(CCFLAGS) $(INCLUDE_DIRS) $(LIB_DIRS) $^ $(LIBS) $(LDFLAGS) \
28 -o $@ 28 -o $@
29 29
30 30
31 clean: 31 clean:
32 @rm -f $(MON) $(BUG) $(OBJECTS) 32 @rm -f $(MON) $(BUG) $(OBJECTS)
33 33
34 34
35 35
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698