From 9594210f02572681ed581c5197ace4c207db0917 Mon Sep 17 00:00:00 2001 From: JSDurand Date: Mon, 8 Nov 2021 16:37:57 +0800 Subject: initial commit Now the rough framework is established and the grammar class is sort of ready. It remains to write a general input reading mechanism. --- src/Makefile.am | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 src/Makefile.am (limited to 'src/Makefile.am') diff --git a/src/Makefile.am b/src/Makefile.am new file mode 100644 index 0000000..d38ef1b --- /dev/null +++ b/src/Makefile.am @@ -0,0 +1,32 @@ +AM_CFLAGS = -Wall -Wextra + +noinst_LIBRARIES = libeps.a +libeps_a_SOURCES = grammar.c list.c input.c \ +grammar.h list.h util.h input.h + +libeps_a_CFLAGS = $(AM_CFLAGS) --pedantic + +# Make TAGS automatically + +all-local: MYTAGS + +MYTAGS: $(TAGS_DEPENDENCIES) $(am__tagged_files) + @if $(AM_V_P); then $(MAKE) TAGS; else echo "MAKE TAGS"; \ + $(MAKE) TAGS > /dev/null; fi; + + +CLEANFILES = TAGS + +# tests + +check_PROGRAMS = check_list check_grammar + +check_list_SOURCES = test/check_list.c list.c + +check_grammar_SOURCES = test/check_grammar.c list.c grammar.c + +TESTS = $(check_PROGRAMS) + +AM_COLOR_TESTS = always + + -- cgit v1.2.3-18-g5258