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.

Makefile 648B

123456789101112131415161718192021222324252627282930
  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. .PHONY: all test
  5. all: $(OBJ)
  6. git submodule init && git submodule sync && git submodule update
  7. gcc $(CFLAGS) $? $(LDFLAGS) -o sol
  8. test: all $(sort $(patsubst tests/%.sol,test_%,$(wildcard tests/*.sol)))
  9. test_%: tests/%.sol
  10. ./sol r $?
  11. %.o: %.c
  12. gcc -c -o $@ $? $(CFLAGS)
  13. %.tab.c %.tab.h: %.y
  14. bison -rall -fall -d $?
  15. lex.yy.c: tokenizer.lex parser.tab.h
  16. flex $<
  17. clean:
  18. rm -f *.o dsl/*.o sol
  19. docs: Doxyfile
  20. doxygen Doxyfile
  21. sphinx-build -b html . ./_build