Put "+ext" in the distribution filename if OpenFlow extensions are included.
[sliver-openvswitch.git] / Make.vars
index ceef15b..3772773 100644 (file)
--- a/Make.vars
+++ b/Make.vars
@@ -1,19 +1,25 @@
 # -*- makefile -*-
 
 AM_CPPFLAGS = $(SSL_CFLAGS)
-LIBS = $(SSL_LIBS)
-
-COMMON_FLAGS = -DVERSION=\"$(VERSION)\"
-if NDEBUG
-COMMON_FLAGS += -DNDEBUG -fomit-frame-pointer
+AM_CPPFLAGS += -I $(ofp_top_srcdir)/include
+if HAVE_EXT
+AM_CPPFLAGS += -I $(ofp_top_srcdir)/ext/include
 endif
 
-AM_CFLAGS = $(COMMON_FLAGS)
-AM_CFLAGS += -Wstrict-prototypes -I $(top_srcdir)/include
+AM_CFLAGS = -DVERSION=\"$(VERSION)\"
+AM_CFLAGS += -Wstrict-prototypes
 
 rundir = $(localstatedir)/run
 AM_CFLAGS += -DRUNDIR=\"$(rundir)\"
 
-if !NDEBUG
+if NDEBUG
+AM_CFLAGS += -DNDEBUG -fomit-frame-pointer
+else
 AM_LDFLAGS = -export-dynamic
 endif
+
+do_subst = sed -e 's,[@]pkidir[@],$(pkidir),g' \
+               -e 's,[@]rundir[@],$(rundir),g' \
+               -e 's,[@]PERL[@],$(PERL),g'
+ro_script = sed "`printf '1a\\' && printf '\\n\# -*- buffer-read-only: t -*-'`"
+ro_man = printf '.\\" Local variables:\n.\\" buffer-read-only: t\n.\\" End:\n'