feat: Merge branch 'autotools' into dev
This commit is contained in:
commit
06b9f4b130
10 changed files with 40 additions and 45 deletions
|
|
@ -1,11 +1,10 @@
|
|||
# define the subdirectories
|
||||
SUBDIRS = \
|
||||
ast \
|
||||
parser \
|
||||
lexer \
|
||||
io_backend \
|
||||
execution \
|
||||
expansin \
|
||||
expansion \
|
||||
utils
|
||||
|
||||
bin_PROGRAMS = 42sh
|
||||
|
|
@ -14,10 +13,7 @@ bin_PROGRAMS = 42sh
|
|||
|
||||
42sh_CPPFLAGS = -I%D%
|
||||
|
||||
42sh_CFLAGS = -std=c99 -pedantic -Werror -Wall -Wextra -Wvla
|
||||
|
||||
42sh_LDADD = \
|
||||
ast/libast.a \
|
||||
parser/libparser.a \
|
||||
lexer/liblexer.a \
|
||||
io_backend/libio_backend.a \
|
||||
|
|
@ -27,20 +23,16 @@ bin_PROGRAMS = 42sh
|
|||
|
||||
|
||||
################################################# Test
|
||||
|
||||
bin_PROGRAMS = 42sh_asan
|
||||
|
||||
42sh_asan_SOURCES = main.c
|
||||
|
||||
42sh_asan_CPPFLAGS = -I%D%
|
||||
|
||||
42sh_asan_CFLAGS = -std=c99 -pedantic -Werror -Wall -Wextra -Wvla -g -fsanitize=address
|
||||
|
||||
42sh_asan_LDADD = \
|
||||
ast/libast.a \
|
||||
parser/libparser.a \
|
||||
lexer/liblexer.a \
|
||||
io_backend/libio_backend.a \
|
||||
expansion/libexpansion.a \
|
||||
execution/libexecution.a \
|
||||
utils/libutils.a
|
||||
#
|
||||
#42sh_asan_SOURCES = main.c
|
||||
#
|
||||
#42sh_asan_CPPFLAGS = -I%D%
|
||||
#
|
||||
#42sh_asan_LDADD = \
|
||||
# ast/lib_asan_ast.a \
|
||||
# parser/lib_asan_parser.a \
|
||||
# lexer/lib_asan_lexer.a \
|
||||
# io_backend/lib_asan_io_backend.a \
|
||||
# expansion/lib_asan_expansion.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_CFLAGS = -std=c99 -pedantic -Werror -Wall -Wextra -Wvla
|
||||
|
||||
noinst_LIBRARIES = libast.a
|
||||
|
|
|
|||
|
|
@ -6,6 +6,4 @@ libexecution_a_SOURCES = \
|
|||
|
||||
libexecution_a_CPPFLAGS = -I$(top_srcdir)/src
|
||||
|
||||
libexecution_a_CFLAGS = -std=c99 -pedantic -Werror -Wall -Wextra -Wvla
|
||||
|
||||
noinst_LIBRARIES = libexecution.a
|
||||
|
|
|
|||
|
|
@ -6,6 +6,4 @@ libexpansion_a_SOURCES = \
|
|||
|
||||
libexpansion_a_CPPFLAGS = -I$(top_srcdir)/src
|
||||
|
||||
libexpansion_a_CFLAGS = -std=c99 -pedantic -Werror -Wall -Wextra -Wvla
|
||||
|
||||
noinst_LIBRARIES = libexpansion.a
|
||||
|
|
|
|||
|
|
@ -6,6 +6,4 @@ libio_backend_a_SOURCES = \
|
|||
|
||||
libio_backend_a_CPPFLAGS = -I$(top_srcdir)/src
|
||||
|
||||
libio_backend_a_CFLAGS = -std=c99 -pedantic -Werror -Wall -Wextra -Wvla
|
||||
|
||||
noinst_LIBRARIES = libio_backend.a
|
||||
|
|
|
|||
|
|
@ -6,6 +6,4 @@ liblexer_a_SOURCES = \
|
|||
|
||||
liblexer_a_CPPFLAGS = -I$(top_srcdir)/src
|
||||
|
||||
liblexer_a_CFLAGS = -std=c99 -pedantic -Werror -Wall -Wextra -Wvla
|
||||
|
||||
noinst_LIBRARIES = liblexer.a
|
||||
|
|
|
|||
|
|
@ -6,6 +6,4 @@ libparser_a_SOURCES = \
|
|||
|
||||
libparser_a_CPPFLAGS = -I$(top_srcdir)/src
|
||||
|
||||
libparser_a_CFLAGS = -std=c99 -pedantic -Werror -Wall -Wextra -Wvla
|
||||
|
||||
noinst_LIBRARIES = libparser.a
|
||||
|
|
|
|||
|
|
@ -1,11 +1,8 @@
|
|||
lib_LIBRARIES = libutils.a
|
||||
|
||||
# libutils_a_SOURCES = \
|
||||
# utils.c \
|
||||
# utils.h
|
||||
libutils_a_SOURCES = \
|
||||
string_utils.c
|
||||
|
||||
# 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