summaryrefslogtreecommitdiff
path: root/21sh/autotools/src/lexer
diff options
context:
space:
mode:
authorMartial Simon <msimon_fr@hotmail.com>2025-09-15 01:07:58 +0200
committerMartial Simon <msimon_fr@hotmail.com>2025-09-15 01:07:58 +0200
commit967be9e750221ab2ab783f95df79bb26d290a45e (patch)
tree6802900a5e975f9f68b169f0f503f040056d6952 /21sh/autotools/src/lexer
add: added projectsHEADmain
Diffstat (limited to '21sh/autotools/src/lexer')
-rw-r--r--21sh/autotools/src/lexer/Makefile.am6
-rw-r--r--21sh/autotools/src/lexer/lexer.c8
-rw-r--r--21sh/autotools/src/lexer/lexer.h6
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 */