-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.nt
51 lines (43 loc) · 1.35 KB
/
Makefile.nt
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
#
# Bootstrap program is omake-boot.exe
#
default:
@echo "If you have already built omake, you should use it instead of make."
@echo "If you need to bootstrap, use "
@echo " - 'nmake -f Makefile.nt bootstrap',"
@echo " to build the bootstrapping (feature-limited) OMake binary 'omake-boot.exe'."
@echo " - 'nmake -f Makefile.nt all',"
@echo " to bootstrap and then build everything."
@echo " - 'nmake -f Makefile.nt install',"
@echo " to bootstrap, build, and install everything."
@exit 1
NMAKE = $(MAKE) /nologo -f Makefile.nt
bootstrap: boot\Makefile.nt boot\Makefile.dep
cd boot
$(NMAKE) Makefile.dep
$(NMAKE) omake.exe
copy omake.exe ..\omake-boot.exe
cd ..
.config:
echo # Empty config > .config
all: bootstrap .config
set OMAKEFLAGS=
set OMAKEPATH=lib
.\omake-boot --dotomake .omake --force-dotomake -j2 main src\main\osh.exe
src\main\omake --dotomake .omake --force-dotomake -j2 all
install: all
set OMAKEFLAGS=
set OMAKEPATH=lib
.\omake-boot --dotomake .omake --force-dotomake -j2 install
aip-install: all
mkdir ..\omake-install
set OMAKEFLAGS=
set OMAKEPATH=lib
set BINDIR=../omake-install/bin
set LIBDIR=../omake-install/lib
.\omake-boot --dotomake .omake --force-dotomake -j2 install
boot\Makefile.nt: src\Makefile.nt
-mkdir boot
copy src\Makefile.nt boot\Makefile.nt
boot\Makefile.dep:
echo # Dependencies > $@