diff mbox

[v3,3/6] linux-generic: odp-ipfw: ipfw stub changes

Message ID 1458052930-28569-1-git-send-email-venkatesh.vivekanandan@linaro.org
State Superseded
Headers show

Commit Message

Venkatesh Vivekanandan March 15, 2016, 2:42 p.m. UTC
From: Venkatesh Vivekanandan <venkatesh.vivekanandan@linaro.org>

Signed-off-by: Venkatesh Vivekanandan <venkatesh.vivekanandan@linaro.org>
---
 example/ipfw/ipfw/Makefile.am | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)
diff mbox

Patch

diff --git a/example/ipfw/ipfw/Makefile.am b/example/ipfw/ipfw/Makefile.am
index a6759e3..9083a56 100644
--- a/example/ipfw/ipfw/Makefile.am
+++ b/example/ipfw/ipfw/Makefile.am
@@ -1,11 +1,17 @@ 
 #include $(top_srcdir)/example/Makefile.inc
 
-OBJDIR=objs
+OBJDIR=../objs/include_e
 # ipfw and uipfw are built in subdirs
-INCDIRS  = -I ../$(OBJDIR)/include_e -DEMULATE_SYSCTL
+INCDIRS  = -I $(OBJDIR) -DEMULATE_SYSCTL
 INCDIRS += -I ../sys -I ../extra/sys -I ../extra/sys/contrib/pf
 
-OBJPATH = ./$(OBJDIR)
+EDIR	 = ../objs $(OBJDIR) $(OBJDIR)/sys
+EFILES	 = libutil.h timeconv.h
+EFILES	+= sys/sockio.h
+
+include_e$(EXEEXT):
+	for i in $(EDIR); do mkdir -p $$i; done
+	for i in $(EFILES); do touch $(OBJDIR)/$$i; done
 
 E_CFLAGS = $(INCDIRS)
 E_CFLAGS += -include ../extra/glue.h	# headers
@@ -25,7 +31,7 @@  AM_CFLAGS = $(E_CFLAGS)
 
 AM_LDFLAGS += -lutil
 
-bin_PROGRAMS = odp_ipfw$(EXEEXT)
+bin_PROGRAMS = include_e$(EXEEXT) odp_ipfw$(EXEEXT)
 odp_ipfw_LDFLAGS = $(AM_LDFLAGS) -static
 odp_ipfw_CFLAGS = $(AM_CFLAGS) -I${top_srcdir}/example