-
-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathmakefile.msc
More file actions
151 lines (135 loc) · 3.15 KB
/
Copy pathmakefile.msc
File metadata and controls
151 lines (135 loc) · 3.15 KB
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: setup.win
if not exist lib 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
if not exist lib 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 ..\..
-del /Q setup.unx setup.win setup.p9 *.~ *.?~ *.??~ #*.* *.{* 2>NUL
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 ..\..
-del /Q setup.unx setup.win setup.p9 *.~ *.?~ *.??~ #*.* *.{* 2>NUL
-del /Q lib\d*.* bin\dpp bin\dpp.exe 2>NUL
-del /Q bin\addcr bin\addcr.exe bin\delcr bin\delcr.exe lib\d*.* 2>NUL
dist:
-del /Q dynace*.zip 2>NUL
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
-del /Q generics.* 2>NUL
$(DPP) $(DPPOPTS) -h -i -s *.d
move generics.h ..\include
@rem
cd ..\class
$(DPP) $(DPPOPTS) -h -i -g ../include/generics.h -s *.d
move generics.h ..\include
@rem
cd ..\threads
$(DPP) $(DPPOPTS) -h -i -g ../include/generics.h -s *.d
move generics.h ..\include
@rem
cd ..
# rebuilds generics.h from scratch and pre-processes all .d files
newgens :
-del /Q include\generics.h 2>NUL
@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 :
copy /b kernel\*.c+,, kernel\*.c
copy /b class\*.c+,, class\*.c
copy /b threads\*.c+,, threads\*.c
copy /b dpp\*.c+,, dpp\*.c
copy /b dpp\generics.h+,, dpp\generics.h
copy /b dpp\generics.c+,, dpp\generics.c
pause
copy /b include\generics.h+,, include\generics.h
echo Done >$@