[qca-nss-sfe] Split sfe_ipv4 and sfe_ipv6 to protocol specific files
Change-Id: Idb9c04dba1ffc91630dc9b2dfeb520e0613580f0
Signed-off-by: Ratheesh Kannoth <quic_rkannoth@quicinc.com>
diff --git a/Makefile b/Makefile
index 12a3777..f026073 100644
--- a/Makefile
+++ b/Makefile
@@ -2,14 +2,25 @@
# Makefile for Shortcut FE.
#
+SFE_BASE_OBJS := sfe.o sfe_init.o
+SFE_IPV4_OBJS := sfe_ipv4.o sfe_ipv4_udp.o sfe_ipv4_tcp.o sfe_ipv4_icmp.o
+SFE_IPV6_OBJS := sfe_ipv6.o sfe_ipv6_udp.o sfe_ipv6_tcp.o sfe_ipv6_icmp.o
+
obj-m += qca-nss-sfe.o
-qca-nss-sfe-objs := sfe_ipv4.o sfe.o sfe_init.o
+#
+# Base files
+#
+qca-nss-sfe-objs := $(SFE_BASE_OBJS)
+
+#
+# IPv4 files
+#
+qca-nss-sfe-objs += $(SFE_IPV4_OBJS)
ifdef SFE_SUPPORT_IPV6
-qca-nss-sfe-objs += \
- sfe_ipv6.o
+qca-nss-sfe-objs += $(SFE_IPV6_OBJS)
ccflags-y += -DSFE_SUPPORT_IPV6
endif
-ccflags-y += -Werror -Wall -Iexports/
+cflags-y += -Werror -Wall -Iexports/