42sh/configure.ac
2026-01-09 14:34:22 +01:00

40 lines
1.1 KiB
Text

# Init the 42sh project
AC_INIT([42sh], [1.0], [matteo.flebus@epita.fr])
# FLAGS="-std=c99 -pedantic -Werror -Wall -Wextra -Wvla"
# AC_SUBST([FLAGS])
# Setup Automake
AM_INIT_AUTOMAKE([subdir-objects] [foreign])
# Pretty display of Makefile rules
AM_SILENT_RULES([yes])
# Enable ar for Makefile
AM_PROG_AR
# Check if ranlib is available
AC_PROG_RANLIB
# Check if a C compiler is available
AC_PROG_CC
# Check if a compiler has this list of flags
# AX_COMPILER_FLAGS([], [], [], [-std=c99 -pedantic -Werror -Wall -Wextra -Wvla])
# List Makefiles in subdirectories
AC_CONFIG_FILES([
src/Makefile
src/ast/Makefile
src/parser/Makefile
src/lexer/Makefile
src/io_backend/Makefile
src/execution/Makefile
src/expansion/Makefile
src/utils/Makefile
])
# TODO add tests Makefile here
# tests/Makefile
# tests/unit/Makefile
# tests/unit/utils/Makefile
AC_OUTPUT