1 To compile DGD, you will have to set HOST in src/Makefile to the proper value:
3 NETBSD NetBSD. This is the default.
4 BSD386 FreeBSD or 386BSD.
5 LINUX Linux. Copy src/host/Makefile.sysv to src/host/Makefile.
6 SUNOS4 SunOS 4.x.
7 SOLARIS SunOS 5.x. Copy src/host/Makefile.sysv to src/host/Makefile,
8 and in src/Makefile also set LIBS to -lsocket -lnsl
9 DECALPHA DEC Alpha. Copy src/host/Makefile.sysv to src/host/Makefile.
10 BEOS BeOS. Set LDFLAGS to -lbe -ltracker, and copy
11 src/host/Makefile.beos to src/host/Makefile.
12 WIN32 Windows NT or Windows 95. Follow the instructions in
14 MACOS Mac System 6 to 9. Follow the instructions in
16 GENERIC_BSD BSD Unix.
17 GENERIC_SYSV SYSV Unix. Copy src/host/Makefile.sysv to src/host/Makefile.
19 For other platforms, you can either try to use the closest of the above, or
20 add your own host support to the src/host.h file. There are some systems
21 which are not supported directly yet, but for which porting is easy:
23 NeXT use GENERIC_BSD, but in src/host/Makefile replace dirent.* by direct.*
24 ULTRIX use GENERIC_BSD
25 AIX use GENERIC_SYSV, but compile with -DHOST_WITH_UNSIGNED_CHAR (AIX
26 characters are unsigned), also add #include <sys/select.h> to
29 Things may become more difficult if you want to port DGD to a different
30 type of host. If you want to do your own port and you need some advice,
31 contact me.
33 In general, platforms must meet the following requirements:
35 - shorts should be 2 bytes wide
36 - integers should be 4 bytes wide
37 - longs should be at least as wide as pointers
38 - all pointer types must be equally wide
39 - two's complement should be used to represent negative numbers
40 - the value of NULL must be 0.
42 For each port, one should only have to modify src/host.h, the makefiles and
43 files in the src/host directory.
This page was automatically generated by the
Visit the LXR main site for more