feat(autotools): explainations in README
This commit is contained in:
parent
65a033c5f6
commit
b54488c17f
10 changed files with 35 additions and 43 deletions
14
README.md
14
README.md
|
|
@ -7,12 +7,20 @@
|
||||||
TODO
|
TODO
|
||||||
|
|
||||||
### Build
|
### Build
|
||||||
|
run this command:
|
||||||
TODO
|
autoreconf --force --verbose --install
|
||||||
|
|
||||||
### Test
|
### Test
|
||||||
|
run this command:
|
||||||
|
./configure CFLAGS='-std=c99 -Werror -Wall -Wextra -Wvla'
|
||||||
|
then:
|
||||||
|
make
|
||||||
|
|
||||||
TODO
|
#### asan
|
||||||
|
run this command:
|
||||||
|
./configure CFLAGS='-std=c99 -Werror -Wall -Wextra -Wvla -g -fsanitize=address'
|
||||||
|
then:
|
||||||
|
make check
|
||||||
|
|
||||||
## Authors
|
## Authors
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
# Init the 42sh project
|
# Init the 42sh project
|
||||||
AC_INIT([42sh], [1.0], [matteo.flebus@epita.fr])
|
AC_INIT([42sh], [1.0], [matteo.flebus@epita.fr])
|
||||||
|
|
||||||
FLAGS="-std=c99 -pedantic -Werror -Wall -Wextra -Wvla"
|
# FLAGS="-std=c99 -pedantic -Werror -Wall -Wextra -Wvla"
|
||||||
AC_SUBST([FLAGS])
|
# AC_SUBST([FLAGS])
|
||||||
|
|
||||||
# Setup Automake
|
# Setup Automake
|
||||||
AM_INIT_AUTOMAKE([subdir-objects] [foreign])
|
AM_INIT_AUTOMAKE([subdir-objects] [foreign])
|
||||||
|
|
@ -32,6 +32,9 @@ AC_CONFIG_FILES([
|
||||||
src/execution/Makefile
|
src/execution/Makefile
|
||||||
src/expansion/Makefile
|
src/expansion/Makefile
|
||||||
src/utils/Makefile
|
src/utils/Makefile
|
||||||
|
tests/Makefile
|
||||||
|
tests/unit/Makefile
|
||||||
|
tests/unit/utils/Makefile
|
||||||
])
|
])
|
||||||
# TODO add tests Makefile here
|
# TODO add tests Makefile here
|
||||||
AC_OUTPUT
|
AC_OUTPUT
|
||||||
|
|
|
||||||
|
|
@ -7,14 +7,12 @@ SUBDIRS = \
|
||||||
expansion \
|
expansion \
|
||||||
utils
|
utils
|
||||||
|
|
||||||
bin_PROGRAMS = 42sh 42sh_asan
|
bin_PROGRAMS = 42sh
|
||||||
|
|
||||||
42sh_SOURCES = main.c
|
42sh_SOURCES = main.c
|
||||||
|
|
||||||
42sh_CPPFLAGS = -I%D%
|
42sh_CPPFLAGS = -I%D%
|
||||||
|
|
||||||
42sh_CFLAGS = -std=c99 -pedantic -Werror -Wall -Wextra -Wvla
|
|
||||||
|
|
||||||
42sh_LDADD = \
|
42sh_LDADD = \
|
||||||
parser/libparser.a \
|
parser/libparser.a \
|
||||||
lexer/liblexer.a \
|
lexer/liblexer.a \
|
||||||
|
|
@ -25,18 +23,16 @@ bin_PROGRAMS = 42sh 42sh_asan
|
||||||
|
|
||||||
|
|
||||||
################################################# Test
|
################################################# Test
|
||||||
|
#
|
||||||
42sh_asan_SOURCES = main.c
|
#42sh_asan_SOURCES = main.c
|
||||||
|
#
|
||||||
42sh_asan_CPPFLAGS = -I%D%
|
#42sh_asan_CPPFLAGS = -I%D%
|
||||||
|
#
|
||||||
42sh_asan_CFLAGS = -std=c99 -pedantic -Werror -Wall -Wextra -Wvla -g -fsanitize=address
|
#42sh_asan_LDADD = \
|
||||||
|
# ast/lib_asan_ast.a \
|
||||||
42sh_asan_LDADD = \
|
# parser/lib_asan_parser.a \
|
||||||
ast/lib_asan_ast.a \
|
# lexer/lib_asan_lexer.a \
|
||||||
parser/lib_asan_parser.a \
|
# io_backend/lib_asan_io_backend.a \
|
||||||
lexer/lib_asan_lexer.a \
|
# expansion/lib_asan_expansion.a \
|
||||||
io_backend/lib_asan_io_backend.a \
|
# execution/lib_asan_execution.a \
|
||||||
expansion/lib_asan_expansion.a \
|
# utils/lib_asan_utils.a
|
||||||
execution/lib_asan_execution.a \
|
|
||||||
utils/lib_asan_utils.a
|
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,4 @@ libast_a_SOURCES = \
|
||||||
|
|
||||||
libast_a_CPPFLAGS = -I$(top_srcdir)/src
|
libast_a_CPPFLAGS = -I$(top_srcdir)/src
|
||||||
|
|
||||||
libast_a_CFLAGS = -std=c99 -pedantic -Werror -Wall -Wextra -Wvla
|
|
||||||
|
|
||||||
noinst_LIBRARIES = libast.a
|
noinst_LIBRARIES = libast.a
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,4 @@ libexecution_a_SOURCES = \
|
||||||
|
|
||||||
libexecution_a_CPPFLAGS = -I$(top_srcdir)/src
|
libexecution_a_CPPFLAGS = -I$(top_srcdir)/src
|
||||||
|
|
||||||
libexecution_a_CFLAGS = -std=c99 -pedantic -Werror -Wall -Wextra -Wvla
|
|
||||||
|
|
||||||
noinst_LIBRARIES = libexecution.a
|
noinst_LIBRARIES = libexecution.a
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,4 @@ libexpansion_a_SOURCES = \
|
||||||
|
|
||||||
libexpansion_a_CPPFLAGS = -I$(top_srcdir)/src
|
libexpansion_a_CPPFLAGS = -I$(top_srcdir)/src
|
||||||
|
|
||||||
libexpansion_a_CFLAGS = -std=c99 -pedantic -Werror -Wall -Wextra -Wvla
|
|
||||||
|
|
||||||
noinst_LIBRARIES = libexpansion.a
|
noinst_LIBRARIES = libexpansion.a
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,4 @@ libio_backend_a_SOURCES = \
|
||||||
|
|
||||||
libio_backend_a_CPPFLAGS = -I$(top_srcdir)/src
|
libio_backend_a_CPPFLAGS = -I$(top_srcdir)/src
|
||||||
|
|
||||||
libio_backend_a_CFLAGS = -std=c99 -pedantic -Werror -Wall -Wextra -Wvla
|
|
||||||
|
|
||||||
noinst_LIBRARIES = libio_backend.a
|
noinst_LIBRARIES = libio_backend.a
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
lib_LIBRARIES = liblexer.a lib_asan_lexer.a
|
lib_LIBRARIES = liblexer.a
|
||||||
|
|
||||||
liblexer_a_SOURCES = \
|
liblexer_a_SOURCES = \
|
||||||
lexer.c \
|
lexer.c \
|
||||||
|
|
@ -6,6 +6,4 @@ liblexer_a_SOURCES = \
|
||||||
|
|
||||||
liblexer_a_CPPFLAGS = -I$(top_srcdir)/src
|
liblexer_a_CPPFLAGS = -I$(top_srcdir)/src
|
||||||
|
|
||||||
liblexer_a_CFLAGS = -std=c99 -pedantic -Werror -Wall -Wextra -Wvla
|
|
||||||
|
|
||||||
noinst_LIBRARIES = liblexer.a
|
noinst_LIBRARIES = liblexer.a
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,4 @@ libparser_a_SOURCES = \
|
||||||
|
|
||||||
libparser_a_CPPFLAGS = -I$(top_srcdir)/src
|
libparser_a_CPPFLAGS = -I$(top_srcdir)/src
|
||||||
|
|
||||||
libparser_a_CFLAGS = $(FLAGS)
|
|
||||||
|
|
||||||
noinst_LIBRARIES = libparser.a
|
noinst_LIBRARIES = libparser.a
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,8 @@
|
||||||
lib_LIBRARIES = libutils.a
|
lib_LIBRARIES = libutils.a
|
||||||
|
|
||||||
# libutils_a_SOURCES = \
|
libutils_a_SOURCES = \
|
||||||
# utils.c \
|
string_utils.c
|
||||||
# utils.h
|
|
||||||
|
|
||||||
# libutils_a_CPPFLAGS = -I$(top_srcdir)/src
|
libutils_a_CPPFLAGS = -I$(top_srcdir)/src
|
||||||
|
|
||||||
# libutils_a_CFLAGS = -std=c99 -pedantic -Werror -Wall -Wextra -Wvla
|
noinst_LIBRARIES = libutils.a
|
||||||
|
|
||||||
# noinst_LIBRARIES = libutils.a
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue