/examples/Makefile

http://github.com/baryluk/cords · Makefile · 36 lines · 18 code · 11 blank · 7 comment · 0 complexity · 662fca1a0fe4c5244f7433bc4760572b MD5 · raw file

  1. .PHONY: all clean
  2. all: example_wrap example example_balancing tests
  3. #VERSION=-version=rop -version=costlyinvariants -version=paranoid
  4. VERSION=-version=rop
  5. DDOC=-D -Ddddoc ddoc/candydoc/candy.ddoc ddoc/candydoc/modules.ddoc
  6. DMD=dmd2
  7. #DFLAGS=-w -debug -unittest -g -gc $(VERSION)
  8. #DFLAGS=-w -profile -debug -unittest -g -gc $(DDOC) $(VERSION)
  9. #DFLAGS=-w -debug -unittest $(DDOC) $(VERSION)
  10. #DFLAGS=-w -O -inline -release -unittest $(DDOC) $(VERSION)
  11. #DFLAGS=-w -O -inline -release $(VERSION)
  12. #DFLAGS=-O -inline -release -g -gc $(VERSION)
  13. DFLAGS=-O -inline -release $(VERSION)
  14. tests: tests.d cord_l.d ../cords.d ../RBt.d
  15. $(DMD) $(DFLAGS) -oftests tests.d ../cord_l.d ../cords.d utils/timer.d utils/log.d ../RBt.d
  16. example: example.d ../cords.d ../RBt.d
  17. $(DMD) $(DFLAGS) -ofexample example.d ../cords.d utils/timer.d utils/log.d ../RBt.d
  18. example_balancing: example_balancing.d ../cords.d ../RBt.d
  19. $(DMD) $(DFLAGS) -ofexample_balancing example_balancing.d ../cords.d utils/timer.d utils/log.d ../RBt.d
  20. example_wrap: example_wrap.d ../cords.d ../RBt.d
  21. $(DMD) $(DFLAGS) -ofexample_wrap example_wrap.d ../cords.d utils/timer.d utils/log.d ../RBt.d
  22. example_readme: example_readme.d ../cords.d ../RBt.d
  23. $(DMD) $(DFLAGS) -ofexample_readme example_readme.d ../cords.d utils/timer.d utils/log.d ../RBt.d
  24. clean:
  25. rm *.o