]> git.proxmox.com Git - mirror_ovs.git/blame - Makefile.am
timeval: Use monotonic time where appropriate.
[mirror_ovs.git] / Makefile.am
CommitLineData
3b12adda 1# Copyright (C) 2007, 2008, 2009, 2010 Nicira Networks, Inc.
a14bc59f
BP
2#
3# Copying and distribution of this file, with or without modification,
4# are permitted in any medium without royalty provided the copyright
5# notice and this notice are preserved. This file is offered as-is,
6# without warranty of any kind.
7
064af421
BP
8AUTOMAKE_OPTIONS = foreign subdir-objects
9ACLOCAL_AMFLAGS = -I m4
10SUBDIRS = datapath
11
064af421
BP
12AM_CPPFLAGS = $(SSL_CFLAGS)
13AM_CPPFLAGS += $(NCURSES_CFLAGS)
14AM_CPPFLAGS += $(PCRE_CFLAGS)
15AM_CPPFLAGS += -I $(top_srcdir)/include
16AM_CPPFLAGS += -I $(top_srcdir)/lib
17
18AM_CFLAGS = -Wstrict-prototypes
d161c099 19AM_CFLAGS += $(WARNING_FLAGS)
064af421
BP
20
21if NDEBUG
22AM_CPPFLAGS += -DNDEBUG
23AM_CFLAGS += -fomit-frame-pointer
24else
25AM_LDFLAGS = -export-dynamic
26endif
27
d879a707 28BUILT_SOURCES =
064af421
BP
29CLEANFILES =
30DISTCLEANFILES =
4cdb08c0
BP
31EXTRA_DIST = \
32 CodingStyle \
6cdd6a87 33 INSTALL.KVM \
c2d1694f
JP
34 INSTALL.Linux \
35 INSTALL.OpenFlow \
36 INSTALL.SSL \
9678a9b6 37 INSTALL.XenServer \
4cdb08c0
BP
38 INSTALL.bridge \
39 INSTALL.userspace \
40 NOTICE \
bc34d060 41 PORTING \
4cdb08c0
BP
42 README-gcov \
43 REPORTING-BUGS \
44 SubmittingPatches \
45 boot.sh
064af421
BP
46bin_PROGRAMS =
47sbin_PROGRAMS =
48bin_SCRIPTS =
87103e1f 49DIST_HOOKS =
064af421 50dist_man_MANS =
3b12adda 51dist_pkgdata_DATA =
064af421
BP
52dist_pkgdata_SCRIPTS =
53dist_sbin_SCRIPTS =
54man_MANS =
c3bb4bd7 55noinst_DATA =
064af421
BP
56noinst_HEADERS =
57noinst_LIBRARIES =
58noinst_PROGRAMS =
59noinst_SCRIPTS =
00732bf5 60OVSIDL_BUILT =
c3bb4bd7 61SUFFIXES =
064af421 62
208d496f
BP
63EXTRA_DIST += \
64 build-aux/update-debian-changelog \
65 soexpand.pl
064af421
BP
66
67ro_c = echo '/* -*- mode: c; buffer-read-only: t -*- */'
68
c3bb4bd7 69SUFFIXES += .in
064af421
BP
70.in:
71 $(PERL) $(srcdir)/soexpand.pl -I$(srcdir) < $< | \
3b135da3 72 sed \
064af421 73 -e 's,[@]PKIDIR[@],$(PKIDIR),g' \
3b135da3
BP
74 -e 's,[@]LOGDIR[@],$(LOGDIR),g' \
75 -e 's,[@]PERL[@],$(PERL),g' \
76 -e 's,[@]PYTHON[@],$(PYTHON),g' \
064af421 77 -e 's,[@]RUNDIR[@],$(RUNDIR),g' \
3b135da3
BP
78 -e 's,[@]VERSION[@],$(VERSION),g' \
79 -e 's,[@]localstatedir[@],$(localstatedir),g' \
064af421 80 -e 's,[@]pkgdatadir[@],$(pkgdatadir),g' \
3b135da3 81 -e 's,[@]sysconfdir[@],$(sysconfdir),g' \
d879a707 82 -e 's,[@]abs_top_srcdir[@],$(abs_top_srcdir),g' \
436f27dd 83 -e 's,[@]ovsdbmonitordir[@],$(ovsdbmonitordir),g' \
3b135da3
BP
84 > $@.tmp
85 @if head -n 1 $@.tmp | grep -q '#!'; then \
86 echo chmod +x $@.tmp; \
87 chmod +x $@.tmp; \
88 fi
89 mv $@.tmp $@
064af421 90
87103e1f
BP
91# If we're checked out from a Git repository, make sure that every
92# file that is in Git is distributed.
93dist-hook-git:
94 if test -e $(srcdir)/.git && (git --version) >/dev/null 2>&1; then \
95 rc=0; \
96 for d in `cd $(srcdir) && git ls-files`; do \
97 if test ! -e $(distdir)/$$d; then \
98 case $$d in # ( \
99 .gitignore|*/.gitignore) ;; # ( \
100 *) \
101 if test $$rc = 0; then \
102 echo "The distribution is missing the following files:"; \
103 rc=1; \
104 fi; \
105 echo "$$d"; \
106 ;; \
107 esac; \
108 fi \
109 done; \
110 exit $$rc; \
111 fi
112DIST_HOOKS += dist-hook-git
113
114dist-hook: $(DIST_HOOKS)
115.PHONY: $(DIST_HOOKS)
116
064af421 117include lib/automake.mk
8cd4882f 118include ofproto/automake.mk
064af421
BP
119include utilities/automake.mk
120include tests/automake.mk
121include include/automake.mk
122include third-party/automake.mk
123include debian/automake.mk
124include vswitchd/automake.mk
f85f8ebb 125include ovsdb/automake.mk
064af421 126include xenserver/automake.mk
064af421 127include extras/ezio/automake.mk
87103e1f 128