diff options
| author | Kai Stevenson <kai@kaistevenson.com> | 2023-02-14 02:02:50 -0800 |
|---|---|---|
| committer | Kai Stevenson <kai@kaistevenson.com> | 2023-02-14 02:02:50 -0800 |
| commit | 24f981233bc3e0b000acf4615d4bc6f2332eefb0 (patch) | |
| tree | b036a7d937f8444d326355cbe07eea70df693c59 /Makefile | |
init
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..a9b5503 --- /dev/null +++ b/Makefile @@ -0,0 +1,11 @@ +CFLAGS=-I. -pthread -Wall -Wextra -Wpedantic -std=c99 -march=native -O3 -lm +CFLAGS+= -Wshadow -Wstrict-prototypes -Wundef -Wpointer-arith -Wcast-align -Wstrict-overflow=5 -Wswitch-default +CFLAGS+= -Wunreachable-code -Wswitch-enum -Wformat=2 -g +PREFIX ?= /usr +BINDIR ?= ${PREFIX}/bin + +generate: + $(CC) -o precedent precedent.c hashtable.c scope.c parse.c $(CFLAGS) + +clean: + rm precedent |
