forked from hintron/8086-toolchain
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
62 lines (55 loc) · 1.36 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
all: host elks
elks:
mkdir -p elks-bin
make -C compiler -f Makefile.elks
make -C cpp -f Makefile.elks
make -C as -f Makefile.elks
make -C ld -f Makefile.elks
make -C ar -f Makefile.elks
make -C make -f Makefile.elks
make -C disasm -f Makefile.elks
# make -C nasm -f Makefile.elks
# make -C nasm32 -f Makefile.elks
host:
mkdir -p host-bin
make -C compiler
make -C cpp
make -C as
make -C ld
make -C ar
make -C make
make -C disasm
# make -C nasm
# make -C nasm32
# make -C emulator
# make -C libc-unused
# make -C examples
copy:
cp elks-bin/* $(TOPDIR)/elkscmd/rootfs_template/root
rm -f $(TOPDIR)/elkscmd/rootfs_template/root/ndisasm86
rm -f $(TOPDIR)/elkscmd/rootfs_template/root/nasm86
.PHONY: clean cleanhost cleanelks copy
clean: cleanhost cleanelks
cleanhost:
make -C compiler clean
make -C cpp clean
make -C as clean
make -C ld clean
make -C ar clean
make -C make clean
make -C disasm clean
make -C nasm clean
make -C nasm32 clean
make -C emulator clean
# make -C libc-unused clean
make -C examples clean
cleanelks:
make -C compiler -f Makefile.elks clean
make -C cpp -f Makefile.elks clean
make -C as -f Makefile.elks clean
make -C ld -f Makefile.elks clean
make -C ar -f Makefile.elks clean
make -C make -f Makefile.elks clean
make -C disasm -f Makefile.elks clean
make -C nasm -f Makefile.elks clean
make -C nasm32 -f Makefile.elks clean