Skip to content

Commit

Permalink
vlog: Generate vlog-modules.def automatically.
Browse files Browse the repository at this point in the history
  • Loading branch information
blp committed Nov 30, 2010
1 parent 847a073 commit 611d30c
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 165 deletions.
1 change: 1 addition & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ SUBDIRS = datapath
AM_CPPFLAGS = $(SSL_CFLAGS)
AM_CPPFLAGS += -I $(top_srcdir)/include
AM_CPPFLAGS += -I $(top_srcdir)/lib
AM_CPPFLAGS += -I $(top_builddir)/lib

AM_CFLAGS = -Wstrict-prototypes
AM_CFLAGS += $(WARNING_FLAGS)
Expand Down
66 changes: 0 additions & 66 deletions build-aux/check-vlog-modules

This file was deleted.

23 changes: 17 additions & 6 deletions lib/automake.mk
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,6 @@ lib_libopenvswitch_a_SOURCES = \
lib/vconn-stream.c \
lib/vconn.c \
lib/vconn.h \
lib/vlog-modules.def \
lib/vlog.c \
lib/vlog.h
nodist_lib_libopenvswitch_a_SOURCES = \
Expand Down Expand Up @@ -247,6 +246,17 @@ lib-install-data-local:
$(MKDIR_P) $(DESTDIR)$(PKIDIR)
$(MKDIR_P) $(DESTDIR)$(LOGDIR)

# All distributed sources, with names adjust properly for referencing
# from $(builddir).
all_sources = \
`for file in $(DIST_SOURCES); do \
if test -f $$file; then \
echo $$file; \
else \
echo $(VPATH)/$$file; \
fi; \
done`

# All the source files that have coverage counters.
COVERAGE_FILES = \
lib/dpif.c \
Expand Down Expand Up @@ -277,8 +287,9 @@ lib/coverage-counters.c: $(COVERAGE_FILES) lib/coverage-scan.pl
mv $@.tmp $@
EXTRA_DIST += lib/coverage-scan.pl

ALL_LOCAL += check-vlog-modules
check-vlog-modules:
cd $(srcdir) && build-aux/check-vlog-modules
.PHONY: check-vlog-modules
EXTRA_DIST += build-aux/check-vlog-modules
if !USE_LINKER_SECTIONS
lib/vlog.$(OBJEXT): lib/vlog-modules.def
lib/vlog-modules.def: $(DIST_SOURCES)
sed -n 's|^VLOG_DEFINE_\(THIS_\)\{0,1\}MODULE(\([_a-zA-Z0-9]\{1,\}\)).*$$|VLOG_MODULE(\2)|p' $(all_sources) | LC_ALL=C sort -u > $@
CLEANFILES += lib/vlog-modules.def
endif
92 changes: 0 additions & 92 deletions lib/vlog-modules.def

This file was deleted.

4 changes: 3 additions & 1 deletion m4/openvswitch.m4
Original file line number Diff line number Diff line change
Expand Up @@ -348,4 +348,6 @@ AC_DEFUN([OVS_CHECK_LINKER_SECTIONS],
into sections with user-defined names and the linker
automatically defines __start_SECNAME and __stop_SECNAME
symbols that designate the start and end of the section.])
fi])
fi
AM_CONDITIONAL(
[USE_LINKER_SECTIONS], [test $ovs_cv_use_linker_sections = yes])])

0 comments on commit 611d30c

Please sign in to comment.