Changeset 04803bf in mainline for uspace/Makefile


Ignore:
Timestamp:
2011-03-21T22:00:17Z (13 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
143932e
Parents:
b50b5af2 (diff), 7308e84 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes (needs fixes).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/Makefile

    rb50b5af2 r04803bf  
    2727#
    2828
    29 ## Include configuration
     29-include ../Makefile.common
     30-include ../Makefile.config
     31
     32## Common binaries
    3033#
    3134
    32 -include ../Makefile.config
    33 
    3435DIRS = \
    35         lib/libc \
    36         lib/libfs \
    37         lib/libblock \
    38         lib/softint \
    39         lib/softfloat \
    40         lib/libtest \
     36        app/bdsh \
     37        app/dload \
     38        app/dltest2 \
     39        app/edit \
     40        app/getterm \
     41        app/init \
     42        app/kill \
     43        app/killall \
     44        app/klog \
     45        app/mkfat \
     46        app/redir \
     47        app/sbi \
     48        app/stats \
     49        app/taskdump \
     50        app/tester \
     51        app/tetris \
     52        app/trace \
     53        app/top \
     54        app/netecho \
     55        app/nettest1 \
     56        app/nettest2 \
     57        app/ping \
     58        app/websrv \
     59        app/sysinfo \
     60        srv/clip \
     61        srv/devmap \
     62        srv/devman \
     63        srv/loader \
     64        srv/ns \
     65        srv/taskmon \
     66        srv/vfs \
    4167        srv/bd/ata_bd \
    4268        srv/bd/file_bd \
    4369        srv/bd/gxe_bd \
    4470        srv/bd/rd \
    45         srv/ns \
    46         srv/loader \
    47         srv/fb \
    48         srv/kbd \
    49         srv/console \
     71        srv/bd/part/guid_part \
     72        srv/bd/part/mbr_part \
    5073        srv/fs/fat \
    5174        srv/fs/tmpfs \
    5275        srv/fs/devfs \
    53         srv/vfs \
    54         srv/devmap \
    55         app/tetris \
    56         app/tester \
    57         app/dltest2 \
    58         app/dload \
    59         app/trace \
    60         app/klog \
    61         app/init \
    62         app/getvc \
    63         app/bdsh
     76        srv/hid/adb_mouse \
     77        srv/hid/char_mouse \
     78        srv/hid/s3c24xx_ts \
     79        srv/hid/fb \
     80        srv/hid/kbd \
     81        srv/hw/char/i8042 \
     82        srv/hw/char/s3c24xx_uart \
     83        srv/hw/netif/ne2000 \
     84        srv/net/netif/lo \
     85        srv/net/il/arp \
     86        srv/net/il/ip \
     87        srv/net/tl/icmp \
     88        srv/net/tl/udp \
     89        srv/net/tl/tcp \
     90        srv/net/net \
     91        drv/root \
     92        drv/rootvirt \
     93        drv/test1 \
     94        drv/test2
     95
     96## Shared C library
     97ifeq ($(CONFIG_BUILD_SHARED_LIBC), y)
     98        DIRS += \
     99                lib/c/shared \
     100                app/dltest
     101endif
     102
     103## Networking
     104#
     105
     106DIRS += \
     107        srv/net/nil/eth \
     108        srv/net/nil/nildummy
     109
     110## Platform-specific hardware support
     111#
     112
     113ifneq ($(UARCH),abs32le)
     114        DIRS += srv/hid/console
     115endif
    64116
    65117ifeq ($(UARCH),amd64)
    66         DIRS += srv/pci
     118        DIRS += \
     119                drv/rootpc \
     120                drv/pciintel \
     121                drv/isa \
     122                drv/ns8250 \
     123                srv/hw/irc/apic \
     124                srv/hw/irc/i8259
    67125endif
    68126
    69127ifeq ($(UARCH),ia32)
    70         DIRS += srv/pci
     128        DIRS += \
     129                drv/rootpc \
     130                drv/pciintel \
     131                drv/isa \
     132                drv/ns8250 \
     133                srv/hw/irc/apic \
     134                srv/hw/irc/i8259
     135endif
     136
     137ifeq ($(UARCH),ppc32)
     138        DIRS += srv/hw/bus/cuda_adb
    71139endif
    72140
    73141ifeq ($(UARCH),sparc64)
    74142        DIRS += \
    75                 srv/cir/fhc \
    76                 srv/cir/obio
     143                srv/hw/irc/fhc \
     144                srv/hw/irc/obio
    77145endif
    78146
    79 ifeq ($(CONFIG_BUILD_SHARED_LIBC), y)
    80         DIRS += \
    81                 lib/libc/shared \
    82                 app/dltest
    83 endif
     147## System libraries
     148#
    84149
     150LIBC = lib/c
     151LIBS = \
     152        lib/fs \
     153        lib/block \
     154        lib/clui \
     155        lib/softint \
     156        lib/softfloat \
     157        lib/libtest \
     158        lib/drv \
     159        lib/packet \
     160        lib/net
    85161
     162LIBC_BUILD = $(addsuffix .build,$(LIBC))
     163LIBS_BUILD = $(addsuffix .build,$(LIBS))
     164LIBN_BUILD = $(addsuffix .build,$(LIBN))
    86165BUILDS := $(addsuffix .build,$(DIRS))
    87 CLEANS := $(addsuffix .clean,$(DIRS))
    88166
    89 .PHONY: all $(BUILDS) $(CLEANS) clean kerninc
     167CLEANS := $(addsuffix .clean,$(DIRS)) $(addsuffix .clean,$(LIBN)) $(addsuffix .clean,$(LIBS)) $(addsuffix .clean,$(LIBC))
    90168
    91 all: ../Makefile.config ../config.h ../config.defs $(BUILDS)
     169.PHONY: all $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD) $(BUILDS) $(CLEANS) clean
     170
     171all: $(BUILDS)
    92172
    93173clean: $(CLEANS)
     
    96176        -$(MAKE) -C $(basename $@) clean
    97177
    98 $(BUILDS):
    99         $(MAKE) -C $(basename $@) all
     178$(BUILDS): $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD)
     179        $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
     180
     181$(LIBN_BUILD): $(LIBC_BUILD) $(LIBS_BUILD)
     182        $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
     183
     184$(LIBS_BUILD): $(LIBC_BUILD)
     185        $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
     186
     187$(LIBC_BUILD):
     188        $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
Note: See TracChangeset for help on using the changeset viewer.