aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTudor Roman2017-02-15 21:42:06 +0200
committerTudor Roman2017-02-15 21:42:06 +0200
commitaaf9d5cd538e8e68d93f4c6b1f96ca825bcefee3 (patch)
treeb682e34281a88306c3a32c895da18d55cbd6007f
parentbb4b10a4936cf8ab73e74a1c495aec0713f428eb (diff)
downloadruler-aaf9d5cd538e8e68d93f4c6b1f96ca825bcefee3.tar.gz
ruler-aaf9d5cd538e8e68d93f4c6b1f96ca825bcefee3.zip
update makefilev0.1.0
-rw-r--r--Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index d1d5a0d..dd87409 100644
--- a/Makefile
+++ b/Makefile
@@ -4,17 +4,19 @@ VERCMD ?= git describe 2> /dev/null
NAME = ruler
VERSION = $(shell $(VERCMD) || cat VERSION)
+YACC ?= yacc
+LEX ?= lex
all: $(NAME)
$(NAME): ruler.c lex.yy.c y.tab.c
- clang $^ $(CFLAGS) $(LDFLAGS) -DNAME=\"$(NAME)\" -DVERSION=\"$(VERSION)\" -o ruler
+ $(CC) $^ $(CFLAGS) $(LDFLAGS) -DNAME=\"$(NAME)\" -DVERSION=\"$(VERSION)\" -o ruler
%.tab.c %.tab.h: parser.y
- yacc $<
+ $(YACC) $<
lex.yy.c: scanner.l
- lex $<
+ $(LEX) $<
install: all
mkdir -p $(DESTDIR)$(PREFIX)/bin