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 801B

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