feat(autotools): basic usage
This commit is contained in:
parent
ec9a168764
commit
269f50a367
24 changed files with 133 additions and 1 deletions
30
configure.ac
Normal file
30
configure.ac
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
# Init the 42sh project
|
||||
AC_INIT([42sh], [1.0], [matteo.flebus@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([], [], [], [-std=c99 -pedantic -Werror -Wall -Wextra -Wvla])
|
||||
|
||||
# List Makefiles in subdirectories
|
||||
AC_CONFIG_FILES([
|
||||
Makefile
|
||||
src/Makefile
|
||||
src/ast/Makefile
|
||||
src/parser/Makefile
|
||||
src/lexer/Makefile
|
||||
])
|
||||
AC_OUTPUT
|
||||
Loading…
Add table
Add a link
Reference in a new issue