diff options
| author | Tom Harley | 2019-09-30 01:56:15 +0100 |
|---|---|---|
| committer | Tom Harley | 2019-09-30 01:56:15 +0100 |
| commit | fbe39f58fc0d757f8ffe54c6dc96bbc690862ded (patch) | |
| tree | 94d861774ded89f82363bcc2877ec2cc3f94c024 /Makefile | |
| download | sinter-fbe39f58fc0d757f8ffe54c6dc96bbc690862ded.tar.gz sinter-fbe39f58fc0d757f8ffe54c6dc96bbc690862ded.zip | |
Initial commit
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..56b2f72 --- /dev/null +++ b/Makefile @@ -0,0 +1,22 @@ +CC = c++ + +CFLAGS += -x c --std=c99 -Wpedantic -Wall -Werror + +CFLAGS += $(shell llvm-config --cppflags) +LDFLAGS += $(shell llvm-config --ldflags) +LDLIBS += $(shell llvm-config --libs core analysis bitwriter --system-libs) + +.PHONY: default all clean +default: all +all: basic +basic: basic.o parse.o lex.o + +basic.o lex.o: parse.h basic.h +parse.o: basic.h + +parse.h: parse.y + $(YACC) -d -o /dev/null $< + mv -f y.tab.h $@ + +clean: + $(RM) basic y.tab.* *.o lex.c parse.c parse.h |
