| 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_breakpad 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 TGZ = crasher.tgz |
| 9 | 9 |
| 10 all: $(TGZ) | 10 all: $(TGZ) |
| 11 | 11 |
| 12 # gzip so that portage does not strip. | 12 # gzip so that portage does not strip. |
| 13 $(TGZ): $(BINS) | 13 $(TGZ): $(BINS) |
| 14 tar czf $(TGZ) $^ | 14 tar czf $(TGZ) $^ |
| 15 | 15 |
| 16 crasher_breakpad: $(OBJS) | |
| 17 $(CXX) -o $@ $^ -lcrash | |
| 18 | |
| 19 crasher_nobreakpad: $(OBJS) | 16 crasher_nobreakpad: $(OBJS) |
| 20 » $(CXX) -o $@ $^ | 17 » $(CXX) $(CXXFLAGS) -o $@ $^ |
| 21 | 18 |
| 22 .cc.o: | 19 .cc.o: |
| 23 $(CXX) $(CXXFLAGS) -c $< -o $@ | 20 $(CXX) $(CXXFLAGS) -c $< -o $@ |
| 24 | 21 |
| 25 clean: | 22 clean: |
| 26 $(RM) *.o $(BIN) $(TGZ) | 23 $(RM) *.o $(BIN) $(TGZ) |
| OLD | NEW |