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 |