Changeset 14f1db0 in mainline for uspace/srv/net/cfg/Makefile


Ignore:
Timestamp:
2010-04-09T12:54:57Z (15 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a1caa3c2
Parents:
24ab58b3
Message:

networking overhaul:

  • separation of conserns
  • removal of (almost all) overlaping symbols, libnetif is not needed anymore
  • again, it is possible to build the networking in multiple architecture configurations (however, currently only the bundling netif and nil layers is supported, more to come)
  • code style updates and fixes (still a huge amount of work to do)
File:
1 moved

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/cfg/Makefile

    r24ab58b3 r14f1db0  
    11#
    2 # Copyright (c) 2005 Martin Decky
    3 # Copyright (c) 2007 Jakub Jermar
     2# Copyright (c) 2010 Martin Decky
    43# All rights reserved.
    54#
     
    2827#
    2928
    30 USPACE_PREFIX = ../..
    31 EXTRA_CFLAGS = -Iinclude -I$(LIBNET_PREFIX)/include -I$(LIBSOCKET_PREFIX)/include
    32 LIBRARY = libnetif
     29USPACE_PREFIX = ../../..
     30ROOT_PATH = $(USPACE_PREFIX)/..
    3331
    34 SOURCES = \
    35         generic/netif_remote.c
     32COMMON_MAKEFILE = $(ROOT_PATH)/Makefile.common
     33CONFIG_MAKEFILE = $(ROOT_PATH)/Makefile.config
    3634
    37 include $(USPACE_PREFIX)/Makefile.common
     35-include $(COMMON_MAKEFILE)
     36-include $(CONFIG_MAKEFILE)
     37
     38ifeq ($(CONFIG_NETIF_NIL_BUNDLE),y)
     39        LO_SOURCE = lo.netif_nil_bundle
     40        NE2K_SOURCE = ne2k.netif_nil_bundle
     41else
     42        LO_SOURCE = lo.netif_standalone
     43        NE2K_SOURCE = ne2k.netif_standalone
     44endif
     45
     46LO_TARGET = lo
     47NE2K_TARGET = ne2k
     48
     49.PHONY: all clean
     50
     51all: $(LO_TARGET) $(NE2K_TARGET)
     52
     53clean:
     54        rm -f $(LO_TARGET) $(NE2K_TARGET)
     55
     56$(LO_TARGET): $(LO_SOURCE)
     57        cp $< $@
     58
     59$(NE2K_TARGET): $(NE2K_SOURCE)
     60        cp $< $@
Note: See TracChangeset for help on using the changeset viewer.