• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1cc = cc
2cxx = c++
3ld = $cc
4ldxx = $cxx
5ar = ar
6
7rule cc
8  command = $cc -MMD -MF $out.d $defines $includes $cflags $cflags_c -c $in -o $out
9  description = CC $out
10  depfile = $out.d
11  deps = gcc
12
13rule cxx
14  command = $cxx -MMD -MF $out.d $defines $includes $cflags $cflags_cc -c $in -o $out
15  description = CXX $out
16  depfile = $out.d
17  deps = gcc
18
19rule alink_thin
20  command = rm -f $out && $ar rcsT $out $in
21  description = AR $out
22
23rule link
24  command = $ld $ldflags -o $out -Wl,--start-group $in $solibs -Wl,--end-group $libs
25  description = LINK $out
26