@@ -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