Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

162 lines
4.0 KiB

  1. !ifndef TargetEnvironment
  2. TargetEnvironment=DOS
  3. !endif
  4. !IF "$(DEBUG)" == "ON"
  5. SUFF=d
  6. !ELSE
  7. SUFF=r
  8. !ENDIF
  9. TARGETS=$(OBJDIR)\awtest.exe
  10. RM = rm
  11. !IF "$(TGT)" == "UNIX"
  12. ####### Used for CASTELLE ########
  13. OBJDIR = bin
  14. CC = gcc
  15. RM = rm
  16. INC = -I.
  17. #ENCOBJ = nsfenc.obj
  18. ENCOBJ = prtenc.obj
  19. LIBPATH =
  20. LIBS =
  21. PATH =
  22. OPTS = -o $@ -DPORTABLE -DEXTERNAL -DSUNOS
  23. LOPTS = -o $@
  24. ## DBG = -DDEBUG -DDEBUG2 -DTEST
  25. ## for final release set DBG = <nothing>
  26. ## use SUNOS to get SUNOS timer code
  27. !ELSE IF "$(TGT)" == "NTPDD"
  28. ####### Used by OPTUS ########
  29. OBJDIR = portable
  30. CC = $(TOOLS_PATH)\msvcnt.200\bin\cl
  31. OPTS = -DPORTABLE -DEXTERNAL -Fo$(OBJDIR)\ -Za -DNOGETTICK -DSTDCALL
  32. LOPTS = -Fm -Fe$(OBJDIR)\awtest.exe
  33. DBG =
  34. PATH =
  35. LIBS =
  36. LIBPATH = $(TOOLS_PATH)\msvcnt.200\lib
  37. INC = -I$(TOOLS_PATH)\msvcnt.200\include -I..\..\ifaxdev\h -I.
  38. ENCOBJ = ..\support\win32.$(SUFF)\nsfenc.obj
  39. !ELSE IF "$(TGT)" == "DOS"
  40. ####### As yet unused ########
  41. MODEL = L
  42. OBJDIR = portable
  43. CC = $(TOOLS_PATH)\msvc.150\bin\cl
  44. OPTS = -DPORTABLE -DEXTERNAL -Fo$(OBJDIR)\ -Za -A$(MODEL) -DDOS
  45. LOPTS = -Fm -Fe$(OBJDIR)\awtest.exe -AL
  46. DBG =
  47. PATH =
  48. LIBS =
  49. LIBPATH = $(TOOLS_PATH)\msvc.150\lib
  50. INC = -I$(TOOLS_PATH)\msvc.150\include -I..\..\ifaxdev\h -I.
  51. ENCOBJ = portenc.obj
  52. DBG = -DDEBUG
  53. !ELSE IF "$(TGT)" == "DOS_C6"
  54. ####### Used for BROOKTROUT ########
  55. MODEL = L
  56. LIBname=$(OBJDIR)\awnsf.lib
  57. TARGETS=$(LIBname) $(OBJDIR)\awtest.exe
  58. LIBOBJfiles = $(OBJDIR)\awnsf.obj $(ENCOBJ)
  59. OBJDIR = DOS_c6$(MODEL)
  60. STDCver =c.600
  61. TargetEnvironment=DOS
  62. CC = $(TOOLS_PATH)\$(STDCver)\bin\cl
  63. LIBUTIL = $(TOOLS_PATH)\$(STDCver)\bin\lib.exe
  64. OPTS = -DNOGETTICK -DPORTABLE -DEXTERNAL -Za -A$(MODEL) -DDOS_C6
  65. LOPTS = -Fm -Fe$(OBJDIR)\awtest.exe -A$(MODEL) /Co
  66. DBG =
  67. LIBS = $(MODEL)LIBCR.LIB LIBH.LIB
  68. PATH = $(TOOLS_PATH)\$(STDCver)\bin;$(TOOLS_PATH)\$(STDCver)\binb
  69. LIBPATH = $(TOOLS_PATH)\$(STDCver)\lib
  70. INC = -I$(TOOLS_PATH)\$(STDCver)\include -I..\..\ifaxdev\h -I. -I..\common
  71. ENCOBJ = ..\support\DOS_c6\$(MODEL)nsfenc.obj
  72. ## DBG = -DDEBUG -DDEBUG2 -DTEST
  73. !ELSE IF "$(TGT)" == "DOS_C5"
  74. ####### Used for OPTIS ########
  75. LIBname=$(OBJDIR)\awnsf.lib
  76. TARGETS=$(LIBname) $(OBJDIR)\awtest.exe
  77. LIBOBJfiles = $(OBJDIR)\awnsf.obj $(ENCOBJ)
  78. MODEL = L
  79. STDCver=c.510
  80. TargetEnvironment=DOS
  81. OBJDIR = DOS_c5$(MODEL)
  82. CC = $(TOOLS_PATH)\$(STDCver)\bin\cl
  83. LIBUTIL = $(TOOLS_PATH)\$(STDCver)\bin\lib.exe
  84. OPTS = -DNOGETTICK -DPORTABLE -DEXTERNAL -Za -A$(MODEL) -DDOS_C5
  85. LOPTS = -Fm -Fe$(OBJDIR)\awtest.exe -A$(MODEL) /Co
  86. DBG =
  87. LIBS = $(MODEL)LIBCR.LIB LIBH.LIB
  88. PATH = $(TOOLS_PATH)\$(STDCver)\bin;$(TOOLS_PATH)\$(STDCver)\binb
  89. LIBPATH = $(TOOLS_PATH)\$(STDCver)\lib
  90. INC = -I$(TOOLS_PATH)\$(STDCver)\include -I..\..\ifaxdev\h -I. -I..\common
  91. ENCOBJ = ..\support\DOS_c5\$(MODEL)nsfenc.obj
  92. ## DBG = -DDEBUG -DDEBUG2 -DTEST
  93. !ENDIF
  94. OBJDIR=$(OBJDIR).$(SUFF)
  95. !IF "$(DEBUG2)" == "ON"
  96. DBG = -DDEBUG -DDEBUG2 -Zi
  97. !ELSE IF "$(DEBUG)" == "ON"
  98. DBG = -DDEBUG -Zi
  99. !ENDIF
  100. !IF "$(TEST)" == "ON"
  101. DBG = $(DBG) -DTEST
  102. !ENDIF
  103. Models=S M L
  104. all: $(TARGETS)
  105. Portable:
  106. for %%m in ( $(Models) ) do NMAKE -f makefile.prt TGT=DOS_C6 DEBUG=OFF MODEL=%%m
  107. for %%m in ( $(Models) ) do NMAKE -f makefile.prt TGT=DOS_C6 DEBUG=ON MODEL=%%m
  108. for %%m in ( $(Models) ) do NMAKE -f makefile.prt TGT=DOS_C5 DEBUG=OFF MODEL=%%m
  109. for %%m in ( $(Models) ) do NMAKE -f makefile.prt TGT=DOS_C5 DEBUG=ON MODEL=%%m
  110. $(OBJDIR)\awtest.exe: $(OBJDIR)\awnsf.obj $(OBJDIR)\awtest.obj $(ENCOBJ)
  111. @if not exist $(OBJDIR) mkdir $(OBJDIR)
  112. set PATH=$(PATH)
  113. set LIB=$(LIBPATH)
  114. set CL=$(LOPTS) $(**) $(LIBS)
  115. $(CC) /Fe$@
  116. .c{$(OBJDIR)}.obj:
  117. @if not exist $(OBJDIR) mkdir $(OBJDIR)
  118. set PATH=$(PATH)
  119. set INCLUDE=$(INC)
  120. set CL=$(OPTS) $(DBG) $(INC)
  121. $(CC) -c -Fo$(OBJDIR)\ $<
  122. !ifdef LIBname
  123. $(LIBname): $(LIBOBJfiles)
  124. -$(RM) $@ > NUL
  125. $(LIBUTIL) @<<response.lnk
  126. $*
  127. y
  128. $(**: = &^
  129. +)
  130. $*.lst
  131. <<KEEP
  132. !endif
  133. cleanall:
  134. $(RM) $(OBJDIR)\*.obj $(OBJDIR)\*.exe