-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathwin32.mak
86 lines (61 loc) · 1.45 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
##### Directories
# Where scp command copies to
SCPDIR=..\backup
# Source files
S=src\dmpp
##### Tools
# D compiler
DMD=dmd
# 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)
MFLAGS=
SRCS=$S\main.d $S\cmdline.d $S\context.d $S\id.d $S\skip.d $S\macros.d $S\textbuf.d \
$S\ranges.d $S\outdeps.d $S\lexer.d $S\constexpr.d $S\number.d $S\stringlit.d \
$S\sources.d $S\loc.d $S\expanded.d $S\directive.d $S\file.d $S\charclass.d
DOCS=LICENSE.md README.md
DDOCS=$S\dmpp.dd
MAKEFILES=win32.mak posix.mak
TARGETS=dmpp.exe dmpp.html
targets : $(TARGETS)
dmpp.exe : $(SRCS)
$(DMD) -g $(SRCS) -ofdmpp.exe
release :
$(DMD) $(MFLAGS) -O -release -inline -noboundscheck $(SRCS) -ofdmpp.exe
profile :
$(DMD) -profile $(SRCS) -ofdmpp.exe
profilegc :
$(DMD) -profile=gc $(SRCS) -ofdmpp.exe
unittest : $(SRCS)
$(DMD) -g $(SRCS) -ofdmpp.exe -unittest -cov
dmpp.html : $S\dmpp.dd
$(DMD) $S\dmpp.dd -D
clean:
$(DEL) $(TARGETS)
detab:
$(DETAB) $(SRCS) $(DOCS) $(DDOCS)
tolf:
$(TOLF) $(SRCS) $(DOCS) $(DDOCS) $(MAKEFILES)
zip: detab tolf $(SRCS) $(DOCS) $(DDOCS) $(MAKEFILES)
$(DEL) dmppsrc.zip
$(ZIP) dmppsrc $(DOCS) $(SRCS) $(DDOCS) $(MAKEFILES)
git: detab tolf $(MAKEFILES)
$(SCP) $(MAKEFILES) $(DOCS) $(SCPDIR)/
$(SCP) $(SRCS) $(DDOCS) $(SCPDIR)/src/dmd