home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / a_arrays.zip / TEST.MAK < prev   
Text File  |  1994-10-31  |  2KB  |  86 lines

  1. ### polymake program generator for test.exe (testing associative arrays)
  2.  
  3. # note: the compiler is set by the environment variable C
  4. #       which is either BORLAND, ZORTECH or MSC
  5. # note: to create debugging info (make debug=1 -f ...)
  6. %if %defined(debug)
  7. DEBUG = $(debug)
  8. %endif
  9.  
  10. # project
  11. EXECUTABLE = test
  12. SOURCES = test assoc
  13. OBJS = $[f,,$(SOURCES),obj]
  14.  
  15. %if $(C) == BORLAND                     # Borland Compiler
  16. # model
  17. MODEL = s
  18. STARTUP = c0s
  19. INTOBJ =
  20. LIB = maths emu cs
  21. # tools
  22. CC = bcc
  23. ASM = masm
  24. LINK = tlink
  25. # debug versus normal
  26. %if %defined(DEBUG)     # debug
  27. CFLAGS = -c -v -k -N -R -m$(MODEL) -DDEBUG=1
  28. AFLAGS = /Zi /W2 /T /MX
  29. LFLAGS = /n /v /m /s /c
  30. %else                   # normal
  31. CFLAGS = -c -O2 -m$(MODEL) -DNDEBUG=1
  32. AFLAGS = /W2 /T /MX
  33. LFLAGS = /n /P=65536 /x /c
  34. %endif
  35.  
  36. %elseif $(C) == ZORTECH                 # Zortech compiler
  37. # model
  38. MODEL = si
  39. STARTUP =
  40. INTOBJ =
  41. LIB = zls
  42. # tools
  43. CC = ztc
  44. ASM = masm
  45. LINK = blinkx
  46. # debug versus normal
  47. %if %defined(DEBUG)     # debug
  48. CFLAGS = -g -s -C -c -r -m$(MODEL) -DDEBUG=1
  49. AFLAGS = /Zi /W2 /T /MX
  50. LFLAGS = /CO /M /NOD /NOI
  51. %else                   # normal
  52. CFLAGS = -o -c -r -m$(MODEL) -DNDEBUG=1
  53. AFLAGS = /W2 /T /MX
  54. LFLAGS = /F /PAC /NOD /NOI
  55. %endif
  56.  
  57. %else                                   # No compiler specified
  58. doa:
  59.         @echo *** No compiler specified ***
  60.         %abort 666
  61. %endif
  62.  
  63.  
  64. #rules
  65. .asm.obj :
  66.         $(ASM) $(AFLAGS) $<,$@;
  67. .c.obj :
  68.         $(CC) $(CFLAGS) $<
  69. .cpp.obj :
  70.         $(CC) $(CFLAGS) $<
  71.  
  72.  
  73. # ding an sich
  74. $(EXECUTABLE).exe: $(OBJS)
  75.    $(LINK) <@<
  76. $(STARTUP) $(SOURCES) $(INTOBJ)
  77. $(EXECUTABLE).exe
  78. $(EXECUTABLE).map
  79. $(LIB)
  80. ;
  81. < $(LFLAGS)
  82.  
  83. #dependencies
  84. assoc.obj: assoc.cpp assoc.hpp
  85. test.obj: test.cpp assoc.hpp
  86.