hcc/Makefile
HeshamTB 17d1dc7269 Makefile: restruct
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2023-12-29 05:05:17 +03:00

23 lines
309 B
Makefile

SRC=
all: scanner.c parser.c token.h
gcc -o hcc expr.c parser.c scanner.c main.c
scanner.c: flex
parser.c: bison
token.h: bison
bison:
bison --debug --defines=token.h --output=parser.c parser.bison
flex: bison
flex --debug -o scanner.c scanner.flex
clean:
rm -vf parser.c scanner.c hcc token.h