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

CXX = (getenv CXX c++)
OB_CXXFLAGS = "-g -Wall -Wextra -Wshadow -Wold-style-cast -O2"
CS_PATH = "../libcubescript"
OS_PATH = "../libostd"
FILES = [main_ob.o]
OB_CXXFLAGS = [@OB_CXXFLAGS -std=c++1z -I. -I@CS_PATH/include -I@OS_PATH -pthread]
rule obuild $FILES [
echo " LD" $target
shell $CXX $OB_CXXFLAGS -o obuild_ob $sources [@CS_PATH/libcubescript.a]
rule %_ob.o [
echo " CXX" $target
shell $CXX $OB_CXXFLAGS -c -o $target $source
action clean [
echo " CLEAN" $FILES obuild_ob
shell rm -f $FILES obuild_ob
depend main_ob.o [tpool.hh @CS_PATH/include/cubescript/cubescript.hh]
rule default obuild