diff options
| author | Martial Simon <msimon_fr@hotmail.com> | 2025-09-15 01:07:58 +0200 |
|---|---|---|
| committer | Martial Simon <msimon_fr@hotmail.com> | 2025-09-15 01:07:58 +0200 |
| commit | 967be9e750221ab2ab783f95df79bb26d290a45e (patch) | |
| tree | 6802900a5e975f9f68b169f0f503f040056d6952 /42sh/configure.ac | |
Diffstat (limited to '42sh/configure.ac')
| -rw-r--r-- | 42sh/configure.ac | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/42sh/configure.ac b/42sh/configure.ac new file mode 100644 index 0000000..644e677 --- /dev/null +++ b/42sh/configure.ac @@ -0,0 +1,35 @@ +# Init the 42sh project +AC_INIT([42sh], [1.0], [martial.simon@epita.fr maxence.moncel@epita.fr nicolas.rivera@epita.fr fabien.bouchon@epita.fr]) + +# 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([], [], [], [-Wall -Wextra -Werror -Wvla -pedantic -std=c99]) + +# List Makefiles in subdirectories +AC_CONFIG_FILES([ + Makefile + src/Makefile + src/ast/Makefile + src/parser/Makefile + src/lexer/Makefile + src/utils/Makefile + src/builtins/Makefile + src/exec/Makefile + src/IO/Makefile + tests/Makefile + ]) +AC_OUTPUT |
