-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 0e702d9
Showing
15 changed files
with
5,901 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
Oops, something went wrong.