forked from dlang/tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwin32.mak
89 lines (68 loc) · 1.61 KB
/
win32.mak
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
DOC=..\dlang.org
# Where scp command copies to
SCPDIR=..\backup
##### Tools
# D compiler
DMD=dmd
# C++ compiler
CC=dmc
# Make program
MAKE=make
# Librarian
LIB=lib
# Delete file(s)
DEL=del
# Make directory
MD=mkdir
# Remove directory
RD=rmdir
# File copy
CP=cp
# De-tabify
DETAB=detab
# Convert line endings to Unix
TOLF=tolf
# Zip
ZIP=zip32
# Copy to another directory
SCP=$(CP)
DFLAGS=-O -release
ROOT_OF_THEM_ALL = generated
ROOT = $(ROOT_OF_THEM_ALL)\windows\32
TARGETS= $(ROOT)\dman.exe \
$(ROOT)\rdmd.exe \
$(ROOT)\ddemangle.exe \
$(ROOT)\changed.exe \
$(ROOT)\dustmite.exe
MAKEFILES=win32.mak posix.mak
SRCS=dman.d rdmd.d ddemangle.d
targets : $(TARGETS)
dman: $(ROOT)\dman.exe
rdmd: $(ROOT)\rdmd.exe
ddemangle: $(ROOT)\ddemangle.exe
changed: $(ROOT)\changed.exe
dustmite: $(ROOT)\dustmite.exe
ALL_OF_PHOBOS_DRUNTIME_AND_DLANG_ORG = # ???
$(DOC)\d.tag : $(ALL_OF_PHOBOS_DRUNTIME_AND_DLANG_ORG)
cmd /C "cd $(DOC) && $(MAKE) -f win32.mak d.tag"
$(ROOT)\dman.exe : dman.d $(DOC)\d.tag
$(DMD) $(DFLAGS) -of$@ dman.d -J$(DOC)
$(ROOT)\rdmd.exe : rdmd.d
$(DMD) $(DFLAGS) -of$@ rdmd.d advapi32.lib
$(ROOT)\ddemangle.exe : ddemangle.d
$(DMD) $(DFLAGS) -of$@ ddemangle.d
$(ROOT)\dustmite.exe : DustMite/dustmite.d DustMite/splitter.d
$(DMD) $(DFLAGS) -of$@ DustMite/dustmite.d DustMite/splitter.d
$(ROOT)\changed.exe : changed.d
$(DMD) $(DFLAGS) -of$@ changed.d
clean :
del $(TARGETS) $(TAGS)
detab:
$(DETAB) $(SRCS)
tolf:
$(TOLF) $(SRCS) $(MAKEFILES)
zip: detab tolf $(MAKEFILES)
$(DEL) dman.zip
$(ZIP) dman $(MAKEFILES) $(SRCS) $(TAGS)
scp: detab tolf $(MAKEFILES)
$(SCP) $(SRCS) $(MAKEFILES) $(SCPDIR)