Changes in uspace/Makefile [53b9f2c:b446b02] in mainline


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/Makefile

    r53b9f2c rb446b02  
    135135        srv/hid/remcons \
    136136        srv/hw/char/s3c24xx_uart \
     137        srv/hw/irc/obio \
    137138        srv/hid/rfb \
    138139        drv/audio/hdaudio \
     
    143144        drv/block/ata_bd \
    144145        drv/block/ddisk \
    145         drv/block/usbmast \
    146146        drv/bus/adb/cuda_adb \
    147147        drv/bus/isa \
     
    151151        drv/bus/usb/uhci \
    152152        drv/bus/usb/usbflbk \
     153        drv/bus/usb/usbhid \
    153154        drv/bus/usb/usbhub \
     155        drv/bus/usb/usbmast \
    154156        drv/bus/usb/usbmid \
    155157        drv/bus/usb/vhc \
    156158        drv/char/i8042 \
    157         drv/char/msim-con \
    158159        drv/char/ns8250 \
    159160        drv/char/pl050 \
    160         drv/char/ski-con \
    161         drv/char/sun4v-con \
     161        drv/char/ps2mouse \
     162        drv/char/atkbd \
     163        drv/char/xtkbd \
     164        drv/test/test1 \
     165        drv/test/test2 \
     166        drv/test/test3 \
    162167        drv/fb/amdm37x_dispc \
    163168        drv/fb/kfb \
    164         drv/hid/atkbd \
    165         drv/hid/ps2mouse \
    166         drv/hid/usbhid \
    167         drv/hid/xtkbd \
    168169        drv/intctl/apic \
    169170        drv/intctl/i8259 \
    170171        drv/intctl/icp-ic \
    171         drv/intctl/obio \
    172172        drv/nic/ne2k \
    173173        drv/nic/e1k \
     
    181181        drv/platform/msim \
    182182        drv/platform/pc \
    183         drv/platform/ski \
    184         drv/platform/sun4v \
    185         drv/test/test1 \
    186         drv/test/test2 \
    187         drv/test/test3 \
    188183        drv/time/cmos-rtc
    189184
     
    205200#
    206201
    207 BASE_LIBS = \
    208         lib/c \
    209         lib/softint \
    210         lib/softfloat
    211 
     202LIBC = lib/c
    212203LIBS = \
    213204        lib/fs \
     
    220211        lib/scsi \
    221212        lib/compress \
     213        lib/softint \
     214        lib/softfloat \
    222215        lib/drv \
    223216        lib/graph \
     
    229222        lib/label \
    230223        lib/math \
    231         lib/minix \
    232224        lib/nettl \
    233225        lib/nic \
     
    246238        lib/ieee80211
    247239
    248 BASE_BUILDS := $(addsuffix .build,$(BASE_LIBS))
    249 BUILDS := $(addsuffix .build,$(DIRS) $(LIBS))
    250 BUILDS_TESTS := $(addsuffix .build-test,$(DIRS) $(LIBS) $(BASE_LIBS))
    251 DEPS = $(addsuffix /deps.mk,$(DIRS) $(LIBS))
    252 CLEANS := $(addsuffix .clean,$(DIRS) $(LIBS) $(BASE_LIBS))
    253 
    254 .PHONY: all $(BASE_BUILDS) $(BUILDS) $(BUILDS_TESTS) $(CLEANS) clean
     240LIBC_BUILD = $(addsuffix .build,$(LIBC))
     241LIBS_BUILD = $(addsuffix .build,$(LIBS))
     242LIBN_BUILD = $(addsuffix .build,$(LIBN))
     243BUILDS := $(addsuffix .build,$(DIRS))
     244BUILDS_TESTS := $(addsuffix .build-test,$(DIRS) $(LIBS) lib/c)
     245
     246CLEANS := $(addsuffix .clean,$(DIRS)) $(addsuffix .clean,$(LIBN)) $(addsuffix .clean,$(LIBS)) $(addsuffix .clean,$(LIBC))
     247
     248.PHONY: all $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD) $(BUILDS) $(CLEANS) clean
    255249
    256250all: $(BUILDS) $(BUILDS_TESTS)
    257251
    258 $(BUILDS_TESTS): $(BASE_BUILDS) $(BUILDS)
     252$(BUILDS_TESTS): $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD)
    259253        $(MAKE) -r -C $(basename $@) all-test PRECHECK=$(PRECHECK)
    260254
    261255clean: $(CLEANS)
    262         find lib app drv srv -name '*.o' -follow -exec rm \{\} \;
    263         find lib app drv srv -name '*.lo' -follow -exec rm \{\} \;
    264         find lib app drv srv -name '*.d' -follow -exec rm \{\} \;
    265256
    266257$(CLEANS):
    267         -$(MAKE) -r -C $(basename $@) fasterclean
    268 
    269 $(BASE_BUILDS) $(BUILDS):
    270         $(MAKE) -r -C $(basename $@) all PRECHECK=$(PRECHECK)
    271 
    272 $(DEPS): %/deps.mk: %/Makefile
    273         $(MAKE) -r -C $(@D) deps.mk SELF_TARGET="$(@D).build"
    274 
    275 # Special case for base libraries.
    276 lib/c.build: lib/softfloat.build lib/softint.build
    277 
    278 $(BUILDS): $(BASE_BUILDS)
    279 
    280 -include $(DEPS)
    281 
     258        -$(MAKE) -r -C $(basename $@) clean
     259
     260$(BUILDS): $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD)
     261        $(MAKE) -r -C $(basename $@) all PRECHECK=$(PRECHECK)
     262
     263$(LIBN_BUILD): $(LIBC_BUILD) $(LIBS_BUILD)
     264        $(MAKE) -r -C $(basename $@) all PRECHECK=$(PRECHECK)
     265
     266$(LIBS_BUILD): $(LIBC_BUILD)
     267        $(MAKE) -r -C $(basename $@) all PRECHECK=$(PRECHECK)
     268
     269$(LIBC_BUILD):
     270        $(MAKE) -r -C $(basename $@) all PRECHECK=$(PRECHECK)
Note: See TracChangeset for help on using the changeset viewer.