cflags = -std=gnu99 -Wall -Wextra -O3
builddir = build
phony all
build all: $builddir/main run
rule cc
depfile = $out.d
command = gcc -MD -MF $out.d $cflags -o $out -c $in
rule link
command = cc $cflags -o $out $in
build $builddir/foo.o: cc foo.c
build $builddir/bar.o: cc bar.c
build $builddir/main.o: cc main.c
build $builddir/main: link $builddir/foo.o $
$builddir/bar.o $
$builddir/main.o
cflags = -std=gnu99 -O2
phony run
build run:
command = ./$builddir/main
phony clean
build clean:
command = rm -f $builddir/*
-
Notifications
You must be signed in to change notification settings - Fork 0
Simple, Peak Performance Build System
License
Apache-2.0, MIT licenses found
Licenses found
Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
rakivo/rush
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Simple, Peak Performance Build System
Resources
License
Apache-2.0, MIT licenses found
Licenses found
Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published