fix: added header guards, and some testing purpose autotools rules
This commit is contained in:
parent
269f50a367
commit
919ea7b1ba
9 changed files with 88 additions and 14 deletions
|
|
@ -1,25 +1,46 @@
|
|||
# define the subdirectories
|
||||
SUBDIRS = \
|
||||
ast \
|
||||
parser \
|
||||
lexer \
|
||||
io_backend \
|
||||
execution \
|
||||
expansion
|
||||
# + utils if needed
|
||||
ast \
|
||||
parser \
|
||||
lexer \
|
||||
io_backend \
|
||||
execution \
|
||||
expansin \
|
||||
utils
|
||||
|
||||
bin_PROGRAMS = 42sh
|
||||
|
||||
42sh_SOURCES = 42sh.c
|
||||
42sh_SOURCES = main.c
|
||||
|
||||
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 \
|
||||
expansion/libexpansion.a \
|
||||
execution/libexecution.a
|
||||
ast/libast.a \
|
||||
parser/libparser.a \
|
||||
lexer/liblexer.a \
|
||||
io_backend/libio_backend.a \
|
||||
expansion/libexpansion.a \
|
||||
execution/libexecution.a \
|
||||
utils/libutils.a
|
||||
|
||||
|
||||
################################################# 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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue