-
-
Notifications
You must be signed in to change notification settings - Fork 28
/
posix.mak
61 lines (38 loc) · 952 Bytes
/
posix.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
#_ posix.mak
# Build posix version of undead
# Needs Digital Mars D compiler to build, available free from:
# http://www.digitalmars.com/d/
DMD=dmd
DEL=rm
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 posix.mak LICENSE README.md dub.json
all: $B/$(TARGET).a
#################################################
$B/$(TARGET).a : $(SRC)
$(DMD) -lib -of$B/$(TARGET).a $(SRC) $(DFLAGS)
unittest :
$(DMD) -unittest -main -cov -of$O/unittest $(SRC) $(DFLAGS)
$O/unittest
clean:
$(DEL) $O/unittest *.lst
tolf:
tolf $(SOURCE)
detab:
detab $(SRC)
zip: detab tolf $(SOURCE)
$(DEL) undead.zip
zip undead $(SOURCE)
gitzip:
git archive --format=zip HEAD > undead.zip