Changeset 1b1164e8 in mainline for uspace/Makefile


Ignore:
Timestamp:
2010-03-23T14:44:00Z (14 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
63f8966
Parents:
d99c1d2
Message:

unify and simplify user space makefiles
rename NETWORKING configuration option to CONFIG_NETWORKING

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/Makefile

    rd99c1d2 r1b1164e8  
    2727#
    2828
    29 ## Include configuration
    30 #
    31 
    3229-include ../Makefile.common
    3330-include ../Makefile.config
     31
     32## Common binaries
     33#
    3434
    3535DIRS = \
     
    6464        srv/hid/fb \
    6565        srv/hid/kbd \
    66         srv/hw/char/i8042 \
    67         srv/net
     66        srv/hw/char/i8042
     67
     68## Platform-specific hardware support
     69#
    6870
    6971ifneq ($(UARCH),abs32le)
     
    8991endif
    9092
     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
    91122LIBC = lib/libc
    92123LIBS = \
     
    108139LIBS_BUILD = $(addsuffix .build,$(LIBS))
    109140
    110 BUILDS := $(addsuffix .build,$(DIRS))
    111 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))
    112154
    113155.PHONY: all $(LIBC_BUILD) $(LIBS_BUILD) $(BUILDS) $(CLEANS) clean
Note: See TracChangeset for help on using the changeset viewer.