The Sol Programming Language!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
648 B

LDFLAGS= -lm -ldl -lreadline
OBJ= lex.yy.o dsl/seq.o dsl/list.o dsl/array.o dsl/generic.o astprint.o runtime.o gc.o object.o state.o builtins.o solrun.o
.PHONY: all test
all: $(OBJ)
git submodule init && git submodule sync && git submodule update
gcc $(CFLAGS) $? $(LDFLAGS) -o sol
test: all $(sort $(patsubst tests/%.sol,test_%,$(wildcard tests/*.sol)))
test_%: tests/%.sol
./sol r $?
%.o: %.c
gcc -c -o $@ $? $(CFLAGS) %.y
bison -rall -fall -d $?
lex.yy.c: tokenizer.lex
flex $<
rm -f *.o dsl/*.o sol
docs: Doxyfile
doxygen Doxyfile
sphinx-build -b html . ./_build