2013-08-26 11:58:58 +00:00
|
|
|
SHARED_LIB = yes
|
|
|
|
|
|
|
|
LIB_DIR = $(REP_DIR)/src/lib/lxip
|
|
|
|
LIB_INC_DIR = $(LIB_DIR)/include
|
|
|
|
|
2016-05-18 16:49:02 +00:00
|
|
|
LIBS += lxip_include
|
2013-08-26 11:58:58 +00:00
|
|
|
|
2014-10-29 17:52:47 +00:00
|
|
|
LX_CONTRIB_DIR := $(call select_from_ports,dde_linux)/src/lib/lxip
|
2014-05-20 14:09:29 +00:00
|
|
|
NET_DIR := $(LX_CONTRIB_DIR)/net
|
2013-08-26 11:58:58 +00:00
|
|
|
|
|
|
|
SETUP_SUFFIX =
|
|
|
|
CC_OPT += -DSETUP_SUFFIX=$(SETUP_SUFFIX)
|
|
|
|
|
|
|
|
CC_OPT += -U__linux__ -D__KERNEL__
|
|
|
|
CC_OPT += -DCONFIG_INET -DCONFIG_BASE_SMALL=0 -DCONFIG_DEBUG_LOCK_ALLOC \
|
|
|
|
-DCONFIG_IP_PNP_DHCP
|
|
|
|
|
|
|
|
CC_WARN = -Wall -Wno-unused-variable -Wno-uninitialized \
|
|
|
|
-Wno-unused-function -Wno-overflow -Wno-pointer-arith \
|
2020-01-03 14:52:14 +00:00
|
|
|
-Wno-sign-compare -Wno-builtin-declaration-mismatch
|
2013-08-26 11:58:58 +00:00
|
|
|
|
2017-04-13 10:25:40 +00:00
|
|
|
CC_C_OPT += -std=gnu89
|
2014-02-10 11:13:56 +00:00
|
|
|
CC_C_OPT += -Wno-unused-but-set-variable -Wno-pointer-sign
|
2013-08-26 11:58:58 +00:00
|
|
|
|
|
|
|
CC_C_OPT += -include $(LIB_INC_DIR)/lx_emul.h
|
2021-03-14 01:24:54 +00:00
|
|
|
CC_CXX_OPT += -fpermissive
|
2013-08-26 11:58:58 +00:00
|
|
|
|
2018-09-03 16:06:09 +00:00
|
|
|
SRC_CC = dummies.cc lxcc_emul.cc nic_handler.cc \
|
2016-10-19 12:42:27 +00:00
|
|
|
timer_handler.cc random.cc
|
2013-08-26 11:58:58 +00:00
|
|
|
|
2021-03-08 10:30:41 +00:00
|
|
|
SRC_CC += malloc.cc printf.cc bug.cc env.cc
|
2016-05-18 16:49:02 +00:00
|
|
|
|
|
|
|
SRC_C += driver.c dummies_c.c lxc_emul.c
|
2013-08-26 11:58:58 +00:00
|
|
|
|
|
|
|
SRC_C += net/802/p8023.c
|
|
|
|
SRC_C += $(addprefix net/core/,$(notdir $(wildcard $(NET_DIR)/core/*.c)))
|
|
|
|
SRC_C += $(addprefix net/ipv4/,$(notdir $(wildcard $(NET_DIR)/ipv4/*.c)))
|
|
|
|
SRC_C += net/ethernet/eth.c
|
|
|
|
SRC_C += net/netlink/af_netlink.c
|
|
|
|
SRC_C += net/sched/sch_generic.c
|
|
|
|
SRC_C += lib/checksum.c
|
2016-05-18 16:49:02 +00:00
|
|
|
SRC_C += lib/rhashtable.c
|
2014-11-10 19:51:00 +00:00
|
|
|
SRC_C += drivers/net/loopback.c
|
2013-08-26 11:58:58 +00:00
|
|
|
|
|
|
|
#SRC_C = net/ipv4/inet_connection_sock.c
|
|
|
|
|
|
|
|
net/ethernet/eth.o: SETUP_SUFFIX="_eth"
|
|
|
|
|
2014-05-20 14:09:29 +00:00
|
|
|
vpath %.c $(LX_CONTRIB_DIR)
|
2013-08-26 11:58:58 +00:00
|
|
|
vpath %.c $(LIB_DIR)
|
|
|
|
vpath %.cc $(LIB_DIR)
|
2021-07-16 08:49:07 +00:00
|
|
|
vpath %.cc $(REP_DIR)/src/lib/legacy/lx_kit
|
2018-01-03 17:40:54 +00:00
|
|
|
|
|
|
|
CC_CXX_WARN_STRICT =
|