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.

38 lines
801 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 ser.o
.PHONY: all test
all: dsl sol
sol: $(OBJ)
gcc $(CFLAGS) $? $(LDFLAGS) -o sol
test: all $(sort $(patsubst tests/%.sol,test_%,$(wildcard tests/*.sol))) $(sort $(patsubst tests/%.sol,testcomp_%,$(wildcard tests/*.sol)))
test_%: tests/%.sol
./sol r $?
testcomp_%: tests/%.sol
./sol rc $? /dev/fd/1 | ./sol C
git submodule init && git submodule sync && git submodule update
%.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