Skip to content

Commit 0e702d9

Browse files
P.M. Cronjehostilefork
authored andcommitted
historical commit ddd 1.0.5
0 parents  commit 0e702d9

File tree

15 files changed

+5901
-0
lines changed

15 files changed

+5901
-0
lines changed

Makefile

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# HOW TO COMPILE AND LINK THIS WITH THE LATEST VERSION OF DDS
2+
#
3+
# The following is suggested:
4+
#
5+
# - obtain the latest .cpp and dll.h file for version 1.0x
6+
# of Bo Haglund's DDS
7+
# - rename them to dds10x.cpp and dds10x.h and copy them into this directory
8+
# - change the include below to reflect the version dds10x.h
9+
#
10+
# Linux: compile and link as follows:
11+
# g++ -O2 -Wall -o ./ddd ddd.cpp dds10x.cpp defs.cpp timer.cpp giblib.cpp rng.cpp
12+
#
13+
# Windows: compile and link as follows:
14+
# g++ -O2 -Wall -o ddd.exe ddd.cpp dds10x.cpp defs.cpp timer.cpp giblib.cpp rng.cpp
15+
#
16+
# for debugging change the switch '-O2' to '-g'
17+
#
18+
# Note: on MingW you must have _WIN32 defined to compile code in timer.cpp
19+
#
20+
# Using the Makefile:
21+
# There is a Makefile supplied, edit it for the correct version of dds10x.
22+
# Run 'make' (or 'mingw32-make') to produce the executable,
23+
# note that the executable is written to ../exe/ddd.
24+
# To make the debug executable run 'make debug',
25+
# the debug executable is written to ../exe/dddd.
26+
#
27+
# The Makefile creates separate directories ../objr and ../objd for
28+
# compiled object files, apart from the directory ../exe for executables.
29+
30+
CXX=g++
31+
CXXFLAGS=-g -Wall -O2
32+
LDFLAGS=-L..
33+
LIBS=-ldds
34+
OBJ=ddd.o defs.o timer.o giblib.o rng.o
35+
PREFIX=/usr/local
36+
37+
ddd: dds11x.h $(OBJ)
38+
g++ $(LDFLAGS) -o $@ $^ $(LIBS)
39+
40+
dds11x.h:
41+
ln -s ../dll.h $@
42+
43+
install:
44+
install -d $(DESTDIR)$(PREFIX)/games
45+
install ddd $(DESTDIR)$(PREFIX)/games/dds
46+
47+
clean:
48+
rm -f $(OBJ) ddd dds11x.h

copying

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
2+
Copyright 2006 P.M.Cronje
3+
4+
This file is part of the Double Dummer Driver (DDD).
5+
6+
DDD is free software; you can redistribute it and/or modify
7+
it under the terms of the GNU General Public License as published by
8+
the Free Software Foundation; either version 2 of the License, or
9+
(at your option) any later version.
10+
11+
DDD is distributed in the hope that it will be useful,
12+
but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
GNU General Public License for more details.
15+
16+
You should have received a copy of the GNU General Public License
17+
along with DDD; if not, write to the Free Software
18+
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19+

0 commit comments

Comments
 (0)