The OctaForge build system
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.

29 lines
644 B

4 years ago
4 years ago
4 years ago
  1. CXX = (getenv CXX c++)
  2. OB_CXXFLAGS = "-g -Wall -Wextra -Wshadow -Wold-style-cast -O2"
  3. CS_PATH = "../libcubescript"
  4. OS_PATH = "../libostd"
  5. FILES = [main_ob.o]
  6. OB_CXXFLAGS = [@OB_CXXFLAGS -std=c++1z -I. -I@CS_PATH/include -I@OS_PATH -pthread]
  7. rule obuild $FILES [
  8. echo " LD" $target
  9. shell $CXX $OB_CXXFLAGS -o obuild_ob $sources [@CS_PATH/libcubescript.a]
  10. ]
  11. rule %_ob.o %.cc [
  12. echo " CXX" $target
  13. shell $CXX $OB_CXXFLAGS -c -o $target $source
  14. ]
  15. action clean [
  16. echo " CLEAN" $FILES obuild_ob
  17. shell rm -f $FILES obuild_ob
  18. ]
  19. depend main_ob.o [tpool.hh @CS_PATH/include/cubescript/cubescript.hh]
  20. rule default obuild