Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (23 sloc) 529 Bytes
CC = gcc
CFLAGS = -Wall -O3
# For debugging, replace "-O3" with "-g -DDEBUG"
all: demolino
debug: all
./demolino < test.demo
./demolino < test.demo > runtime/demo.c
gcc -o runtime/demo runtime/demort.c -lglut -lGL -lGLU
rm -f *.o
rm -f *.yy.c
rm -f *.tab.*
rm -f demolino
rm -f runtime/demo
rm -f runtime/demo.c
rebuild: clean all
demolino: lex.yy.o demolino.o link.o debug.o compiler.o object.o
gcc -o $@ $(CFLAGS) $^ -lfl
lex.yy.c: demo.l
flex $^ demo.y
bison -d $^