diff options
Diffstat (limited to '21sh/autotools/src/lexer')
| -rw-r--r-- | 21sh/autotools/src/lexer/Makefile.am | 6 | ||||
| -rw-r--r-- | 21sh/autotools/src/lexer/lexer.c | 8 | ||||
| -rw-r--r-- | 21sh/autotools/src/lexer/lexer.h | 6 |
3 files changed, 20 insertions, 0 deletions
diff --git a/21sh/autotools/src/lexer/Makefile.am b/21sh/autotools/src/lexer/Makefile.am new file mode 100644 index 0000000..f5f78b2 --- /dev/null +++ b/21sh/autotools/src/lexer/Makefile.am @@ -0,0 +1,6 @@ +lib_LIBRARIES = liblexer.a + +liblexer_a_SOURCES = lexer.c lexer.h +liblexer_a_CPPFLAGS = -I$(top_srcdir)/src +liblexer_a_CFLAGS = -std=c99 -Werror -Wall -Wextra -Wvla -pedantic +noinst_LIBRARIES = liblexer.a diff --git a/21sh/autotools/src/lexer/lexer.c b/21sh/autotools/src/lexer/lexer.c new file mode 100644 index 0000000..2e9d2f9 --- /dev/null +++ b/21sh/autotools/src/lexer/lexer.c @@ -0,0 +1,8 @@ +#include "lexer.h" + +#include <stdio.h> + +void print_lexer() +{ + puts("Vive les lexer"); +} diff --git a/21sh/autotools/src/lexer/lexer.h b/21sh/autotools/src/lexer/lexer.h new file mode 100644 index 0000000..0cc2c2e --- /dev/null +++ b/21sh/autotools/src/lexer/lexer.h @@ -0,0 +1,6 @@ +#ifndef LEXER_H +#define LEXER_H + +void print_lexer(); + +#endif /* ! LEXER_H */ |
