Changes in uspace/Makefile [684f767:63f8966] in mainline


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/Makefile

    r684f767 r63f8966  
    2727#
    2828
    29 ## Include configuration
     29-include ../Makefile.common
     30-include ../Makefile.config
     31
     32## Common binaries
    3033#
    31 
    32 -include ../Makefile.config
    3334
    3435DIRS = \
     
    6566        srv/hw/char/i8042
    6667
     68## Platform-specific hardware support
     69#
     70
    6771ifneq ($(UARCH),abs32le)
    6872        DIRS += srv/hid/console
     
    8791endif
    8892
    89 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
    90123LIBS = \
    91         lib/libfs \
    92         lib/libblock \
     124        lib/fs \
     125        lib/block \
    93126        lib/softint \
    94127        lib/softfloat \
    95128
    96129ifeq ($(UARCH),amd64)
    97         LIBS += lib/libpci
     130        LIBS += lib/pci
    98131endif
    99132
    100133ifeq ($(UARCH),ia32)
    101         LIBS += lib/libpci
     134        LIBS += lib/pci
    102135endif
    103136
     
    106139LIBS_BUILD = $(addsuffix .build,$(LIBS))
    107140
    108 BUILDS := $(addsuffix .build,$(DIRS))
    109 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))
    110154
    111155.PHONY: all $(LIBC_BUILD) $(LIBS_BUILD) $(BUILDS) $(CLEANS) clean
Note: See TracChangeset for help on using the changeset viewer.