phantasmal_dgd_v1/
phantasmal_dgd_v1/bin/
phantasmal_dgd_v1/doc/
phantasmal_dgd_v1/mud/doc/
phantasmal_dgd_v1/mud/doc/api/
phantasmal_dgd_v1/mud/doc/kernel/
phantasmal_dgd_v1/mud/doc/kernel/hook/
phantasmal_dgd_v1/mud/doc/kernel/lfun/
phantasmal_dgd_v1/mud/include/
phantasmal_dgd_v1/mud/include/kernel/
phantasmal_dgd_v1/mud/kernel/lib/
phantasmal_dgd_v1/mud/kernel/lib/api/
phantasmal_dgd_v1/mud/kernel/obj/
phantasmal_dgd_v1/mud/kernel/sys/
phantasmal_dgd_v1/mud/tmp/
phantasmal_dgd_v1/mud/usr/System/
phantasmal_dgd_v1/mud/usr/System/keys/
phantasmal_dgd_v1/mud/usr/System/obj/
phantasmal_dgd_v1/mud/usr/System/open/lib/
phantasmal_dgd_v1/mud/usr/common/data/
phantasmal_dgd_v1/mud/usr/common/lib/parsed/
phantasmal_dgd_v1/mud/usr/common/obj/telopt/
phantasmal_dgd_v1/mud/usr/common/obj/ustate/
phantasmal_dgd_v1/mud/usr/game/
phantasmal_dgd_v1/mud/usr/game/include/
phantasmal_dgd_v1/mud/usr/game/obj/
phantasmal_dgd_v1/mud/usr/game/object/
phantasmal_dgd_v1/mud/usr/game/object/stuff/
phantasmal_dgd_v1/mud/usr/game/sys/
phantasmal_dgd_v1/mud/usr/game/text/
phantasmal_dgd_v1/mud/usr/game/users/
phantasmal_dgd_v1/src/host/
phantasmal_dgd_v1/src/host/beos/
phantasmal_dgd_v1/src/host/mac/
phantasmal_dgd_v1/src/host/unix/
phantasmal_dgd_v1/src/host/win32/res/
phantasmal_dgd_v1/src/kfun/
phantasmal_dgd_v1/src/lpc/
phantasmal_dgd_v1/src/parser/
To compile DGD, you will have to set HOST in src/Makefile to the proper value:

DARWIN		Darwin/OS X.  Also works for NetBSD, FreeBSD, OpenBSD and Linux.
LINUX		Older versions of Linux.  Copy src/host/Makefile.sysv to
		src/host/Makefile.
SUNOS4		SunOS 4.x.
SOLARIS		SunOS 5.x.  In src/Makefile set LIBS to -lsocket -lnsl.  Older
		versions also require src/host/Makefile.sysv to be copied to
		src/host/Makefile.
DECALPHA	DEC Alpha.  Copy src/host/Makefile.sysv to src/host/Makefile.
BEOS		BeOS.  In src/Makefile set LIBS to -lbe -ltracker, and copy
		src/host/Makefile.beos to src/host/Makefile.
WIN32		Windows NT or Windows 95.  Follow the instructions in
		src/host/win32/README.
MACOS		Mac System 6 to 9.  Follow the instructions in
		src/host/mac/README.
GENERIC_BSD	BSD Unix.
GENERIC_SYSV	SYSV Unix.  Copy src/host/Makefile.sysv to src/host/Makefile.

For other platforms, you can either try to use the closest of the above, or
add your own host support to the src/host.h file.  There are some systems
which are not supported directly yet, but for which porting is easy:

NeXT	use GENERIC_BSD, but in src/host/Makefile replace dirent.* by direct.*
ULTRIX	use GENERIC_BSD
AIX	use GENERIC_SYSV, but compile with -DHOST_WITH_UNSIGNED_CHAR (AIX
	characters are unsigned), also add #include <sys/select.h> to
	src/host/unix/connect.c

Things may become more difficult if you want to port DGD to a different
type of host.  If you want to do your own port and you need some advice,
contact me.

In general, platforms must meet the following requirements:

 - shorts should be 2 bytes wide
 - integers should be 4 bytes wide
 - longs should be at least as wide as pointers
 - all pointer types must be equally wide
 - two's complement should be used to represent negative numbers
 - the value of NULL must be 0.

For each port, one should only have to modify src/host.h, the makefiles and
files in the src/host directory.