forked from haileys/jsos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
36 lines (26 loc) · 804 Bytes
/
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
-include Makefile.local
CFLAGS=-m32 -Wall -Wextra -iquote inc -g -Wno-unused-parameter -nostdlib \
-nostdinc -fno-builtin -nostartfiles -nodefaultlibs -fno-exceptions \
-fno-stack-protector -I./libc/inc -I./vm/inc
LDFLAGS=-nostdlib -static
all: twostroke/LICENSE libc/libc.a vm/libjsvm.a kernel/hdd.img \
docs/syscalls.md
twostroke/LICENSE:
git submodule update --init
libc/libc.a:
@make -C libc libc.a
vm/libjsvm.a:
@make -C vm libjsvm.a
kernel/hdd.img:
@make -C kernel hdd.img
.PHONY: libc/libc.a vm/libjsvm.a kernel/hdd.img
docs/syscalls.md: kernel/js/kernel/process.js scripts/generate-syscall-docs.rb
@ruby scripts/generate-syscall-docs.rb > $@
@echo " doc $@"
clean:
rm -f userland
rm -f *.o
rm -f docs/*.md
make -C libc clean
make -C vm clean
make -C kernel clean