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

Unified Diff: client/site_tests/example_UnitTest/src/Makefile

Issue 1597001: [Test Fixit] Code coverage test example. (Closed)
Patch Set: More cleanup - changed handling of perf dictionary. Created 10 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: client/site_tests/example_UnitTest/src/Makefile
diff --git a/client/site_tests/example_UnitTest/src/Makefile b/client/site_tests/example_UnitTest/src/Makefile
new file mode 100644
index 0000000000000000000000000000000000000000..85c2a3aa6b40e43f7164fcc598aa38238c524072
--- /dev/null
+++ b/client/site_tests/example_UnitTest/src/Makefile
@@ -0,0 +1,31 @@
+# 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.
+
+TARGET = unit_test
+OBJECTS = main.o
+INCLUDES = -I$(GCLIENT_ROOT)/src/common
+OPTIONS = -fprofile-arcs -ftest-coverage -fno-inline -O0
+LIBS = -lgtest
+PACKAGES =
+
+all: $(TARGET)
+
+$(TARGET): $(OBJECTS)
kmixter1 2010/04/09 22:07:23 As Darin mentioned, our current thinking on how to
+ $(CXX) $(CXXFLAGS) $(OPTIONS) $(LDFLAGS) $(PACKAGES) $(OBJECTS) $(LIBS) \
+ -o $(TARGET)
+
+-include $(OBJS:.o=.d)
+
+.cc.o:
+ $(CXX) $(CXXFLAGS) $(PACKAGES) $(OPTIONS) $(INCLUDES) -c $< -o $@
+ $(CXX) -MM $(CXXFLAGS) $(PACKAGES) $(OPTIONS) $(INCLUDES) $< > $*.d
+ @mv -f $*.d $*.d.tmp
+ @sed -e 's|.*:|$*.o|' < $*.d.tmp > $*.d
+ @sed -e 's/.*://' -e 's/\\$$//' < $*.d.tmp | fmt -l | \
+ sed -e 's/^ *//' -e 's/$$/:/' >> $*.d
+ @rm -f $*.d.tmp
+
+clean:
+ $(RM) *.o *.d $(TARGET)
+

Powered by Google App Engine
This is Rietveld 408576698