forked from akaros/vmm-akaros
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
43 lines (32 loc) · 1.2 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#recursive make considered harmful.
#http://www.tip.net.au/~millerp/rmch/recu-make-cons-harm.html
# For a crazy complex way to do it:
#http://evbergen.home.xs4all.nl/nonrecursive-make.html
#
# Rules: keep this simple. Make sure the gcc is in your path and nobody gets hurt.
### Build flags for all targets
#
CFLAGS = -O2 -std=gnu99 -fno-stack-protector -fgnu89-inline -Wsystem-headers -fPIC -static -fno-omit-frame-pointer -g -Iinclude
LDFLAGS =
LDLIBS = -lpthread -lbenchutil -lm -liplib -lndblib
DEST = $(AKAROS)/kern/kfs/bin
### Build tools
#
CC=x86_64-ucb-akaros-gcc
AR=x86_64-ucb-akaros-ar
all: vmm
install: all
echo "Installing vmm in $(DEST)"
cp vmm $(DEST)
# compilers are fast. Just rebuild it each time.
vmm: FORCE
$(CC) $(CFLAGS) $(LDFLAGS) -o vmm vmm.c lib/*.c $(LDLIBS)
FORCE:
clean:
rm -f vmm lib/*.o
# this is intended to be idempotent, i.e. run it all you want.
gitconfig:
curl -Lo .git/hooks/commit-msg http://review.gerrithub.io/tools/hooks/commit-msg
chmod u+x .git/hooks/commit-msg
git config remote.origin.push HEAD:refs/for/master
git config remote.origin.receivepack "git receive-pack --reviewer rminnich --reviewer cross --reviewer ganshun --reviewer mtaufen"