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

38 lines (31 sloc) 0.956 kb
CC = gcc
CFLAGS = -W -Wall -g -std=c99 -pedantic
INCLUDE_PATHS = -I vendor/uthash-1.9.1/src
LIBRARIES = -l gc
compile: generate_tokenizer
mkdir -p bin && \
cd src && \
$(CC) $(CFLAGS) $(INCLUDE_PATHS) -c shared.c && \
$(CC) $(CFLAGS) $(INCLUDE_PATHS) -c loop.c && \
$(CC) $(CFLAGS) $(INCLUDE_PATHS) -c scanner.c && \
$(CC) $(CFLAGS) $(INCLUDE_PATHS) -c main.c && \
$(CC) $(CFLAGS) $(INCLUDE_PATHS) -c repl.c && \
$(CC) $(CFLAGS) $(INCLUDE_PATHS) $(LIBRARIES) -o ./../bin/loop shared.o loop.o scanner.o main.o && \
$(CC) $(CFLAGS) $(INCLUDE_PATHS) $(LIBRARIES) -o ./../bin/loop-repl shared.o loop.o scanner.o repl.o && \
cd -
clean:
rm -rf bin
rm -rf src/scanner.c
rm -rf src/*.o
rm -rf spec/logs
spec: compile
rspec spec/loop_spec.rb
test: spec
spec_valgrind: compile
VALGRIND=true spec spec/loop_spec.rb
generate_tokenizer:
cd src && \
re2c scanner.re2c > scanner.c && \
cd -
sloc:
sloccount src
Jump to Line
Something went wrong with that request. Please try again.