Changeset 849ed54 in mainline for uspace/srv/hw/netif/dp8390/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 moved

Legend:

Unmodified
Added
Removed
  • uspace/srv/hw/netif/dp8390/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 = dp8390
    38 
    3938-include $(COMMON_MAKEFILE)
    4039-include $(CONFIG_MAKEFILE)
     40
     41ifeq ($(CONFIG_NETWORKING),modular)
     42        BINARY = dp8390
     43endif
     44
     45ifeq ($(CONFIG_NETWORKING),module)
     46        LIBRARY = libdp8390
     47endif
    4148
    4249SOURCES = \
    4350        dp8390.c \
    4451        dp8390_module.c \
    45         ne2000.c \
    46         $(NET_BASE)/module.c \
    47         $(NET_BASE)/modules.c \
    48         $(NET_BASE)/netif/netif.c \
    49         $(NET_BASE)/structures/measured_strings.c \
    50         $(NET_BASE)/structures/packet/packet.c \
    51         $(NET_BASE)/structures/packet/packet_client.c \
    52         $(NET_BASE)/structures/packet/packet_remote.c
    53 
    54 ifeq ($(CONFIG_NETWORKING),module)
    55         SOURCES += \
    56                 $(NET_BASE)/checksum.c \
    57                 $(NET_BASE)/nil/eth/eth.c \
    58                 $(NET_BASE)/net/net_remote.c \
    59                 $(NET_BASE)/netif/netif_nil_bundle.c
    60 endif
    61 
    62 ifeq ($(CONFIG_NETWORKING),modular)
    63         SOURCES += \
    64                 $(NET_BASE)/nil/nil_remote.c \
    65                 $(NET_BASE)/netif/netif_standalone.c
    66 endif
     52        ne2000.c
    6753
    6854include $(USPACE_PREFIX)/Makefile.common
Note: See TracChangeset for help on using the changeset viewer.