Leaked source code of windows server 2003
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.

164 lines
3.0 KiB

  1. # Makefile for solitaire and cards
  2. # make with nmake.exe
  3. SOL = sol.obj util.obj game.obj col.obj klond.obj undo.obj\
  4. marq.obj muldiv.obj stat.obj
  5. #
  6. #Babakj: Nov 26th, 1990, removed
  7. #CARDS = cards.obj stub.obj
  8. #
  9. cc = cl
  10. LIBPATH = $(LIBPATH)
  11. # BabakJ, Nov 26th, 90, removed -Zd
  12. !IFDEF DEBUG
  13. SOL = $(SOL) debug.obj
  14. CFLAGS = -Gw -Od -Zipe -PLM -DWIN16
  15. DFLAGS = $(DFLAGS) -DDEBUG
  16. !IFNDEF WIN2
  17. RCFLAGS = -dDEBUG
  18. !ENDIF
  19. !ELSE
  20. DFLAGS =
  21. RCFLAGS =
  22. CFLAGS = -Gsw -Oals -Zpe -PLM -DWIN16
  23. !ENDIF
  24. !IFDEF WIN2
  25. SOL = $(SOL) back.obj
  26. DFLAGS = $(DFLAGS) -DWINVER_2 -DWIN
  27. SOLLIB = $(SOLLIB) mlibw mlibce
  28. RC = rc
  29. LFLAGS = /align:16
  30. !ELSE
  31. DFLAGS = $(DFLAGS) -DWINVER_3 -DWIN
  32. RCFLAGS = -v -3 $(RCFLAGS) -dWINVER_3 -dWIN
  33. SOLLIB = $(SOLLIB) mlibcew libw pwin16.lib
  34. RC = rc
  35. LFLAGS = /align:16
  36. !ENDIF
  37. !IFDEF CO
  38. LFLAGS = $(LFLAGS) /CO
  39. !ENDIF
  40. !IFDEF SYMDEB
  41. LFLAGS = $(LFALGS) /map/line
  42. !ENDIF
  43. !IFDEF DLL
  44. SOLLIB = $(SOLLIB) cards
  45. DFLAGS = $(DFLAGS) -DDLL
  46. CARDSEXE = cards.exe
  47. !ELSE
  48. SOL = $(SOL) cards.obj
  49. CARDSEXE =
  50. !ENDIF
  51. .SUFFIXES: .c .asm .obj .cod .msg .txt
  52. .c.obj:
  53. $(cc) -c -W3 -AM $(CFLAGS) $(DFLAGS) $< >> make.err
  54. type make.err
  55. .asm.obj:
  56. masm $*/r;
  57. .c.asm:
  58. $(cc) -c -Fa$*.asm $(CFLAGS) $(DFLAGS) $<
  59. .c.cod:
  60. $(cc) -c -Fc$*.cod $(CFLAGS) $(DFLAGS) $<
  61. .txt.msg:
  62. solidpp $< $*.msg
  63. #
  64. # sol rules
  65. #
  66. sol.exe: solid.h col.msg game.msg soldef.def $(SOL) sol.res $(CARDSEXE)
  67. echo <<sol.lnk
  68. $(SOL)
  69. <<
  70. echo ,,$(LFLAGS),$(SOLLIB)/NOD/NOE/MAP,soldef.def $(LFLAGS) >> sol.lnk
  71. link @sol.lnk >> make.err
  72. $(RC) $(RCFLAGS) sol.res >> make.err
  73. !IFDEF SYMDEB
  74. mapsym sol
  75. !ENDIF
  76. !IFDEF WIN2
  77. mv sol.exe sol2.exe
  78. mv sol.sym sol2.sym
  79. !ENDIF
  80. sol.res: sol.rc solid.h sol.dlg sol.s cards.rch
  81. rcpp -E -D RC_INVOKED $(DFLAGS) -f sol.rc > tmp1.rc
  82. cat sol.rch tmp1.rc >tmp2.rc
  83. $(RC) -r $(RCFLAGS) tmp2.rc >> make.err
  84. mv tmp2.res sol.res
  85. # BabakJ: removed to prevent solidpp.exe to be built
  86. # col.msg game.msg: solidpp.exe
  87. # BabakJ: solidpp.exe was removed to prevent it from being built
  88. # solid.h sol.s: sol.txt solidpp.exe
  89. solid.h sol.s: sol.txt
  90. solidpp sol.txt solid.h sol.s
  91. soldef.def: sol.def soldbg.def
  92. !IFDEF DEBUG
  93. cat sol.def soldbg.def >soldef.def
  94. !ELSE
  95. copy sol.def soldef.def
  96. !ENDIF
  97. #
  98. # Build for Cards library.
  99. # Babakj: Nov 26th, 1990, Removed this section
  100. #
  101. #cards.exe: $(CARDS) cards.res
  102. # link cards stub,cards/align:16,cards/map,mlibcew libw,cards.def
  103. # mv cards.dll cards.exe
  104. # $(RC) $(RCFLAGS) cards.res
  105. # implib cards.lib cards.def
  106. # mapsym cards
  107. #
  108. #cards.res: cards.rc cards.rch
  109. # $(RC) -r $(RCFLAGS) cards.rc
  110. #
  111. #cards.lib: cards.def
  112. # implib cards.lib cards.def
  113. #
  114. #stub.obj: stub.asm
  115. # masm -i\lib stub.asm;
  116. #
  117. # solidpp.exe id preprocessor rules
  118. #
  119. #solidpp.exe: solidpp.c
  120. # $(cc) -c solidpp.c
  121. # link solidpp.obj, solidpp.exe;
  122. #
  123. clean:
  124. del *.obj
  125. del *.res
  126. del solid.h
  127. del game.msg col.msg
  128. del soldef.def