X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=Makefile.am;h=de51e10f779794af0c9faa0af389e8fdb41d2bc7;hb=78f172aa4ea3acd28085a457059ad82ba2f2c79a;hp=18108cf020b4c264e04eb2a8bf92dfaf934de68e;hpb=064af42167bf4fc9aaea2702d80ce08074b889c0;p=sliver-openvswitch.git diff --git a/Makefile.am b/Makefile.am index 18108cf02..de51e10f7 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,16 +1,14 @@ +# Copyright (C) 2007, 2008, 2009 Nicira Networks, Inc. +# +# Copying and distribution of this file, with or without modification, +# are permitted in any medium without royalty provided the copyright +# notice and this notice are preserved. This file is offered as-is, +# without warranty of any kind. + AUTOMAKE_OPTIONS = foreign subdir-objects ACLOCAL_AMFLAGS = -I m4 SUBDIRS = datapath -if ENABLE_USERSPACE -if HAVE_DPKG_BUILDPACKAGE -distcheck-hook: - cd $(srcdir) && dpkg-buildpackage -rfakeroot -us -uc - cd $(srcdir) && fakeroot ./debian/rules clean -else -distcheck-hook: -endif - AM_CPPFLAGS = $(SSL_CFLAGS) AM_CPPFLAGS += $(NCURSES_CFLAGS) AM_CPPFLAGS += $(PCRE_CFLAGS) @@ -18,6 +16,7 @@ AM_CPPFLAGS += -I $(top_srcdir)/include AM_CPPFLAGS += -I $(top_srcdir)/lib AM_CFLAGS = -Wstrict-prototypes +AM_CFLAGS += $(WARNING_FLAGS) if NDEBUG AM_CPPFLAGS += -DNDEBUG @@ -28,9 +27,12 @@ endif CLEANFILES = DISTCLEANFILES = -EXTRA_DIST = -TESTS = -TESTS_ENVIRONMENT = +EXTRA_DIST = INSTALL.bridge \ + INSTALL.Linux \ + INSTALL.userspace \ + INSTALL.OpenFlow \ + INSTALL.SSL \ + INSTALL.XenServer bin_PROGRAMS = sbin_PROGRAMS = bin_SCRIPTS = @@ -51,14 +53,25 @@ ro_c = echo '/* -*- mode: c; buffer-read-only: t -*- */' SUFFIXES = .in .in: $(PERL) $(srcdir)/soexpand.pl -I$(srcdir) < $< | \ - sed -e 's,[@]LOGDIR[@],$(LOGDIR),g' \ + sed \ -e 's,[@]PKIDIR[@],$(PKIDIR),g' \ + -e 's,[@]LOGDIR[@],$(LOGDIR),g' \ + -e 's,[@]PERL[@],$(PERL),g' \ + -e 's,[@]PYTHON[@],$(PYTHON),g' \ -e 's,[@]RUNDIR[@],$(RUNDIR),g' \ + -e 's,[@]VERSION[@],$(VERSION),g' \ + -e 's,[@]localstatedir[@],$(localstatedir),g' \ -e 's,[@]pkgdatadir[@],$(pkgdatadir),g' \ - -e 's,[@]PERL[@],$(PERL),g' > $@ + -e 's,[@]sysconfdir[@],$(sysconfdir),g' \ + > $@.tmp + @if head -n 1 $@.tmp | grep -q '#!'; then \ + echo chmod +x $@.tmp; \ + chmod +x $@.tmp; \ + fi + mv $@.tmp $@ include lib/automake.mk -include secchan/automake.mk +include ofproto/automake.mk include utilities/automake.mk include tests/automake.mk include include/automake.mk @@ -66,9 +79,4 @@ include third-party/automake.mk include debian/automake.mk include vswitchd/automake.mk include xenserver/automake.mk -if HAVE_CURSES -if HAVE_PCRE include extras/ezio/automake.mk -endif -endif -endif # ENABLE_USERSPACE