Merge pull request #9 from atsampson/master

makefile fixes: allow parallel make and work with pmake
This commit is contained in:
onetrueawk 2018-08-28 16:05:48 -04:00 committed by GitHub
commit 2dc7e5ff1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -36,7 +36,7 @@ CC = gcc -g -Wall -pedantic
#YFLAGS = -d -S
#YACC = bison -d -y
YACC = yacc -d
# -S uses sprintf in yacc parser instead of sprint
# -S uses sprintf in yacc parser instead of sprint
OFILES = b.o main.o parse.o proctab.o tran.o lib.o run.o lex.o
@ -54,11 +54,12 @@ a.out: ytab.o $(OFILES)
$(OFILES): awk.h ytab.h proto.h
ytab.o: awk.h proto.h awkgram.y
ytab.c: awk.h proto.h awkgram.y
$(YACC) $(YFLAGS) awkgram.y
mv y.tab.c ytab.c
mv y.tab.h ytab.h
$(CC) $(CFLAGS) -c ytab.c
ytab.h: ytab.c
proctab.c: maketab
./maketab >proctab.c