Makefile.inc.bsd 3.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. # $NetBSD: Makefile.inc,v 1.7 2003/06/11 12:10:21 wiz Exp $
  2. #
  3. #
  4. # Hunt
  5. #
  6. # Copyright (c) 1983-2003, Regents of the University of California.
  7. # All rights reserved.
  8. #
  9. # Redistribution and use in source and binary forms, with or without
  10. # modification, are permitted provided that the following conditions are
  11. # met:
  12. #
  13. # + Redistributions of source code must retain the above copyright
  14. # notice, this list of conditions and the following disclaimer.
  15. # + Redistributions in binary form must reproduce the above copyright
  16. # notice, this list of conditions and the following disclaimer in the
  17. # documentation and/or other materials provided with the distribution.
  18. # + Neither the name of the University of California, San Francisco nor
  19. # the names of its contributors may be used to endorse or promote
  20. # products derived from this software without specific prior written
  21. # permission.
  22. #
  23. # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
  24. # IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  25. # TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
  26. # PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  27. # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  28. # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  29. # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  30. # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  31. # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  32. # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  33. # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  34. #
  35. #
  36. # Game parameter flags are:
  37. # RANDOM Include doors which disperse shots randomly
  38. # REFLECT Include diagonal walls that reflect shots
  39. # MONITOR Include code for watching the game from the sidelines
  40. # OOZE Include slime shots
  41. # FLY Make people fly when walls regenerate under them
  42. # VOLCANO Include occasional large slime explosions
  43. # DRONE Include occasional drone shots
  44. # BOOTS Include boots (which makes you immune to slime)
  45. # OTTO Reserved for CGL automatic player
  46. #
  47. GAME_PARAM= -DRANDOM -DREFLECT -DMONITOR -DOOZE -DFLY -DVOLCANO -DBOOTS \
  48. -DOTTO
  49. #
  50. # System parameter flags are:
  51. # DEBUG Don't trust everything in the code
  52. # INTERNET Use the Internet domain IPC instead of UNIX domain
  53. # LOG Use syslog error-logging in driver (needs SYSLOG_42 or
  54. # or SYSLOG_43)
  55. # OLDIPC Use 4.1a internet system calls (must also define
  56. # INTERNET)
  57. # TERMINFO Use terminfo instead of termcap
  58. # SYSLOG_42 Use 4.2 BSD syslog(3)
  59. # SYSLOG_43 Use 4.2 BSD syslog(3)
  60. # LOG Use syslog(3) for logging errors
  61. # BSD_RELEASE Which version of BSD distribution
  62. # 42 is 4.2BSD (implies SYSLOG_42)
  63. # 43 is 4.3BSD (implies BROADCAST, SYSLOG_43)
  64. # USE_CURSES Use curses for everything (automatic w/TERMINFO)
  65. # SIGNAL_TYPE void or int
  66. # HPUX do special HPUX only hacks
  67. #
  68. DEFS_BSD43= -DINTERNET -DLOG -DBSD_RELEASE=43 -DSIGNAL_TYPE=int
  69. DEFS_BSD44= -DINTERNET -DLOG -DBSD_RELEASE=44 -DSIGNAL_TYPE=void -DUSE_CURSES
  70. DEFS_SUN= -DINTERNET -DLOG -DBSD_RELEASE=42 -DBROADCAST -DSIGNAL_TYPE=int
  71. DEFS_SUN4_0= -DINTERNET -DLOG -DSYSLOG_43 -DBROADCAST -DSIGNAL_TYPE=void
  72. DEFS_ULTRIX= -DINTERNET -DLOG -DBSD_RELEASE=42 -DSIGNAL_TYPE=void
  73. DEFS_HPUX= -DHPUX -DINTERNET -DLOG -DSYSLOG_43 -DBROADCAST -DTERMINFO -DSIGNAL_TYPE=void
  74. DEFS_SGI= -DINTERNET -DLOG -DBSD_RELEASE=43 -DTERMINFO -DSIGNAL_TYPE=void
  75. DEFS_NEXT= $(DEFS_BSD43) -bsd -Dconst= -DSIGNAL_TYPE=int
  76. DEFS_OSF1= -DINTERNET -DLOG -DBSD_RELEASE=43 -DSIGNAL_TYPE=void -D_BSD
  77. #
  78. # The following flags are used for system specific compilation arguments.
  79. # Change them to include the appropriate arguments. For example, on SGI
  80. # machines, they should look like
  81. # SYSCFLAGS= -I/usr/include/bsd
  82. # SYSLIBS= -lbsd
  83. #
  84. SYSCFLAGS=
  85. SYSLIBS=
  86. #
  87. # Generic definitions
  88. #
  89. DEFS= $(GAME_PARAM) $(DEFS_BSD44)
  90. CPPFLAGS+= $(SYSCFLAGS) $(DEFS) -DHUNTD=\"/usr/games/huntd\"
  91. .include "../Makefile.inc"