From a37c97545f23eef90f833be634ef1f3db93af0ca Mon Sep 17 00:00:00 2001 From: Stephan Seitz Date: Thu, 9 Sep 2021 22:11:07 +0200 Subject: Allow compilation via makefile --- scripts/compile_parsers.makefile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 scripts/compile_parsers.makefile (limited to 'scripts') diff --git a/scripts/compile_parsers.makefile b/scripts/compile_parsers.makefile new file mode 100644 index 000000000..3c5ccdee5 --- /dev/null +++ b/scripts/compile_parsers.makefile @@ -0,0 +1,16 @@ +# +# compile_parsers.makefile +# Stephan Seitz, 2021-09-09 21:36 +# +CC?=cc + +all: parser.so + +parser.o: src/parser.c + $(CC) -c src/parser.c -std=c99 -fPIC -I./src + +scanner.o: src/scanner.cc + $(CC) -c src/scanner.cc -std=c++17 -fPIC -I./src + +parser.so: parser.o scanner.o + $(CC) parser.o scanner.o -o parser.so -shared -Os -lstdc++ -- cgit v1.2.3-70-g09d2