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.

165 lines
4.4 KiB

  1. # Copyright (c) 1993 Microsoft Corp.
  2. TGT=WFW
  3. # WINPROC Generic Win 3.1
  4. # WFW Snowball
  5. # IFBGPROC IFAX Background
  6. # IFFGPROC IFAX Foreground
  7. # WINKERN ???
  8. # WINDRV ???
  9. ## Debug on ??
  10. DEBUG=ON
  11. ## Relative Path to root of project
  12. RootPath=..\..
  13. # Directory where all intermediate/target files are to be
  14. # built. This variable must be defined. (Use . if you want
  15. # them to be in the same directory.)
  16. !IF "$(DEBUG)" == "ON"
  17. OBJDIR=debug
  18. !ELSE
  19. OBJDIR=retail
  20. !ENDIF
  21. # Set build directory
  22. !IF "$(TGT)"=="WIN32"
  23. TargetEnvironment=WIN32
  24. OBJDIR=ch$(OBJDIR)
  25. LocalCFLAGS=/DOLEFILE /DVIEWRBA /DVIEWDCX
  26. DEFfile=awview32.def
  27. LocalLibraries=awcodc32.lib awdcxc32.lib awresx32.lib
  28. !IF "$(DEBUG)" == "ON"
  29. LocalLibraries=$(LocalLibraries) awkrnl32.lib
  30. !ENDIF
  31. LibMain=
  32. EXEname=$(OBJDIR)\awview32.dll
  33. !ELSEIF "$(TGT)"=="WFW"
  34. TargetEnvironment=WFW
  35. OBJDIR=sb$(OBJDIR)
  36. LocalCFLAGS=/DOLEFILE /DVIEWRBA /DVIEWDCX
  37. DEFfile=viewrend.def
  38. LocalPreLibs=slibcxx
  39. LocalLibraries=faxcodec dcxcodec wpsfaxre
  40. EXEname=$(OBJDIR)\viewrend.dll
  41. !ELSEIF "$(TGT)"=="PCFAX"
  42. TargetEnvironment=WFW
  43. OBJDIR=wp$(OBJDIR)
  44. LocalCFLAGS=/DWINFILE /DVIEWMMR
  45. DEFfile=viewrend.def
  46. LocalPreLibs=slibcxx
  47. LocalLibraries=faxcomp faxspool
  48. EXEname=$(OBJDIR)\viewrend.dll
  49. !ELSE
  50. TargetEnvironment=IFBGPROC
  51. OBJDIR=if$(OBJDIR)
  52. LocalCFLAGS=/DSECFILE /DVIEWRBA /DVIEWMMR
  53. DEFfile=viewrend.def
  54. LocalPreLibs=slibcxx
  55. LocalLibraries=faxcodec wpsfaxre faxspool awfile
  56. EXEname=$(OBJDIR)\viewrend.dll
  57. !ENDIF
  58. # type of library needed: dll (for dlls)/ lib (for processes)
  59. # controls library used for linking sdllcew/slibcew
  60. LibType=dll
  61. # Controls whether the Exe is linked automatically using
  62. # standard rules and options. If defined this must be assigned
  63. # a path explicitly explicitly relative to $(OBJDIR)
  64. # This variable is used by cleantgt to delete target files.
  65. # Also generally used to decide what is built if the default
  66. # target "all" is invoked
  67. TARGETS=$(EXEname)
  68. # Used by depends to create the include file dependencies for
  69. # the source files. Specify paths relative to makefile directory.
  70. SRCfiles= viewrend.cpp mmrview.cpp rbaview.cpp dcxview.cpp
  71. # Used by the automatic linking rules to figure out what objs
  72. # to link in. Must have full path specified. Also used by
  73. # cleanint to delete all intermediate created objs. All such
  74. # files must be in the $(OBJDIR) directory.
  75. OBJfiles= $(OBJDIR)\viewrend.obj \
  76. $(OBJDIR)\mmrview.obj \
  77. $(OBJDIR)\rbaview.obj \
  78. $(OBJDIR)\dcxview.obj \
  79. # Used by automatic linking rules to find the def file
  80. # Must be defined if EXEname is being defined. Path should
  81. # be specified relative to the directory with the makefile.
  82. # Used to specify the .res file if one needs to be compiled
  83. # into the .exe. Has no effect unless EXEname is defined also.
  84. # If not defined it is assumed that no .res file needs to be
  85. # compiled in. Should be in $(OBJDIR) directory.
  86. RESfile=$(OBJDIR)\viewrend.res
  87. # This variable is used during nmake depends:
  88. LocalCCmdIncPaths=
  89. ## ASSEMBLER
  90. LocalAFLAGS=
  91. LocalAIncludePaths=
  92. ## LINKER
  93. LocalLFLAGS=
  94. LocalLibPath=
  95. ## Include the standard Rule and Macros file for this project.
  96. !INCLUDE $(RootPath)\common\rules.mak
  97. # List all the buildable targets which you want to be
  98. # public here
  99. help: StdHelp
  100. @echo Subproject targets:
  101. @echo.
  102. @echo all -- makes foo.exe
  103. # Leave as is for default file cleanup - else
  104. # add to it or replace with your own.
  105. cleanint: stdclint
  106. cleantgt: stdcltgt
  107. ## Include the Standard Targets File
  108. !INCLUDE $(RootPath)\common\targets.mak
  109. # You can use an automatic tool to generate all
  110. # the appropriate include file dependencies. To use this, first
  111. # create an empty file called depends.mak (so that the makefile
  112. # runs) and do an "nmake depends". This will automatically generate
  113. # a file depends.mak which lists all the include file dependencies.
  114. # It is your responsibility to run an "nmake depends" every
  115. # once in a while to update this file if your dependencies have
  116. # changed. You could automatically run it each time you ran nmake
  117. # but it is a slightly time consuming process and include file
  118. # dependencies change so rarely that I didn't think it was worthwhile.
  119. INCLUDE depends.mak
  120. ## the targets for this sub-project
  121. all: $(TARGETS)
  122. debug:
  123. nmake DEBUG=ON all
  124. retail:
  125. nmake DEBUG=OFF all