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.

23 lines
523 B

  1. CFLAGS= -g
  2. LDFLAGS= -lm -ldl -lreadline
  3. OBJ= lex.yy.o parser.tab.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
  4. all: $(OBJ)
  5. git submodule init && git submodule sync && git submodule update
  6. gcc $(CFLAGS) $? $(LDFLAGS) -o sol
  7. %.o: %.c
  8. gcc -c -o $@ $? $(CFLAGS)
  9. %.tab.c %.tab.h: %.y
  10. bison -rall -fall -d $?
  11. lex.yy.c: tokenizer.lex parser.tab.h
  12. flex $<
  13. clean:
  14. rm -f *.o dsl/*.o sol
  15. docs: Doxyfile
  16. doxygen Doxyfile
  17. sphinx-build -b html . ./_build