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