home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / plbin.zip / pl / src / md-sun4.h < prev    next >
C/C++ Source or Header  |  1993-02-26  |  2KB  |  69 lines

  1. /*  md-sun4.h,v 1.11 1993/02/26 12:13:05 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-4 (SPARC)
  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.   To fix this either
  14. run fixincludes or compile  pl-os.c using cc: `cc  -c -O pl-os.c'  and
  15. run make again.
  16.  
  17. When using SUN cc, make sure to  use  the  BSD compiler, include files
  18. and libraries.  If you are not sure, run `which cc' which should yield
  19. /usr/ucb/cc.
  20. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  21.  
  22. #ifdef USE_CC                /* Sun cc (slower) */
  23. #define M_CC            cc
  24. #define M_OPTIMIZE        -O    /* O2 hardly helps */
  25. #define M_LDFLAGS        -Bstatic
  26. #define M_CFLAGS        
  27. #include <alloca.h>
  28. #else                    /* gcc (preferred) */
  29. #define M_CC            gcc
  30. #define M_OPTIMIZE            -O2
  31. #define M_LDFLAGS        -static
  32. #define M_CFLAGS        -Wall
  33. #endif
  34.  
  35. /*#define M_OPTIMIZE        -g -DO_DEBUG*/
  36.  
  37. #define M_LIBS            -lm -ltermcap
  38.  
  39.             /* compiler */
  40. #define ANSI            __GNUC__
  41. #define O_NO_LEFT_CAST        0
  42. #define O_NO_VOID_POINTER    0
  43. #define O_SHORT_SYMBOLS        0
  44.             /* Operating system */
  45. #define O_PROFILE        1
  46. #define O_SIG_AUTO_RESET    0
  47. #define O_SHARED_MEMORY        0
  48. #define O_CAN_MAP        1
  49.  
  50. #define O_NO_SEGV_ADDRESS    0
  51. #define MAX_VIRTUAL_ADDRESS    (512 * 1024 *1024)
  52. #define O_FOREIGN        1
  53. #define O_SAVE            1
  54. #define DEFAULT_PATH        ":.:/usr/ucb:/bin:/usr/bin:";
  55. #define SRANDOM(t)        srandom((long)t)
  56. #define RANDOM()        random()
  57.  
  58.             /* terminal driver */
  59. #define O_TERMIOS         1
  60. #define O_EXTEND_ATOMS         1
  61. #define O_LINE_EDIT         1
  62. #define O_MAP_TAB_ON_ESC    1
  63. #define O_FOLD             0
  64.             /* Interfaces */
  65. #define O_PCE             1
  66.  
  67. #define MACHINE            "sun4"
  68. #define OPERATING_SYSTEM    "sunos"
  69.