summaryrefslogtreecommitdiff
path: root/libdde_linux26/lib/src_ip/Makefile
diff options
context:
space:
mode:
authorZheng Da <zhengda1936@gmail.com>2009-12-06 05:26:23 +0100
committerZheng Da <zhengda1936@gmail.com>2009-12-06 05:26:23 +0100
commit8a6d48c0542876eb3acfc0970c0ab7872db08d5f (patch)
tree496e78bc728317ea779781b92f897d16936ee231 /libdde_linux26/lib/src_ip/Makefile
parentb4bffcfcdf3ab7a55d664e9aa5907f88da503f38 (diff)
check in the original version of dde linux26.
Diffstat (limited to 'libdde_linux26/lib/src_ip/Makefile')
-rw-r--r--libdde_linux26/lib/src_ip/Makefile52
1 files changed, 52 insertions, 0 deletions
diff --git a/libdde_linux26/lib/src_ip/Makefile b/libdde_linux26/lib/src_ip/Makefile
new file mode 100644
index 00000000..9665ff9b
--- /dev/null
+++ b/libdde_linux26/lib/src_ip/Makefile
@@ -0,0 +1,52 @@
+PKGDIR ?= ../../..
+L4DIR ?= $(PKGDIR)/../..
+CONTRIB ?= $(PKGDIR)/linux26/contrib
+
+-include $(PKGDIR_OBJ)/Makeconf
+
+ifeq ($(CONFIG_DDE26_NET),y)
+TARGET += libdde_linux26_net_ip.a
+endif
+
+SYSTEMS = x86-l4v2
+
+ifeq ($(ARCH), x86)
+ARCH_DIR = arch/i386
+endif
+
+# contrib sources are in $(CONTRIB)
+vpath %.c $(CONTRIB) $(PKGDIR)/linux26/lib/src
+vpath %.S $(CONTRIB) $(PKGDIR)/linux26/lib/src
+
+PRIVATE_INCDIR += $(CONTRIB)/drivers/pci $(PKGDIR)/linux26/lib/src/arch/l4 \
+ $(CONTRIB)/$(ARCH_DIR)/pci $(CONTRIB)/drivers/base/ \
+ $(CONTRIB)/lib $(PKGDIR_OBJ) $(CONTRIB)/net/core
+
+ifeq ($(ARCH), x86)
+SRC_S_libdde_linux26_net_ip.a += $(ARCH_DIR)/lib/checksum.S
+endif
+
+SRC_C_libdde_linux26_net_ip.a += \
+ arch/l4/net.c \
+ drivers/net/mii.c \
+ net/core/skbuff.c \
+ net/core/utils.c \
+ net/core/dev.c \
+ net/core/ethtool.c \
+ net/core/link_watch.c \
+ net/core/dev_mcast.c \
+ net/core/neighbour.c \
+ net/core/netevent.c \
+ net/ethernet/eth.c \
+ net/sched/sch_generic.c \
+ arch/l4/inodes.c \
+ mm/memory.c \
+ net/core/filter.c \
+ net/core/rtnetlink.c \
+ net/core/sock.c \
+ net/netlink/af_netlink.c \
+ net/netlink/attr.c
+
+include $(PKGDIR)/linux26/Makeconf
+
+include $(L4DIR)/mk/lib.mk