Changeset 01579ad in mainline for uspace/Makefile


Ignore:
Timestamp:
2014-04-11T08:10:18Z (11 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2bff9860
Parents:
9a5abb78
Message:

Start work on PCUT integration

PCUT is a simple library for (hopefully) easier unit testing.
See https://github.com/vhotspur/pcut for more details.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/Makefile

    r9a5abb78 r01579ad  
    247247        lib/gpt
    248248
     249ifeq ($(CONFIG_PCUT_TESTS),y)
     250        LIBS += lib/pcut
     251endif
     252
    249253LIBC_BUILD = $(addsuffix .build,$(LIBC))
    250254LIBS_BUILD = $(addsuffix .build,$(LIBS))
    251255LIBN_BUILD = $(addsuffix .build,$(LIBN))
    252256BUILDS := $(addsuffix .build,$(DIRS))
     257BUILDS_TESTS := $(addsuffix .build-test,$(DIRS) $(LIBS) lib/c)
    253258
    254259CLEANS := $(addsuffix .clean,$(DIRS)) $(addsuffix .clean,$(LIBN)) $(addsuffix .clean,$(LIBS)) $(addsuffix .clean,$(LIBC))
     
    256261.PHONY: all $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD) $(BUILDS) $(CLEANS) clean
    257262
    258 all: $(BUILDS)
     263all: $(BUILDS) $(BUILDS_TESTS)
     264
     265$(BUILDS_TESTS): $(BUILDS)
     266        $(MAKE) -C $(basename $@) all-test PRECHECK=$(PRECHECK)
    259267
    260268clean: $(CLEANS)
Note: See TracChangeset for help on using the changeset viewer.