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

Side by Side Diff: Makefile

Issue 5500001: Eliminate the dependency on kernel pseudo-files when running unit tests (Closed) Base URL: http://git.chromium.org/git/bootstat.git@master
Patch Set: Update in response to review comments Created 10 years 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 | bootstat_log.c » ('j') | 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 # Makefile for bootstat utilities 5 # Makefile for bootstat utilities
6 # 6 #
7 7
8 # OPT_CFLAGS is here to allow adding options for manual, host-side 8 # OPT_CFLAGS is here to allow adding options for manual, host-side
9 # builds. 9 # builds.
10 OPT_CFLAGS = 10 OPT_CFLAGS =
11 CFLAGS += -Wall -Werror -fPIC -fno-exceptions $(OPT_CFLAGS) 11 COMMON_CFLAGS += -Wall -Werror -fPIC -fno-exceptions $(OPT_CFLAGS)
12
13 CFLAGS += $(COMMON_CFLAGS)
14 CXXFLAGS += $(COMMON_CFLAGS)
12 15
13 LIB_OBJS = bootstat_log.o 16 LIB_OBJS = bootstat_log.o
14 17
15 COMMAND_OBJS = bootstat.o 18 COMMAND_OBJS = bootstat.o
16 COMMAND_LDFLAGS = $(LDFLAGS) 19 COMMAND_LDFLAGS = $(LDFLAGS)
17 20
18 TEST_OBJS = log_unit_tests.o 21 TEST_OBJS = log_unit_tests.o
19 TEST_LDFLAGS = $(LDFLAGS) -lgtest 22 TEST_LDFLAGS = $(LDFLAGS) -lgtest
20 23
21 OBJS = $(LIB_OBJS) $(TEST_OBJS) $(COMMAND_OBJS) 24 OBJS = $(LIB_OBJS) $(TEST_OBJS) $(COMMAND_OBJS)
(...skipping 15 matching lines...) Expand all
37 $(CC) -o $@ $(COMMAND_LDFLAGS) $^ 40 $(CC) -o $@ $(COMMAND_LDFLAGS) $^
38 41
39 $(LIB): $(LIB_OBJS) 42 $(LIB): $(LIB_OBJS)
40 $(AR) rcs $@ $^ 43 $(AR) rcs $@ $^
41 44
42 $(TEST): $(TEST_OBJS) $(LIB) 45 $(TEST): $(TEST_OBJS) $(LIB)
43 $(CXX) $(TEST_LDFLAGS) -o $@ $^ 46 $(CXX) $(TEST_LDFLAGS) -o $@ $^
44 47
45 clean: 48 clean:
46 rm -f $(COMMAND) $(LIB) $(OBJS) $(TEST) 49 rm -f $(COMMAND) $(LIB) $(OBJS) $(TEST)
OLDNEW
« no previous file with comments | « no previous file | bootstat_log.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698