From 2a232f8f42c0a7d5a7b648358a192c21865a55f6 Mon Sep 17 00:00:00 2001 From: Kai Stevenson Date: Sat, 10 Jun 2023 23:45:25 -0700 Subject: lexing works --- Makefile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..0948a4e --- /dev/null +++ b/Makefile @@ -0,0 +1,16 @@ +CFLAGS=-I. -Wall -Wextra -Wpedantic -O3 -lm -Wcast-align +CFLAGS+= -Wshadow -Wstrict-prototypes -Wundef -Wpointer-arith +CFLAGS+= -Wunreachable-code -Wswitch-enum -Wformat=2 -g +PREFIX ?= /usr +BINDIR ?= ${PREFIX}/bin + +generate: + $(CC) -o operetta operetta.c proposition.c parse.c lexer.c $(CFLAGS) + +install: operetta + install operetta ${DESTDIR}${BINDIR} +clean: + rm precedent + +uninstall: + rm -f ${DESTDIR}${BINDIR}/operetta -- cgit v1.3.1