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.

180 lines
5.4 KiB

  1. # !!!!!!!!!!!!!!!!!!!!! WHAT YOU NEED TO DO !!!!!!!!!!!!!!!!!!!!!
  2. #
  3. # - replace the xxxxx in the MAJORCOMP= and MINORCOMP= macros below
  4. # with your components major and minor component name
  5. # (e.g. MAJORCOMP=video, MINORCOMP=displays etc.).
  6. #
  7. # - replace the xxxxx in the TARGETNAME= macro below with your target name
  8. # (e.g. serial, atdisk, xga, etc.).
  9. #
  10. # - edit the TARGETPATH= and TARGETTYPE= macros below to specify the location
  11. # any type of the target.
  12. #
  13. # - edit the INCLUDES= macro below if you have a private include directory
  14. # to search.
  15. #
  16. # - carefully edit the SOURCES= macro below so that it defines all the source
  17. # files for this subcomponent
  18. #
  19. # - add any optional variables relating to compile or link instructions
  20. #
  21. # - edit out all other noisy instructions and comments
  22. #
  23. # - save this file, exit the editor and execute the "build" command.
  24. #
  25. # - From now on, issue build or nmake to build the subcomponent.
  26. #
  27. # - If you can't find the variable that does what you want, look in the
  28. # makefile.def file in \tools for more details. Check for variables
  29. # defined between !IFDEF clauses, these are the most likely candidates.
  30. # You should also examine various sources files used by the drivers in
  31. # the DDK as these are working examples.
  32. #
  33. # The MAJORCOMP and MINORCOMP variables are defined
  34. # so that $(MAJORCOMP)$(MINORCOMP)filename can be used in
  35. # cross compiling to provide unique filenames in a flat namespace.
  36. #
  37. MAJORCOMP=xxxxx
  38. MINORCOMP=xxxxx
  39. #
  40. # The TARGETNAME variable is defined by the developer. It is the name of
  41. # the target (component) that is being built by this makefile. It
  42. # should NOT include any path or file extension information.
  43. #
  44. TARGETNAME=xxxxx
  45. #
  46. # The TARGETPATH and TARGETTYPE variables are defined by the developer.
  47. # The first specifies where the target is to be build. The second specifies
  48. # the type of target (either PROGRAM, DYNLINK, LIBRARY, UMAPPL_NOLIB or
  49. # BOOTPGM). UMAPPL_NOLIB is used when you're only building user-mode
  50. # apps and don't need to build a library.
  51. #
  52. TARGETPATH=obj
  53. # Pick one of the following and delete the others
  54. TARGETTYPE=PROGRAM
  55. TARGETTYPE=DYNLINK
  56. TARGETTYPE=LIBRARY
  57. TARGETTYPE=UMAPPL_NOLIB
  58. TARGETTYPE=BOOTPGM
  59. #
  60. # The TARGETLIBS specifies additional libraries to link with you target
  61. # image. Each library path specification should contain an asterisk (*)
  62. # where the machine specific subdirectory name should go.
  63. #
  64. TARGETLIBS=
  65. #
  66. # The INCLUDES variable specifies any include paths that are specific to
  67. # this source directory. Separate multiple directory paths with single
  68. # semicolons. Relative path specifications are okay. The INCLUDES
  69. # variable is not required. Specifying an empty INCLUDES variable
  70. # (i.e. INCLUDES= ) indicates no include paths are to be searched.
  71. #
  72. INCLUDES=.
  73. #
  74. # The SOURCES variable is defined by the developer. It is a list of all the
  75. # source files for this component. Each source file should be on a separate
  76. # line using the line continuation character. This will minimize merge
  77. # conflicts if two developers adding source files to the same component.
  78. # The SOURCES variable is required. If there are no platform common source
  79. # files, an empty SOURCES variable should be used. (i.e. SOURCES= )
  80. #
  81. # Source files common to multiple platforms
  82. SOURCES=source1.c \
  83. source2.c \
  84. source3.c \
  85. source4.c
  86. # i386 only source files (optional)
  87. # assembler files MUST be in a subdirectory named i386
  88. # i386_SOURCES=i386\source1.asm
  89. # ia64 only source files (optional)
  90. # assembler files MUST be in a subdirectory named ia64
  91. # ia64_SOURCES=mips\source1.s
  92. #
  93. # Next specify any additional options for the compiler.
  94. #
  95. # C_DEFINES=-DUNICODE -DSTRICT
  96. # required to compile for C++
  97. # BLDCRT=1
  98. #
  99. # Next specify options for the linker.
  100. #
  101. # DLLBASE=0x62900000
  102. # DLLENTRY=LibMain
  103. # specify which C runtimes to link with (default is libc.lib)
  104. # MSVCRT is generally used
  105. # USE_CRTDLL=1 (link with crtdll.lib)
  106. # USE_LIBCMT=1 (link with libcmt.lib)
  107. USE_MSVCRT=1
  108. #
  109. # Next specify one or more user mode test programs and their type
  110. # UMTEST is used for optional test programs. UMAPPL is used for
  111. # programs that always get built when the directory is built.
  112. #
  113. # UMTYPE=nt
  114. # UMTEST=foo*baz
  115. # UMAPPL=foo*baz
  116. # UMBASE=0x1000000
  117. # UMLIBS=$(o)\foo.lib
  118. #
  119. # Defining either (or both) the variables NTTARGETFILE0 and/or NTTARGETFILES
  120. # will cause MAKEFILE.DEF to include .\makefile.inc immediately after it
  121. # specifies the top level targets (all, clean and loc) and their dependencies.
  122. # MAKEFILE.DEF also expands NTTARGETFILE0 as the first dependent for the
  123. # "all" target and NTTARGETFILES as the last dependent for the "all" target.
  124. # Useful for specifying additional targets and dependencies that don't fit the
  125. # general case covered by MAKEFILE.DEF
  126. #
  127. # NTTARGETFILE0 is built before all other compiles specified in the sources
  128. # file.
  129. # NTTARGETFILE1 is built after all other compiles specified in the sources
  130. # file but before the link step.
  131. # NTTARGETFILES is built after all compiles/links specified by the
  132. # sources file.
  133. # NTTARGETFILE0=
  134. # NTTARGETFILE1=
  135. # NTTARGETFILES=
  136. #
  137. # Profiling for the working set tuner can be enabled by specifying the
  138. # NTPROFILEINPUT variable. Examine the VGA display driver and perf samples
  139. # for more details
  140. # NTPROFILEINPUT=YES