Skip to content

Commit

Permalink
Add benchmark makefile generating configs
Browse files Browse the repository at this point in the history
  • Loading branch information
James Parkinson committed Jun 23, 2021
1 parent f0d40f8 commit e5474e4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
11 changes: 8 additions & 3 deletions Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ SHARED_LIB = @SHARED_LIB@
BUILDLIB = libawka.a $(SHARED_LIB)
#######################################

MAKEFILEIN = Makefile.in lib/Makefile.in awka/Makefile.in test/Makefile.in
MAKEFILEIN = Makefile.in lib/Makefile.in awka/Makefile.in test/Makefile.in benchmark/Makefile.in

all: awka_exe libawka

Expand Down Expand Up @@ -66,10 +66,10 @@ clean:
cd test; $(MAKE) clean

distclean: clean
rm -f config.h Makefile lib/Makefile awka/Makefile test/Makefile \
rm -f config.h Makefile lib/Makefile awka/Makefile test/Makefile benchmark/Makefile \
config.status config.log config.cache
rm -f defines.out maxint.out
rm -f benchmark/*.c benchmark/core benchmark/*.o benchmark/x*
rm -f benchmark/*.c benchmark/core benchmark/*.o benchmark/x* benchmark/*.out

configure: configure.in awka.ac.m4
autoconf
Expand All @@ -79,3 +79,8 @@ check: awka_exe libawka

test: check

timeit: awka_exe libawka
cd benchmark; $(MAKE) -k

benchmark: timeit

4 changes: 2 additions & 2 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -3032,7 +3032,7 @@ done
ac_given_srcdir=$srcdir
trap 'rm -fr `echo "Makefile lib/Makefile awka/Makefile test/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
trap 'rm -fr `echo "Makefile lib/Makefile awka/Makefile test/Makefile benchmark/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
EOF
cat >> $CONFIG_STATUS <<EOF
Expand Down Expand Up @@ -3120,7 +3120,7 @@ EOF
cat >> $CONFIG_STATUS <<EOF
CONFIG_FILES=\${CONFIG_FILES-"Makefile lib/Makefile awka/Makefile test/Makefile"}
CONFIG_FILES=\${CONFIG_FILES-"Makefile lib/Makefile awka/Makefile test/Makefile benchmark/Makefile"}
EOF
cat >> $CONFIG_STATUS <<\EOF
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
Expand Down
2 changes: 1 addition & 1 deletion configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@ CHECK_FUNCTIONS(time,mktime,asctime,localtime,gmtime)
EXE_EXTENSION

DO_CONFIG_H
AC_OUTPUT(Makefile lib/Makefile awka/Makefile test/Makefile)
AC_OUTPUT(Makefile lib/Makefile awka/Makefile test/Makefile benchmark/Makefile)


0 comments on commit e5474e4

Please sign in to comment.