Makefile 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. SQUIRREL=.
  2. MAKE=make CC=g++ CC_EXTRA_FLAGS="-fno-rtti -fno-exceptions -DNDEBUG -DONLY_ASCII -DNO_ABSTRACT_METHOD -DCUSTOM_DELETE_OPERATOR -DSQ_USE_MKSTEMP -DSQ_ENABLE_INCLUDES -DSQ_SUBLATIN -DNEED_SUBLATIN_C -DSQUSEDOUBLE" \
  3. LD_EXTRA_FLAGS=""
  4. #MAKE=make CC=g++ CC_EXTRA_FLAGS="-fsanitize=address -DONLY_ASCII -DSQ_USE_MKSTEMP -DSQ_ENABLE_INCLUDES -DSQ_SUBLATIN -DNEED_SUBLATIN_C -DSQUSEDOUBLE"
  5. #MAKE=make
  6. DIRS=bin lib
  7. $(shell mkdir -p $(DIRS))
  8. sq32:
  9. cd squirrel; $(MAKE)
  10. cd sqstdlib; $(MAKE)
  11. cd sq; $(MAKE)
  12. sq32i64:
  13. cd squirrel; $(MAKE) sq32i64
  14. cd sqstdlib; $(MAKE) sq32i64
  15. cd sq; $(MAKE) sq32i64
  16. sq32dbg:
  17. cd squirrel; $(MAKEDBG) $@
  18. cd sqstdlib; $(MAKEDBG) $@
  19. cd sq; $(MAKE) $@
  20. sqprof:
  21. cd squirrel; $(MAKE) sqprof
  22. cd sqstdlib; $(MAKE) sqprof
  23. cd sq; $(MAKE) sqprof
  24. sq64:
  25. cd squirrel; $(MAKE) sq64
  26. cd sqstdlib; $(MAKE) sq64
  27. cd sq; $(MAKE) sq64
  28. sq64p:
  29. cd squirrel; $(MAKE) sq64p
  30. cd sqstdlib; $(MAKE) sq64p
  31. cd sq; $(MAKE) sq64p
  32. sq64dbg:
  33. cd squirrel; $(MAKEDBG) $@
  34. cd sqstdlib; $(MAKEDBG) $@
  35. cd sq; $(MAKEDBG) $@
  36. clean:
  37. rm lib/*
  38. rm bin/*