mirror of
https://github.com/Museum-of-Art-and-Digital-Entertainment/macross.git
synced 2024-06-01 07:41:43 +00:00
Use bison as the default yacc
This commit is contained in:
parent
4bed39833e
commit
bca47ce3e1
8
Makefile
8
Makefile
|
@ -24,6 +24,10 @@ conditionDefs_$(PROC).h driver.c slinkyExpressions.h
|
|||
HEADERS = macrossTypes.h macrossGlobals.h
|
||||
|
||||
CFLAGS=-m32 # macross is not 64 bit clean
|
||||
# If yacc is notionally present on a system, it's usually actually
|
||||
# bison in a compatibility mode. bison is available by name more often
|
||||
# than bison itself is.
|
||||
YACC=bison -o y.tab.c
|
||||
|
||||
.c.o:
|
||||
cc $(CFLAGS) -c -g -DTARGET_CPU=CPU_$(PROC) $*.c
|
||||
|
@ -153,10 +157,10 @@ y.tab.o: y.tab.c $(HEADERS)
|
|||
cc $(CFLAGS) -c -g -DYYDEBUG -DTARGET_CPU=CPU_$(PROC) y.tab.c
|
||||
|
||||
y.tab.c y.tab.h: macross_$(PROC).y
|
||||
yacc -d macross_$(PROC).y
|
||||
$(YACC) -d macross_$(PROC).y
|
||||
|
||||
y.output: macross_$(PROC).y
|
||||
yacc -vd macross_$(PROC).y
|
||||
$(YACC) -vd macross_$(PROC).y
|
||||
|
||||
cleanup:
|
||||
/bin/rm -f *.o y.output y.tab.c y.tab.h macross
|
||||
|
|
Loading…
Reference in New Issue
Block a user