Changeset 849ed54 in mainline for uspace/srv/net/netif/lo/Makefile


Ignore:
Timestamp:
2010-03-30T18:39:04Z (15 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7553689
Parents:
7d6fe4db
Message:

Networking work:
Split the networking stack into end-user library (libsocket) and two helper libraries (libnet and libnetif).
Don't use over-the-hand compiling and linking, but rather separation of conserns.
There might be still some issues and the non-modular networking architecture is currently broken, but this will be fixed soon.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/netif/lo/Makefile

    r7d6fe4db r849ed54  
    2828#
    2929
    30 NET_BASE = ../..
    3130USPACE_PREFIX = ../../../..
    3231ROOT_PATH = $(USPACE_PREFIX)/..
     32LIBS = $(LIBNET_PREFIX)/libnet.a $(LIBSOCKET_PREFIX)/libsocket.a
     33EXTRA_CFLAGS = -I$(LIBNET_PREFIX)/include -I$(LIBSOCKET_PREFIX)/include
    3334
    3435COMMON_MAKEFILE = $(ROOT_PATH)/Makefile.common
    3536CONFIG_MAKEFILE = $(ROOT_PATH)/Makefile.config
    3637
    37 BINARY = lo
    38 
    3938-include $(COMMON_MAKEFILE)
    4039-include $(CONFIG_MAKEFILE)
    4140
    42 SOURCES = \
    43         lo.c \
    44         $(NET_BASE)/module.c \
    45         $(NET_BASE)/modules.c \
    46         $(NET_BASE)/net/net_remote.c \
    47         $(NET_BASE)/netif/netif.c \
    48         $(NET_BASE)/structures/measured_strings.c \
    49         $(NET_BASE)/structures/packet/packet.c \
    50         $(NET_BASE)/structures/packet/packet_client.c \
    51         $(NET_BASE)/structures/packet/packet_remote.c
     41ifeq ($(CONFIG_NETWORKING),modular)
     42        BINARY = lo
     43endif
    5244
    5345ifeq ($(CONFIG_NETWORKING),module)
    54         SOURCES += \
    55                 $(NET_BASE)/nil/nildummy/nildummy.c \
    56                 $(NET_BASE)/netif/netif_nil_bundle.c
     46        LIBRARY = liblo
    5747endif
    5848
    59 ifeq ($(CONFIG_NETWORKING),modular)
    60         SOURCES += \
    61                 $(NET_BASE)/nil/nil_remote.c \
    62                 $(NET_BASE)/netif/netif_standalone.c
    63 endif
     49SOURCES = \
     50        lo.c
    6451
    6552include $(USPACE_PREFIX)/Makefile.common
Note: See TracChangeset for help on using the changeset viewer.