home *** CD-ROM | disk | FTP | other *** search
/ Gold Fish 3 / goldfish_volume_3.bin / files / gfx / 3d / irit / makeflag.sas < prev    next >
Encoding:
Text File  |  1995-03-06  |  2.8 KB  |  99 lines

  1. #
  2. # The XXX_DIR variables below MUST have ABSOLUTE path. Since this file
  3. # is sourced from several directories relative path specification will
  4. # be simple wrong.
  5. #
  6.  
  7. SRC_DIR = Work:T/irit5b
  8.  
  9. #
  10. # All libraries created will be installed into the LIB_DIR directory.
  11. #
  12. LIB_DIR = $(SRC_DIR)/lib
  13.  
  14. #
  15. # All includes files associated with the installed libraries will be
  16. # installed into the INC_DIR directory.
  17. #
  18. INC_DIR = $(SRC_DIR)/include
  19.  
  20. #
  21. # All binaries created will be installed into the BIN_DIR directory.
  22. #
  23. BIN_DIR = $(SRC_DIR)/bin
  24.  
  25. #
  26. # Location of object file to resolve circularities in libraries.
  27. #
  28. CIRCLINK = $(SRC_DIR)/circlink/circlink.o
  29.  
  30. #
  31. # Uncomment the correct set of variables to be used or modify it for
  32. # your system.
  33. #
  34. # -D flags:
  35. #
  36. # -D__GL__ - if your system supports gl graphics library (SGI 4d & IBM R6000).
  37. #
  38. # -D__X11__ - if your system supports X11. Only one of __GL__ or __X11__ should
  39. #    be used.
  40. #
  41. #  Emulation to the following function are available by defining the
  42. #  following. Look at misc_lib/xgeneral.c/h for implementation.
  43. # -DGETCWD - if getcwd is not defined in this system.
  44. # -DSTRSTR - if strstr is not defined in this system.
  45. # -DSTRDUP - if strdup is not defined in this system.
  46. # -DSTRICMP - if stricmp and strincmp are not defined in this system.
  47. #
  48. # -DTIMES - if times is defined in your system, otherwise uses time.
  49. #
  50. # -DRAND - if the (s)rand random number generator exists.
  51. # -DRAND48 - ?rand48 random number generators exists.
  52. #    If non of RAND or RAND48 are defined, (s)random is used.
  53. #
  54. # -DUSLEEP - if usleep is defined in the system.
  55. # -DSGINAP - on sgi systems instead of usleep.
  56. #
  57. # -DNO_VOID_PTR - if your C compiler does not support (void *).
  58. #
  59. # -DUSE_VARARGS - if your system does not have stdarg.h and have the old
  60. #    varargs.h.
  61. #
  62. # -DNO_CONCAT_STR - if 'char *p = "This is" "one string";' is illegal.
  63. #
  64. # -DGRAPDRVS - any combination of of 'xgldrvs', 'xgladap', 'x11drvs'.
  65. #
  66. # -DMAKE_REAL_FLOAT - force real number to be float and not double.
  67. #               Expect problems as it is not really tested.
  68. #
  69. # Other, possibly useful defines (for c code development):
  70. #
  71. # -DDEBUG - for some debugging functions in the code (that can be invoked
  72. #        from a debugger).
  73. #
  74.  
  75. #
  76. # Flags for Amiga using gcc
  77. #
  78. CC = sc
  79. DFLAGS = DEFINE=RAND48 DEFINE=USLEEP DEFINE=GRAPDRVS=amidrvs
  80. CPUFLAGS = CPU=68040 MATH=68882
  81. CFLAGS = NOSTACKCHECK STRMERGE DATA=FAR CODE=FAR $(DFLAGS) $(CPUFLAGS)
  82. MATHLIB = LIB:scm881.lib
  83. SYMS = ND
  84. MORELIBS = 
  85.  
  86. #
  87. # Default rule for compilation.
  88. #
  89. .c.o:
  90.     $(CC) $(CFLAGS) IDIR= IDIR=$(INC_DIR) IDIR=$(SRC_DIR)/amigalib $<
  91.  
  92. #
  93. # All libraries.
  94. #
  95. LIBS = $(CIRCLINK) $(LIB_DIR)/bool.lib $(LIB_DIR)/geom.lib\
  96. $(LIB_DIR)/prsr.lib $(LIB_DIR)/trim.lib $(LIB_DIR)/triv.lib\
  97. $(LIB_DIR)/symb.lib $(LIB_DIR)/cagd.lib $(LIB_DIR)/misc.lib\
  98. $(LIB_DIR)/xtra.lib $(LIB_DIR)/amg.lib #$(LIB_DIR)/gif.lib
  99.