Make pkidir, rundir, logdir modifiable from "configure" command line.
[sliver-openvswitch.git] / Makefile.am
1 # The goal of -Wno-syntax here is just to suppress the Automake warning
2 # about overriding distdir, below.
3 AUTOMAKE_OPTIONS = foreign -Wno-syntax subdir-objects
4 ACLOCAL_AMFLAGS = -I m4
5 SUBDIRS = datapath
6
7 if HAVE_DPKG_BUILDPACKAGE
8 distcheck-hook: 
9         cd $(srcdir) && dpkg-buildpackage -rfakeroot -us -uc
10         cd $(srcdir) && fakeroot ./debian/rules clean
11 else
12 distcheck-hook: 
13 endif
14
15 AM_CPPFLAGS = $(SSL_CFLAGS)
16 AM_CPPFLAGS += -I $(top_srcdir)/include
17 if HAVE_EXT
18 AM_CPPFLAGS += -I $(top_srcdir)/ext/include
19 endif
20
21 AM_CFLAGS = -Wstrict-prototypes
22
23 if NDEBUG
24 AM_CPPFLAGS += -DNDEBUG
25 AM_CFLAGS += -fomit-frame-pointer
26 else
27 AM_LDFLAGS = -export-dynamic
28 endif
29
30 DISTCLEANFILES =
31 EXTRA_DIST =
32 TESTS =
33 TESTS_ENVIRONMENT =
34 bin_PROGRAMS =
35 bin_SCRIPTS =
36 dist_man_MANS =
37 man_MANS =
38 noinst_HEADERS =
39 noinst_LIBRARIES =
40 noinst_PROGRAMS =
41 noinst_SCRIPTS =
42
43 do_subst = sed -e 's,[@]PKIDIR[@],$(PKIDIR),g' \
44                -e 's,[@]RUNDIR[@],$(RUNDIR),g' \
45                -e 's,[@]PERL[@],$(PERL),g'
46 ro_script = sed "`printf '1a\\' && printf '\\n\# -*- buffer-read-only: t -*-'`"
47 ro_man = printf '.\\" Local\040variables:\n.\\" buffer-read-only: t\n.\\" End:\n'
48 ro_c = echo '/* -*- mode: c; buffer-read-only: t -*- */'
49
50 EXTRA_DIST += README.hwtables
51
52 include lib/automake.mk
53 include secchan/automake.mk
54 include controller/automake.mk
55 include utilities/automake.mk
56 include switch/automake.mk
57 include tests/automake.mk
58 include include/automake.mk
59 include third-party/automake.mk
60 include debian/automake.mk
61 include ext.mk