Changes in uspace/Makefile [3d482e0:849ed54] in mainline


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/Makefile

    r3d482e0 r849ed54  
    4242        app/redir \
    4343        app/sbi \
    44         app/stats \
    4544        app/taskdump \
    46         app/tasks \
    4745        app/tester \
    4846        app/tetris \
    4947        app/trace \
    50         app/top \
    51         app/dummy_load \
    5248        srv/clip \
    5349        srv/devmap \
     
    7066        srv/hid/kbd \
    7167        srv/hw/char/i8042 \
    72         srv/hw/netif/dp8390 \
    73         srv/net/cfg \
    74         srv/net/netif/lo \
    75         srv/net/il/arp \
    76         srv/net/il/ip \
    77         srv/net/tl/icmp \
    78         srv/net/tl/udp \
    79         srv/net/tl/tcp \
    80         srv/net/net \
    81         srv/net/netstart \
    82         app/netecho \
    83         app/nettest1 \
    84         app/nettest2 \
    85         app/ping
    86 
    87 ## Networking
    88 #
    89 
    90 ifeq ($(CONFIG_NETIF_NIL_BUNDLE),y)
    91         LIBN = \
    92                 srv/net/nil/eth \
    93                 srv/net/nil/nildummy
    94 else
    95         DIRS += \
    96                 srv/net/nil/eth \
    97                 srv/net/nil/nildummy
    98 endif
     68        srv/hw/netif/dp8390
    9969
    10070## Platform-specific hardware support
     
    12393endif
    12494
     95## Networking
     96#
     97
     98NETWORKING_COMMON = \
     99        srv/net/netif/lo \
     100        srv/net/nil/eth \
     101        srv/net/nil/nildummy \
     102        srv/net/net \
     103        srv/net/netstart \
     104        app/netecho \
     105        app/nettest1 \
     106        app/nettest2 \
     107        app/ping
     108
     109NETWORKING_MODULAR = \
     110        srv/net/il/arp \
     111        srv/net/il/ip \
     112        srv/net/tl/icmp \
     113        srv/net/tl/udp \
     114        srv/net/tl/tcp
     115
    125116## System libraries
    126117#
     
    134125        lib/softfloat \
    135126        lib/socket \
    136         lib/net
     127        lib/net \
     128        lib/netif
    137129
    138130ifeq ($(UARCH),amd64)
     
    147139LIBC_BUILD = $(addsuffix .build,$(LIBC))
    148140LIBS_BUILD = $(addsuffix .build,$(LIBS))
    149 LIBN_BUILD = $(addsuffix .build,$(LIBN))
    150 BUILDS := $(addsuffix .build,$(DIRS))
    151141
    152 CLEANS := $(addsuffix .clean,$(DIRS)) $(addsuffix .clean,$(LIBN)) $(addsuffix .clean,$(LIBS)) $(addsuffix .clean,$(LIBC))
     142ifeq ($(CONFIG_NETWORKING),modular)
     143        BUILDS := $(addsuffix .build,$(DIRS)) $(addsuffix .build,$(NETWORKING_COMMON)) $(addsuffix .build,$(NETWORKING_MODULAR))
     144endif
    153145
    154 .PHONY: all $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD) $(BUILDS) $(CLEANS) clean
     146ifeq ($(CONFIG_NETWORKING),module)
     147        BUILDS := $(addsuffix .build,$(DIRS)) $(addsuffix .build,$(NETWORKING_COMMON))
     148endif
     149
     150CLEANS := $(addsuffix .clean,$(DIRS)) $(addsuffix .clean,$(NETWORKING_COMMON)) $(addsuffix .clean,$(NETWORKING_MODULAR)) $(addsuffix .clean,$(LIBS)) $(addsuffix .clean,$(LIBC))
     151
     152.PHONY: all $(LIBC_BUILD) $(LIBS_BUILD) $(BUILDS) $(CLEANS) clean
    155153
    156154all: $(BUILDS)
     
    161159        -$(MAKE) -C $(basename $@) clean
    162160
    163 $(BUILDS): $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD)
    164         $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
    165 
    166 $(LIBN_BUILD): $(LIBC_BUILD) $(LIBS_BUILD)
     161$(BUILDS): $(LIBC_BUILD) $(LIBS_BUILD)
    167162        $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
    168163
Note: See TracChangeset for help on using the changeset viewer.