Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update win32.mak, win64.mak and posix.mak #53

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions posix.mak
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@ LFLAGS=-L/map/co
.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
SRC= $S/bitarray.d $S/cstream.d $S/date.d $S/datebase.d $S/dateparse.d \
$S/doformat.d $S/metastrings.d $S/regexp.d $S/signals.d \
$S/socketstream.d $S/stream.d $S/string.d $S/utf.d $S/xml.d \
$S/internal\file.d


SOURCE= $(SRC) win32.mak posix.mak LICENSE README.md dub.json
Expand Down
9 changes: 5 additions & 4 deletions win32.mak
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,21 @@ DMD=dmd
DEL=del
S=src\undead
O=obj
B=bin
B=bin32mscoff

TARGET=undead

DFLAGS=-g -Isrc/
DFLAGS=-g -Isrc/ -m32
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 \
SRC= $S\bitarray.d $S\cstream.d $S\date.d $S\datebase.d $S\dateparse.d \
$S\doformat.d $S\metastrings.d $S\regexp.d $S\signals.d \
$S\socketstream.d $S\stream.d $S\string.d $S\utf.d $S\xml.d \
$S\internal\file.d

SOURCE= $(SRC) win32.mak win64.mak posix.mak LICENSE README.md dub.json
Expand Down
56 changes: 56 additions & 0 deletions win32omf.mak
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
#_ 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=bin32omf

TARGET=undead

DFLAGS=-g -Isrc/ -m32omf
LFLAGS=-L/map/co
#DFLAGS=
#LFLAGS=

.d.obj :
$(DMD) -c $(DFLAGS) $*

SRC= $S\bitarray.d $S\cstream.d $S\date.d $S\datebase.d $S\dateparse.d \
$S\doformat.d $S\metastrings.d $S\regexp.d $S\signals.d \
$S\socketstream.d $S\stream.d $S\string.d $S\utf.d $S\xml.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)
11 changes: 6 additions & 5 deletions win64.mak
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#_ win32.mak
# Build win32 version of undead
#_ win64.mak
# Build win64 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
B=bin64

TARGET=undead

Expand All @@ -19,8 +19,9 @@ LFLAGS=-L/map/co
.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 \
SRC= $S\bitarray.d $S\cstream.d $S\date.d $S\datebase.d $S\dateparse.d \
$S\doformat.d $S\metastrings.d $S\regexp.d $S\signals.d \
$S\socketstream.d $S\stream.d $S\string.d $S\utf.d $S\xml.d \
$S\internal\file.d

SOURCE= $(SRC) win32.mak win64.mak posix.mak LICENSE README.md dub.json
Expand Down