Files
oniguruma/Makefile.am

79 lines
1.9 KiB
Makefile
Raw Normal View History

2012-10-15 13:30:10 +09:00
## Makefile.am for Oniguruma
2012-10-15 14:37:22 +09:00
ACLOCAL_AMFLAGS = -I m4
2012-10-15 13:30:10 +09:00
2016-03-25 17:41:00 +09:00
SUBDIRS = src test sample
2012-10-15 13:30:10 +09:00
2017-08-25 14:15:14 +09:00
EXTRA_DIST = oniguruma.pc.in HISTORY README_japanese README.md \
index.html index_ja.html make_win.bat \
2018-03-28 09:13:33 +09:00
CMakeLists.txt oniguruma.pc.cmake.in cmake/Config.cmake.in \
2016-03-25 19:00:23 +09:00
src/config.h.cmake.in \
2012-10-15 13:30:10 +09:00
doc/API doc/API.ja doc/RE doc/RE.ja doc/FAQ doc/FAQ.ja \
doc/CALLOUTS.BUILTIN doc/CALLOUTS.BUILTIN.ja \
doc/CALLOUTS.API doc/CALLOUTS.API.ja \
doc/SYNTAX.md doc/UNICODE_PROPERTIES \
2018-08-02 16:34:42 +09:00
src/Makefile.windows src/config.h.windows.in \
src/config.h.win32 src/config.h.win64 \
2019-08-08 14:12:36 +09:00
windows/testc.c
2012-10-15 13:30:10 +09:00
bin_SCRIPTS = onig-config
onig-config: onig-config.in
2013-04-04 09:54:20 +09:00
do_subst = sed \
-e 's,[@]datadir[@],$(datadir),g' \
-e 's,[@]datarootdir[@],$(datarootdir),g' \
-e 's,[@]PACKAGE_VERSION[@],$(PACKAGE_VERSION),g' \
-e 's,[@]prefix[@],$(prefix),g' \
-e 's,[@]exec_prefix[@],$(exec_prefix),g' \
-e 's,[@]libdir[@],$(libdir),g' \
-e 's,[@]includedir[@],$(includedir),g'
oniguruma.pc: $(srcdir)/oniguruma.pc.in Makefile
$(do_subst) < $(srcdir)/oniguruma.pc.in > $(@)
2013-04-04 09:54:20 +09:00
pkgconfigdir = $(libdir)/pkgconfig
2013-04-04 12:55:28 +09:00
pkgconfig_DATA = oniguruma.pc
2018-06-04 12:42:41 +09:00
all-test:
cd test; make test
2019-02-17 23:07:35 +09:00
2019-08-19 17:13:53 +09:00
archive:
git archive --format=tar --prefix=oniguruma/ HEAD | gzip > ../oniguruma-archive.tar.gz
2020-01-20 15:35:10 +09:00
debug:
2020-01-22 16:54:58 +09:00
make clean
./configure CFLAGS="-O0 -g"
make
debug_out:
2020-01-20 15:35:10 +09:00
make clean
./configure CFLAGS="-O0 -g -DONIG_DEBUG_PARSE -DONIG_DEBUG_COMPILE"
make
2019-05-14 09:29:22 +09:00
sanitize:
make clean
2019-12-06 14:42:29 +09:00
./configure CFLAGS="-O -g -fsanitize=address" LDFLAGS="-fsanitize=address"
2019-05-14 09:29:22 +09:00
make
make all-test
2019-02-17 23:07:35 +09:00
cov:
2019-02-18 14:34:45 +09:00
make lcov-clear
cd test; make CFLAGS="--coverage" test
2019-02-18 14:34:45 +09:00
make lcov
gcov:
2019-02-17 23:07:35 +09:00
make CFLAGS="--coverage"
2019-02-18 14:34:45 +09:00
lcov:
lcov -c -d src/.libs -o coverage.info
genhtml -o coverage coverage.info
lcov-clear:
lcov -z -d .
2019-02-22 14:28:31 +09:00
cov-clean: clean
rm -rf coverage coverage.info
find . -name '*.gcno' | xargs rm -f