Changeset e035612 in mainline for uspace/Makefile


Ignore:
Timestamp:
2009-10-14T15:00:02Z (15 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
68834d85, 7c7a3209, 81342f7
Parents:
c088fd4
Message:

make parallel build (with -j n) possible

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/Makefile

    rc088fd4 re035612  
    3333
    3434DIRS = \
    35         lib/libc \
    36         lib/libfs \
    37         lib/libblock \
    38         lib/softint \
    39         lib/softfloat \
    4035        srv/bd/ata_bd \
    4136        srv/bd/file_bd \
     
    7671endif
    7772
     73LIBC = lib/libc
     74LIBS = \
     75        lib/libfs \
     76        lib/libblock \
     77        lib/softint \
     78        lib/softfloat
     79
     80LIBC_BUILD = $(addsuffix .build,$(LIBC))
     81LIBS_BUILD = $(addsuffix .build,$(LIBS))
     82
    7883BUILDS := $(addsuffix .build,$(DIRS))
    79 CLEANS := $(addsuffix .clean,$(DIRS))
     84CLEANS := $(addsuffix .clean,$(DIRS)) $(addsuffix .clean,$(LIBS)) $(addsuffix .clean,$(LIBC))
    8085
    81 .PHONY: all $(BUILDS) $(CLEANS) clean
     86.PHONY: all $(LIBC_BUILD) $(LIBS_BUILD) $(BUILDS) $(CLEANS) clean
    8287
    8388all: ../Makefile.config ../config.h ../config.defs $(BUILDS)
     
    8893        -$(MAKE) -C $(basename $@) clean
    8994
    90 $(BUILDS):
     95$(BUILDS): $(LIBC_BUILD) $(LIBS_BUILD)
    9196        $(MAKE) -C $(basename $@) all
     97
     98$(LIBS_BUILD): $(LIBC_BUILD)
     99        $(MAKE) -C $(basename $@) all
     100
     101$(LIBC_BUILD):
     102        $(MAKE) -C $(basename $@) all
Note: See TracChangeset for help on using the changeset viewer.