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


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/Makefile

    rb446b02 r53b9f2c  
    135135        srv/hid/remcons \
    136136        srv/hw/char/s3c24xx_uart \
    137         srv/hw/irc/obio \
    138137        srv/hid/rfb \
    139138        drv/audio/hdaudio \
     
    144143        drv/block/ata_bd \
    145144        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 \
    154153        drv/bus/usb/usbhub \
    155         drv/bus/usb/usbmast \
    156154        drv/bus/usb/usbmid \
    157155        drv/bus/usb/vhc \
    158156        drv/char/i8042 \
     157        drv/char/msim-con \
    159158        drv/char/ns8250 \
    160159        drv/char/pl050 \
    161         drv/char/ps2mouse \
    162         drv/char/atkbd \
    163         drv/char/xtkbd \
    164         drv/test/test1 \
    165         drv/test/test2 \
    166         drv/test/test3 \
     160        drv/char/ski-con \
     161        drv/char/sun4v-con \
    167162        drv/fb/amdm37x_dispc \
    168163        drv/fb/kfb \
     164        drv/hid/atkbd \
     165        drv/hid/ps2mouse \
     166        drv/hid/usbhid \
     167        drv/hid/xtkbd \
    169168        drv/intctl/apic \
    170169        drv/intctl/i8259 \
    171170        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 \
    183188        drv/time/cmos-rtc
    184189
     
    200205#
    201206
    202 LIBC = lib/c
     207BASE_LIBS = \
     208        lib/c \
     209        lib/softint \
     210        lib/softfloat
     211
    203212LIBS = \
    204213        lib/fs \
     
    211220        lib/scsi \
    212221        lib/compress \
    213         lib/softint \
    214         lib/softfloat \
    215222        lib/drv \
    216223        lib/graph \
     
    222229        lib/label \
    223230        lib/math \
     231        lib/minix \
    224232        lib/nettl \
    225233        lib/nic \
     
    238246        lib/ieee80211
    239247
    240 LIBC_BUILD = $(addsuffix .build,$(LIBC))
    241 LIBS_BUILD = $(addsuffix .build,$(LIBS))
    242 LIBN_BUILD = $(addsuffix .build,$(LIBN))
    243 BUILDS := $(addsuffix .build,$(DIRS))
    244 BUILDS_TESTS := $(addsuffix .build-test,$(DIRS) $(LIBS) lib/c)
    245 
    246 CLEANS := $(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
     248BASE_BUILDS := $(addsuffix .build,$(BASE_LIBS))
     249BUILDS := $(addsuffix .build,$(DIRS) $(LIBS))
     250BUILDS_TESTS := $(addsuffix .build-test,$(DIRS) $(LIBS) $(BASE_LIBS))
     251DEPS = $(addsuffix /deps.mk,$(DIRS) $(LIBS))
     252CLEANS := $(addsuffix .clean,$(DIRS) $(LIBS) $(BASE_LIBS))
     253
     254.PHONY: all $(BASE_BUILDS) $(BUILDS) $(BUILDS_TESTS) $(CLEANS) clean
    249255
    250256all: $(BUILDS) $(BUILDS_TESTS)
    251257
    252 $(BUILDS_TESTS): $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD)
     258$(BUILDS_TESTS): $(BASE_BUILDS) $(BUILDS)
    253259        $(MAKE) -r -C $(basename $@) all-test PRECHECK=$(PRECHECK)
    254260
    255261clean: $(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 \{\} \;
    256265
    257266$(CLEANS):
    258         -$(MAKE) -r -C $(basename $@) clean
    259 
    260 $(BUILDS): $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD)
     267        -$(MAKE) -r -C $(basename $@) fasterclean
     268
     269$(BASE_BUILDS) $(BUILDS):
    261270        $(MAKE) -r -C $(basename $@) all PRECHECK=$(PRECHECK)
    262271
    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)
     272$(DEPS): %/deps.mk: %/Makefile
     273        $(MAKE) -r -C $(@D) deps.mk SELF_TARGET="$(@D).build"
     274
     275# Special case for base libraries.
     276lib/c.build: lib/softfloat.build lib/softint.build
     277
     278$(BUILDS): $(BASE_BUILDS)
     279
     280-include $(DEPS)
     281
Note: See TracChangeset for help on using the changeset viewer.