summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am37
1 files changed, 37 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
new file mode 100644
index 0000000..a65100e
--- /dev/null
+++ b/Makefile.am
@@ -0,0 +1,37 @@
+AM_CPPFLAGS = -I$(top_srcdir)/include
+
+# binaries settings.
+bin_PROGRAMS = obe
+obe_SOURCES = src/obe.c \
+ src/ir.c \
+ src/arena.c \
+ src/array.c \
+ src/utils.c \
+ src/lexer.c \
+ src/parser.c \
+ src/string.c \
+ src/x86_64/codegen.c
+
+info_TEXINFOS = docs/info/obe.texi
+man1_MANS = obe.1
+
+dist_man_MANS = obe.1
+dist_doc_DATA = README
+
+EXTRA_DIST = \
+ include/obe/arena.h \
+ include/obe/array.h \
+ include/obe/ir.h \
+ include/obe/lexer.h \
+ include/obe/parser.h \
+ include/obe/string_view.h \
+ include/obe/utils.h \
+ include/obe/x86_64/codegen.h
+
+CLEANFILES = obe.1
+
+obe.1: $(srcdir)/src/obe.c
+ @-printf " HELP2MAN %s\n" '$@'
+ @-$(HELP2MAN) --output=$@ --name='olang backend' $(builddir)/obe
+
+SUBDIRS = tests