Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 94c5bc1 in mainline


Ignore:
Timestamp:
2017-08-31T18:56:55Z (3 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master
Children:
e73dbc1
Parents:
984f060
Message:

Build disassembly files for test binaries.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/Makefile.common

    r984f060 r94c5bc1  
    212212ifneq ($(TEST_SOURCES),)
    213213        TEST_OUTPUT = $(TEST_BINARY)
     214        TEST_DISASM = $(TEST_BINARY).disasm
    214215        TEST_CFLAGS = -I$(LIB_PREFIX)/pcut/include -D__helenos__
    215216        TEST_OUTPUT_LIBS = $(LIB_PREFIX)/pcut/libpcut.a
    216         EXTRA_CLEAN += $(TEST_OUTPUT) $(TEST_OUTPUT).map
     217        EXTRA_CLEAN += $(TEST_OUTPUT) $(TEST_OUTPUT).map $(TEST_DISASM)
    217218ifneq ($(LIBRARY),)
    218219        TEST_OUTPUT_LIBS += $(OUTPUT)
     
    226227        -[ -f $(DEPEND) ] && cp -a $(DEPEND) $(DEPEND_PREV)
    227228
    228 all-test: $(TEST_OUTPUT)
     229all-test: $(TEST_OUTPUT) $(TEST_DISASM)
    229230
    230231clean:
     
    320321
    321322ifneq ($(BINARY),)
    322 %.disasm: $(BINARY)
     323$(BINARY).disasm: $(BINARY)
    323324ifeq ($(CONFIG_LINE_DEBUG),y)
    324325        $(OBJDUMP) -d -S $< > $@
     
    335336
    336337ifneq ($(SLIBRARY),)
    337 %.disasm: $(LOUTPUT)
     338$(LOUTPUT).disasm: $(LOUTPUT)
    338339ifeq ($(CONFIG_LINE_DEBUG),y)
    339340        $(OBJDUMP) -d -S $< > $@
     
    368369        $(STRIP) $(TEST_OUTPUT)
    369370endif
     371$(TEST_BINARY).disasm: $(TEST_BINARY)
     372ifeq ($(CONFIG_LINE_DEBUG),y)
     373        $(OBJDUMP) -d -S $< > $@
     374else
     375        $(OBJDUMP) -d $< > $@
     376endif
    370377endif
    371378
Note: See TracChangeset for help on using the changeset viewer.