| OLD | NEW |
| 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 BINS = crasher_nobreakpad | 5 BINS = crasher_nobreakpad |
| 6 SRC = crasher.cc | 6 SRC = crasher.cc |
| 7 OBJS = crasher.o bomb.o | 7 OBJS = crasher.o bomb.o |
| 8 TGZ = crasher.tgz | 8 # Use a non-standard extension to avoid the AUTOTEST_MASK that intends to |
| 9 # remove these since they're usually large and redundant. |
| 10 TGZ = crasher.tgz-unmasked |
| 9 | 11 |
| 10 all: $(TGZ) | 12 all: $(TGZ) |
| 11 | 13 |
| 12 # gzip so that portage does not strip. | 14 # gzip so that portage does not strip. |
| 13 $(TGZ): $(BINS) | 15 $(TGZ): $(BINS) |
| 14 tar czf $(TGZ) $^ | 16 tar czf $(TGZ) $^ |
| 17 rm -f $(BINS) |
| 15 | 18 |
| 16 crasher_nobreakpad: $(OBJS) | 19 crasher_nobreakpad: $(OBJS) |
| 17 $(CXX) $(CXXFLAGS) -o $@ $^ | 20 $(CXX) $(CXXFLAGS) -o $@ $^ |
| 18 | 21 |
| 19 .cc.o: | 22 .cc.o: |
| 20 $(CXX) $(CXXFLAGS) -c $< -o $@ | 23 $(CXX) $(CXXFLAGS) -c $< -o $@ |
| 21 | 24 |
| 22 clean: | 25 clean: |
| 23 $(RM) *.o $(BIN) $(TGZ) | 26 $(RM) *.o $(BIN) $(TGZ) |
| OLD | NEW |