home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / p / plbin.zip / pl / src / md-sun3.h < prev    next >
C/C++ Source or Header  |  1992-09-10  |  2KB  |  66 lines

  1. /*  md-sun3.h,v 1.2 1992/09/10 19:47:17 jan Exp
  2.  
  3.     Copyright (c) 1990 Jan Wielemaker. All rights reserved.
  4.     See ../LICENCE to find out about your rights.
  5.     jan@swi.psy.uva.nl
  6.  
  7.     Purpose: Machine description for SUN-3
  8. */
  9.  
  10. /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  11. Note: when using gcc, make sure you have patched the SUN include files
  12. using the shell script fixincludes  provided with gcc.   If you don't,
  13. the terminal interface does not operate properly.
  14.  
  15. Note: From SunOs 4.1.1 this fix appears no longer necessary.
  16. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  17.  
  18.  
  19. #define M_CC            gcc
  20. #define M_OPTIMIZE            -O -finline-functions -fomit-frame-pointers
  21. #define M_LDFLAGS        -static
  22. #define M_CFLAGS        -Wall
  23. #define M_LIBS            -lm -ltermcap
  24.  
  25. #ifndef SUNOS_3        /* how to find out? */
  26. #define SUNOS_4 1
  27. #else
  28. #define SUNOS_4 0
  29. #endif
  30.  
  31.             /* compiler */
  32. #define ANSI            0
  33. #define PROTO            0
  34. #define O_NO_LEFT_CAST        0
  35. #define O_NO_VOID_POINTER    0
  36. #define O_SHORT_SYMBOLS        0
  37.             /* Operating system */
  38. #define O_PROFILE        1
  39. #define O_SIG_AUTO_RESET    0
  40. #define O_SHARED_MEMORY        0
  41. #define O_CAN_MAP        SUNOS_4    /* NOTE: set to 0 when running */
  42.                     /* SunOs 4.0.0 on a SUN-3; mmap() */
  43.                     /* is broken on this OS */
  44. #define O_NO_SEGV_ADDRESS    0
  45. #define MAX_VIRTUAL_ADDRESS    (220 * 1024 *1024)
  46. #define O_FOREIGN        1
  47. #define O_STORE_PROGRAM        1
  48. #define DEFAULT_PATH        ":.:/usr/ucb:/bin:/usr/bin:";
  49. #ifdef SUNOS_3
  50. #define SIGNAL_HANDLER_TYPE    int
  51. #define DESCRIPTOR_TABLE_SIZE    32
  52. #define O_STRUCT_DIRECT        1
  53. #define DIR_INCLUDE        <sys/dir.h>
  54. #endif
  55.             /* terminal driver */
  56. #define O_TERMIOS         SUNOS_4
  57. #define O_EXTEND_ATOMS         1
  58. #define O_LINE_EDIT         1
  59. #define O_MAP_TAB_ON_ESC    1
  60. #define O_FOLD             0
  61.             /* Interfaces */
  62. #define O_PCE             1
  63.  
  64. #define MACHINE            "sun3"
  65. #define OPERATING_SYSTEM    "sunos"
  66.