Chromium Code Reviews| 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) |
| + |