1 /usr/bin/tmake (statically-linked core program)
3 /usr/lib/tmake/packages/cc.tcl (modules)
5 ===============================================================================
11 proc c-file {o-file file headers} {
12 rule $o-file [lappend $headers file] {
13 exec $CC -o $TARGET -c $file
17 c-file file1.o file1.c {foo.h bar.h}
18 c-file file2.o file2.c {foo.h bar.h}
20 rule $PROGNAME {file1.o file2.o} {
21 exec $CC -o $TARGET $INPUTS
24 ===============================================================================
30 c-program $PROGNAME {file1.c file2.c}
32 ===============================================================================