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

Unified 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: Miscellaneous cleanup 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | bootstat_log.c » ('j') | bootstat_log.c » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Makefile
diff --git a/Makefile b/Makefile
index 2066cdc085192a44498ddca7bb149107b6745538..1680da2116b3f4a2e9a910073c59c16926bb5dac 100644
--- a/Makefile
+++ b/Makefile
@@ -8,7 +8,12 @@
# OPT_CFLAGS is here to allow adding options for manual, host-side
# builds.
OPT_CFLAGS =
-CFLAGS += -Wall -Werror -fPIC -fno-exceptions $(OPT_CFLAGS)
+COMMON_CFLAGS += -Wall -Werror -fPIC -fno-exceptions $(OPT_CFLAGS)
+
+tests: COMMON_CFLAGS += -DCONFIG_UNIT_TEST
kmixter1 2010/12/06 04:23:52 This is a new syntax to me, assuming you know it w
jrbarnette 2010/12/06 17:47:46 Mmmm... If you say 'make' or 'make all', or other
kmixter1 2010/12/06 18:22:36 I was mostly commenting on the fact that the CCFLA
+
+CFLAGS += $(COMMON_CFLAGS)
+CXXFLAGS += $(COMMON_CFLAGS)
LIB_OBJS = bootstat_log.o
« no previous file with comments | « no previous file | bootstat_log.c » ('j') | bootstat_log.c » ('J')

Powered by Google App Engine
This is Rietveld 408576698