Skip to content

Commit

Permalink
historical commit ddd 1.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
P.M. Cronje authored and hostilefork committed Nov 28, 2014
0 parents commit 0e702d9
Show file tree
Hide file tree
Showing 15 changed files with 5,901 additions and 0 deletions.
48 changes: 48 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# HOW TO COMPILE AND LINK THIS WITH THE LATEST VERSION OF DDS
#
# The following is suggested:
#
# - obtain the latest .cpp and dll.h file for version 1.0x
# of Bo Haglund's DDS
# - rename them to dds10x.cpp and dds10x.h and copy them into this directory
# - change the include below to reflect the version dds10x.h
#
# Linux: compile and link as follows:
# g++ -O2 -Wall -o ./ddd ddd.cpp dds10x.cpp defs.cpp timer.cpp giblib.cpp rng.cpp
#
# Windows: compile and link as follows:
# g++ -O2 -Wall -o ddd.exe ddd.cpp dds10x.cpp defs.cpp timer.cpp giblib.cpp rng.cpp
#
# for debugging change the switch '-O2' to '-g'
#
# Note: on MingW you must have _WIN32 defined to compile code in timer.cpp
#
# Using the Makefile:
# There is a Makefile supplied, edit it for the correct version of dds10x.
# Run 'make' (or 'mingw32-make') to produce the executable,
# note that the executable is written to ../exe/ddd.
# To make the debug executable run 'make debug',
# the debug executable is written to ../exe/dddd.
#
# The Makefile creates separate directories ../objr and ../objd for
# compiled object files, apart from the directory ../exe for executables.

CXX=g++
CXXFLAGS=-g -Wall -O2
LDFLAGS=-L..
LIBS=-ldds
OBJ=ddd.o defs.o timer.o giblib.o rng.o
PREFIX=/usr/local

ddd: dds11x.h $(OBJ)
g++ $(LDFLAGS) -o $@ $^ $(LIBS)

dds11x.h:
ln -s ../dll.h $@

install:
install -d $(DESTDIR)$(PREFIX)/games
install ddd $(DESTDIR)$(PREFIX)/games/dds

clean:
rm -f $(OBJ) ddd dds11x.h
19 changes: 19 additions & 0 deletions copying
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@

Copyright 2006 P.M.Cronje

This file is part of the Double Dummer Driver (DDD).

DDD is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

DDD is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with DDD; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

Loading

0 comments on commit 0e702d9

Please sign in to comment.