Changeset 371bd7d in mainline for uspace/Makefile


Ignore:
Timestamp:
2010-03-27T09:22:17Z (15 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
36a75a2
Parents:
cd82bb1 (diff), eaf22d4 (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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/Makefile

    rcd82bb1 r371bd7d  
    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 = \
     36        app/bdsh \
     37        app/edit \
     38        app/getterm \
     39        app/init \
     40        app/klog \
     41        app/mkfat \
     42        app/redir \
     43        app/taskdump \
     44        app/tester \
     45        app/tetris \
     46        app/trace \
     47        srv/clip \
     48        srv/devmap \
     49        srv/loader \
     50        srv/ns \
     51        srv/taskmon \
     52        srv/vfs \
    3553        srv/bd/ata_bd \
    3654        srv/bd/file_bd \
    3755        srv/bd/gxe_bd \
    3856        srv/bd/rd \
    39         srv/ns \
    40         srv/loader \
    41         srv/fb \
    42         srv/kbd \
    43         srv/console \
     57        srv/bd/part/guid_part \
     58        srv/bd/part/mbr_part \
    4459        srv/fs/fat \
    4560        srv/fs/tmpfs \
    4661        srv/fs/devfs \
    47         srv/vfs \
    48         srv/devmap \
    49         srv/part/mbr_part \
    50         app/edit \
    51         app/tetris \
    52         app/tester \
    53         app/trace \
    54         app/klog \
    55         app/init \
    56         app/getvc \
    57         app/redir \
    58         app/bdsh
     62        srv/hid/adb_mouse \
     63        srv/hid/char_mouse \
     64        srv/hid/fb \
     65        srv/hid/kbd \
     66        srv/hw/char/i8042
     67
     68## Platform-specific hardware support
     69#
     70
     71ifneq ($(UARCH),abs32le)
     72        DIRS += srv/hid/console
     73endif
    5974
    6075ifeq ($(UARCH),amd64)
    61         DIRS += srv/pci
     76        DIRS += srv/hw/bus/pci
    6277endif
    6378
    6479ifeq ($(UARCH),ia32)
    65         DIRS += srv/pci
     80        DIRS += srv/hw/bus/pci
     81endif
     82
     83ifeq ($(UARCH),ppc32)
     84        DIRS += srv/hw/bus/cuda_adb
    6685endif
    6786
    6887ifeq ($(UARCH),sparc64)
    6988        DIRS += \
    70                 srv/cir/fhc \
    71                 srv/cir/obio
     89                srv/hw/cir/fhc \
     90                srv/hw/cir/obio
    7291endif
    7392
    74 LIBC = lib/libc
     93## Networking
     94#
     95
     96ifeq ($(CONFIG_NETIF_DP8390),y)
     97        DIRS += srv/net/netif/dp8390
     98endif
     99
     100NETWORKING_COMMON = \
     101        srv/net/netif/lo \
     102        srv/net/nil/eth \
     103        srv/net/nil/nildummy \
     104        srv/net/net \
     105        srv/net/net/start \
     106        srv/net/socket \
     107        srv/net/app/echo \
     108        srv/net/app/ping \
     109        srv/net/app/nettest1 \
     110        srv/net/app/nettest2
     111
     112NETWORKING_MODULAR = \
     113        srv/net/il/arp \
     114        srv/net/il/ip \
     115        srv/net/tl/icmp \
     116        srv/net/tl/udp \
     117        srv/net/tl/tcp
     118
     119## System libraries
     120#
     121
     122LIBC = lib/c
    75123LIBS = \
    76         lib/libfs \
    77         lib/libblock \
     124        lib/fs \
     125        lib/block \
    78126        lib/softint \
    79         lib/softfloat
     127        lib/softfloat \
     128
     129ifeq ($(UARCH),amd64)
     130        LIBS += lib/pci
     131endif
     132
     133ifeq ($(UARCH),ia32)
     134        LIBS += lib/pci
     135endif
     136
    80137
    81138LIBC_BUILD = $(addsuffix .build,$(LIBC))
    82139LIBS_BUILD = $(addsuffix .build,$(LIBS))
    83140
    84 BUILDS := $(addsuffix .build,$(DIRS))
    85 CLEANS := $(addsuffix .clean,$(DIRS)) $(addsuffix .clean,$(LIBS)) $(addsuffix .clean,$(LIBC))
     141ifeq ($(CONFIG_NETWORKING),modular)
     142        BUILDS := $(addsuffix .build,$(DIRS)) $(addsuffix .build,$(NETWORKING_COMMON)) $(addsuffix .build,$(NETWORKING_MODULAR))
     143endif
     144
     145ifeq ($(CONFIG_NETWORKING),module)
     146        BUILDS := $(addsuffix .build,$(DIRS)) $(addsuffix .build,$(NETWORKING_COMMON))
     147endif
     148
     149ifeq ($(CONFIG_NETWORKING),none)
     150        BUILDS := $(addsuffix .build,$(DIRS))
     151endif
     152
     153CLEANS := $(addsuffix .clean,$(DIRS)) $(addsuffix .clean,$(NETWORKING_COMMON)) $(addsuffix .clean,$(NETWORKING_MODULAR)) $(addsuffix .clean,$(LIBS)) $(addsuffix .clean,$(LIBC))
    86154
    87155.PHONY: all $(LIBC_BUILD) $(LIBS_BUILD) $(BUILDS) $(CLEANS) clean
     
    95163
    96164$(BUILDS): $(LIBC_BUILD) $(LIBS_BUILD)
    97         $(MAKE) -C $(basename $@) all
     165        $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
    98166
    99167$(LIBS_BUILD): $(LIBC_BUILD)
    100         $(MAKE) -C $(basename $@) all
     168        $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
    101169
    102170$(LIBC_BUILD):
    103         $(MAKE) -C $(basename $@) all
     171        $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
Note: See TracChangeset for help on using the changeset viewer.