Home | History | Annotate | Download | only in crasher
      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 
      5 BINS = crasher_nobreakpad
      6 SRC = crasher.cc
      7 OBJS = 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.
     10 TGZ = crasher.tgz-unmasked
     11 
     12 all: $(TGZ)
     13 
     14 # gzip so that portage does not strip.
     15 $(TGZ): $(BINS)
     16 	tar czf $(TGZ) $^
     17 	rm -f $(BINS)
     18 
     19 crasher_nobreakpad: $(OBJS)
     20 	$(CXX) $(CXXFLAGS) -o $@ $^
     21 
     22 .cc.o:
     23 	$(CXX) $(CXXFLAGS) -c $< -o $@
     24 
     25 clean:
     26 	$(RM) *.o $(BIN) $(TGZ)
     27