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


Ignore:
Timestamp:
2010-03-30T18:39:04Z (14 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/net/Makefile

    r7d6fe4db r849ed54  
    2828#
    2929
    30 NET_BASE = ..
    3130USPACE_PREFIX = ../../..
    3231ROOT_PATH = $(USPACE_PREFIX)/..
     32LIBS = $(LIBNETIF_PREFIX)/libnetif.a $(LIBNET_PREFIX)/libnet.a $(LIBSOCKET_PREFIX)/libsocket.a
     33EXTRA_CFLAGS = -I$(LIBNETIF_PREFIX)/include -I$(LIBNET_PREFIX)/include -I$(LIBSOCKET_PREFIX)/include
    3334
    3435COMMON_MAKEFILE = $(ROOT_PATH)/Makefile.common
    3536CONFIG_MAKEFILE = $(ROOT_PATH)/Makefile.config
    3637
    37 BINARY = net
    38 
    3938-include $(COMMON_MAKEFILE)
    4039-include $(CONFIG_MAKEFILE)
    4140
     41BINARY = net
     42
    4243SOURCES = \
    4344        net.c \
    44         $(NET_BASE)/module.c \
    45         $(NET_BASE)/modules.c \
    46         $(NET_BASE)/netif/netif_remote.c \
    47         $(NET_BASE)/structures/char_map.c \
    48         $(NET_BASE)/structures/measured_strings.c \
    49         $(NET_BASE)/structures/module_map.c \
    50         $(NET_BASE)/structures/packet/packet.c \
    51         $(NET_BASE)/structures/packet/packet_client.c \
    52         $(NET_BASE)/structures/packet/packet_server.c
    53 
    54 ifeq ($(CONFIG_NETWORKING),module)
    55         SOURCES += \
    56                 net_bundle.c \
    57                 $(NET_BASE)/checksum.c \
    58                 $(NET_BASE)/inet.c \
    59                 $(NET_BASE)/il/arp/arp.c \
    60                 $(NET_BASE)/il/ip/ip.c \
    61                 $(NET_BASE)/il/ip/ip_client.c \
    62                 $(NET_BASE)/socket/socket_core.c \
    63                 $(NET_BASE)/tl/icmp/icmp.c \
    64                 $(NET_BASE)/tl/icmp/icmp_client.c \
    65                 $(NET_BASE)/tl/tcp/tcp.c \
    66                 $(NET_BASE)/tl/tl_common.c \
    67                 $(NET_BASE)/tl/udp/udp.c \
    68                 $(NET_BASE)/structures/dynamic_fifo.c
    69 endif
    70 
    71 ifeq ($(CONFIG_NETWORKING),modular)
    72         SOURCES += \
    73                 net_standalone.c \
    74                 $(NET_BASE)/il/ip/ip_remote.c
    75 endif
     45        net_standalone.c
    7646
    7747include $(USPACE_PREFIX)/Makefile.common
Note: See TracChangeset for help on using the changeset viewer.