-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
makefile.msc
151 lines (135 loc) · 2.93 KB
/
makefile.msc
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
# nmake makefile for Microsoft C
.SUFFIXES: .d .c .h .obj .exe .lib
MAKEFILE=makefile.msc
DPP = ..\bin\dpp
DPPOPTS = -C $(STRAT)
# re-builds changes files
all:
-mkdir lib
cd kernel
$(MAKE) /nologo /f $(MAKEFILE)
@rem
cd ..\class
$(MAKE) /nologo /f $(MAKEFILE)
@rem
cd ..\threads
$(MAKE) /nologo /f $(MAKEFILE)
@rem
cd ..\dpp
$(MAKE) /nologo /f $(MAKEFILE) install
@rem
cd ..\generics
$(MAKE) /nologo /f $(MAKEFILE)
cd ..
# rebuilds entire system from scratch
all-scratch: setup.win
-mkdir lib
cd kernel
$(MAKE) /nologo /f $(MAKEFILE) NEW=1
@rem
cd ..\class
$(MAKE) /nologo /f $(MAKEFILE)
@rem
cd ..\threads
$(MAKE) /nologo /f $(MAKEFILE)
@rem
cd ..\dpp
$(MAKE) /nologo /f $(MAKEFILE) install
@rem
cd ..\generics
$(MAKE) /nologo /f $(MAKEFILE)
cd ..
clean:
cd kernel
$(MAKE) /nologo /f $(MAKEFILE) clean
@rem
cd ..\class
$(MAKE) /nologo /f $(MAKEFILE) clean
@rem
cd ..\threads
$(MAKE) /nologo /f $(MAKEFILE) clean
@rem
cd ..\generics
$(MAKE) /nologo /f $(MAKEFILE) clean
@rem
cd ..\dpp
$(MAKE) /nologo /f $(MAKEFILE) clean
@rem
cd ..\examples\setup
call cleanall.bat
@rem
cd ..\..
rm -zq setup.unx setup.win setup.p9 *.~ *.?~ *.??~ #*.* *.{*
realclean:
cd kernel
$(MAKE) /nologo /f $(MAKEFILE) realclean
@rem
cd ..\class
$(MAKE) /nologo /f $(MAKEFILE) realclean
@rem
cd ..\threads
$(MAKE) /nologo /f $(MAKEFILE) realclean
@rem
cd ..\generics
$(MAKE) /nologo /f $(MAKEFILE) realclean
@rem
cd ..\dpp
$(MAKE) /nologo /f $(MAKEFILE) realclean
@rem
cd ..\examples\setup
call cleanall.bat
@rem
cd ..\..
rm -zq setup.unx setup.win setup.p9 *.~ *.?~ *.??~ #*.* *.{*
rm -zq lib\d*.* bin\dpp bin\dpp.exe
rm -zq bin\addcr bin\addcr.exe bin\delcr bin\delcr.exe lib\d*.*
dist:
rm -zq dynace*.zip
zip -r dynace README msc.dm makefile.unx makefile.inc change.log
zip dynace bin\* class\* docs\* dpp\* generics\* lib\*
zip dynace include\* kernel\* threads\* utils\*
zip -r dynace examples\list examples\exam* examples\setup
# rebuilds generics.h from scratch
makegens:
cd kernel
rm -zq generics.*
$(DPP) $(DPPOPTS) -h -i -s *.d
mv generics.h ../include
@rem
cd ..\class
$(DPP) $(DPPOPTS) -h -i -g ../include/generics.h -s *.d
mv generics.h ../include
@rem
cd ..\threads
$(DPP) $(DPPOPTS) -h -i -g ../include/generics.h -s *.d
mv generics.h ../include
@rem
cd ..
# rebuilds generics.h from scratch and pre-processes all .d files
newgens :
rm include\generics.h
@rem
cd kernel
$(MAKE) /nologo /f $(MAKEFILE) reallynewgens
@rem
cd ..\class
$(MAKE) /nologo /f $(MAKEFILE) newgens
@rem
cd ..\threads
$(MAKE) /nologo /f $(MAKEFILE) newgens
@rem
cd ..\dpp
$(MAKE) /nologo /f $(MAKEFILE) newgens
$(MAKE) /nologo /f $(MAKEFILE) generics.c
cd ..
# make sure file times are correct on a new system so the build order is correct
setup.win :
touch kernel\*.c
touch class\*.c
touch threads\*.c
touch dpp\*.c
touch dpp\generics.h
touch dpp\generics.c
pause
touch include\generics.h
touch $@