-
-
Notifications
You must be signed in to change notification settings - Fork 28
/
win32.mak
55 lines (36 loc) · 927 Bytes
/
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
#_ win32.mak
# Build win32 version of undead
# Needs Digital Mars D compiler to build, available free from:
# http://www.digitalmars.com/d/
DMD=dmd
DEL=del
S=src\undead
O=obj
B=bin
TARGET=undead
DFLAGS=-g -Isrc/
LFLAGS=-L/map/co
#DFLAGS=
#LFLAGS=
.d.obj :
$(DMD) -c $(DFLAGS) $*
SRC= $S\bitarray.d $S\regexp.d $S\datebase.d $S\date.d $S\dateparse.d \
$S\cstream.d $S\stream.d $S\socketstream.d $S\doformat.d $S/string.d \
$S\internal\file.d
SOURCE= $(SRC) win32.mak win64.mak posix.mak LICENSE README.md dub.json
all: $B\$(TARGET).lib
#################################################
$B\$(TARGET).lib : $(SRC)
$(DMD) -lib -of$B\$(TARGET).lib $(SRC) $(DFLAGS)
unittest :
$(DMD) -unittest -main -cov -of$O\unittest.exe $(SRC) $(DFLAGS)
$O\unittest.exe
clean:
$(DEL) $O\unittest.exe *.lst
tolf:
tolf $(SOURCE)
detab:
detab $(SRC)
zip: detab tolf $(SOURCE)
$(DEL) undead.zip
zip32 undead $(SOURCE)