Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
36 lines (27 sloc) 726 Bytes
builddir = build
# Short alias for builddir.
b = build
includes = -I.
cflags = -g -Wall -Werror -fno-exceptions -pipe
cflags_cxx= -fno-rtti
cxx = g++
rule cxx
command = $cxx -MMD -MF $out.d $includes $cflags $cflags_cxx -c $in -o $out
description = CXX $out
depfile = $out.d
rule alink
command = rm -f $out && ar rcsT $out $in
description = AR $out
rule link
command = $cxx $ldflags -o $out $in $libs
description = LINK $out
# Build core source files.
build $b/hello.o: cxx hello.cc
build $b/shell.o: cxx shell.cc
# Build executable.
build $b/hello-world: link $b/hello.o
libs = -Lv8 -lv8_g
ldflags = -lv8_g -lpthread
build $b/shell: link $b/shell.o
libs = -Lv8 -lv8_g
ldflags = -lv8_g -lpthread