OctaBuild/example/cubefile

24 lines
359 B
Plaintext
Raw Normal View History

2015-08-15 02:21:20 +02:00
rule all test
2015-08-23 10:06:32 +02:00
OBJ = (strreplace (glob "*.c") ".c" ".o")
2015-08-15 02:21:20 +02:00
rule test $OBJ [
echo " LD" $target
shell cc -o $target $sources
]
rule %.o %.c [
echo " CC" $target
shell cc -c -o $target $source
]
rule clean [] [
echo " CLEAN" $OBJ test
shell rm -f $OBJ test
]
// dependencies
rule foo.o foo.h
rule bar.o bar.h
rule test.o [foo.h bar.h]