Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

27 lines (23 sloc) 0.529 kb
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
./runtime/demo
clean:
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: demo.tab.o lex.yy.o demolino.o link.o debug.o compiler.o object.o
gcc -o $@ $(CFLAGS) $^ -lfl
lex.yy.c: demo.l
flex $^
demo.tab.c: demo.y
bison -d $^
Jump to Line
Something went wrong with that request. Please try again.