2015-11-12 21:23:56 +00:00
|
|
|
CXX = (getenv CXX c++)
|
|
|
|
|
2016-07-31 23:09:29 +00:00
|
|
|
OB_CXXFLAGS = "-g -Wall -Wextra -Wshadow -Wold-style-cast -O2"
|
2015-11-12 21:23:56 +00:00
|
|
|
|
2015-11-15 17:28:54 +00:00
|
|
|
CS_PATH = "../libcubescript"
|
|
|
|
OS_PATH = "../octastd"
|
2015-11-12 21:23:56 +00:00
|
|
|
|
2016-08-02 21:37:26 +00:00
|
|
|
FILES = [main_ob.o]
|
2015-11-12 21:23:56 +00:00
|
|
|
|
2015-12-13 21:10:18 +00:00
|
|
|
OB_CXXFLAGS = [@OB_CXXFLAGS -std=c++14 -I. -I@CS_PATH -I@OS_PATH -pthread]
|
2015-11-12 21:23:56 +00:00
|
|
|
|
|
|
|
rule obuild $FILES [
|
|
|
|
echo " LD" $target
|
2016-08-02 18:54:05 +00:00
|
|
|
shell $CXX $OB_CXXFLAGS -o obuild_ob $sources [@CS_PATH/libcubescript.a]
|
2015-11-12 21:23:56 +00:00
|
|
|
]
|
|
|
|
|
2015-11-14 01:08:27 +00:00
|
|
|
rule %_ob.o %.cc [
|
2015-11-12 21:23:56 +00:00
|
|
|
echo " CXX" $target
|
|
|
|
shell $CXX $OB_CXXFLAGS -c -o $target $source
|
|
|
|
]
|
|
|
|
|
|
|
|
action clean [
|
2015-11-13 19:08:48 +00:00
|
|
|
echo " CLEAN" $FILES obuild_ob
|
|
|
|
shell rm -f $FILES obuild_ob
|
2015-11-12 21:23:56 +00:00
|
|
|
]
|
|
|
|
|
2016-08-02 20:49:10 +00:00
|
|
|
depend main_ob.o [tpool.hh @CS_PATH/cubescript.hh]
|
2015-11-12 21:23:56 +00:00
|
|
|
|
2016-01-24 15:33:48 +00:00
|
|
|
rule default obuild
|