aboutsummaryrefslogtreecommitdiff
path: root/build.ninja
blob: a5447e637ac9ede7bead4f5670765dcd3948e28c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
outdir = build
cc = clang
name = gigi

rule compile
  command = $cc -std=c89 -c $in -o $out

rule link
  command = $cc $in -o $out

build $outdir/$name.o: compile ./$name.c
build $outdir/$name: link $outdir/$name.o

default $outdir/$name