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.

185 lines
4.2 KiB

  1. #********************************************************************
  2. #** Microsoft Windows **
  3. #** Copyright(c) Microsoft Corp., 1992 - 1996 **
  4. #********************************************************************
  5. !INCLUDE commk.msc
  6. # default to compiling property set support
  7. POPTS=
  8. # include property code only for non-ASCII and when NOPROPS is defined
  9. !IF "$(NOPROPS)" == ""
  10. POPTS=-DNEWPROPS
  11. !ENDIF
  12. # Put compiler specific flags on the first line
  13. CFLAGS = -c -nologo $(DBG_FLAGS) -Zle -W4 \
  14. -D_MT $(POPTS) $(U_OPTS) $(BYTE_ORDER) $(ADD_CFLAGS)
  15. # Put linker specific flags here.
  16. LFLAGS = /nologo /dll $(LDBG_FLAGS)
  17. # The reference implementation needs a C runtime library
  18. # for DEBUG, use msvcrtd.lib , for retail, use msvcrt.dll
  19. # $(LIBC) is defined in commk.msc -- the common makefile
  20. EXELIBS = $(LIBC)
  21. OBJDIR = obj
  22. CXXFILES = \
  23. .\msf.cxx\
  24. .\dir.cxx\
  25. .\dirp.cxx\
  26. .\fat.cxx\
  27. .\mstream.cxx\
  28. .\sstream.cxx\
  29. .\msfiter.cxx\
  30. .\header.cxx\
  31. .\difat.cxx\
  32. .\page.cxx\
  33. .\vect.cxx\
  34. .\refilb.cxx\
  35. .\funcs.cxx\
  36. .\chinst.cxx\
  37. .\entry.cxx\
  38. .\dffuncs.cxx\
  39. .\dfstream.cxx\
  40. .\dfiter.cxx\
  41. .\iter.cxx\
  42. .\cdocfile.cxx\
  43. .\rexpdf.cxx\
  44. .\docfile.cxx\
  45. .\ascii.cxx\
  46. .\expst.cxx\
  47. .\expiter.cxx\
  48. .\expdf.cxx\
  49. .\storage.cxx\
  50. .\mem.cxx\
  51. .\time.cxx \
  52. .\wchar.c \
  53. HEADERS= ascii.hxx\
  54. dfbasis.hxx\
  55. expiter.hxx\
  56. iter.hxx\
  57. mread.hxx\
  58. byteordr.hxx\
  59. expdf.hxx\
  60. expst.hxx\
  61. time.hxx\
  62. h\cdocfile.hxx\
  63. h\dirfunc.hxx\
  64. h\handle.hxx\
  65. h\piter.hxx\
  66. h\storage.h\
  67. h\chinst.hxx\
  68. h\docfile.hxx\
  69. h\header.hxx\
  70. h\props.h\
  71. h\storagep.h\
  72. h\dfexcept.hxx\
  73. h\docfilep.hxx\
  74. h\mem.hxx\
  75. h\propstm.hxx\
  76. h\tchar.h\
  77. h\dffuncs.hxx\
  78. h\entry.hxx\
  79. h\msf.hxx\
  80. h\ref.hxx\
  81. h\vect.hxx\
  82. h\dfmsp.hxx\
  83. h\error.hxx\
  84. h\msffunc.hxx\
  85. h\refilb.hxx\
  86. h\vectfunc.hxx\
  87. h\dfver.h\
  88. h\fat.hxx\
  89. h\msfiter.hxx\
  90. h\revert.hxx\
  91. h\wchar.h\
  92. h\difat.hxx\
  93. h\funcs.hxx\
  94. h\ole.hxx\
  95. h\rexpdf.hxx\
  96. h\dir.hxx\
  97. h\page.hxx\
  98. h\sstream.hxx
  99. CXX_OBJS=$(CXXFILES:.cxx=.obj)
  100. CXX_OBJS=$(CXX_OBJS:.c=.obj)
  101. CXX_OBJS=$(CXX_OBJS:.\=obj\)
  102. PROPS_OBJDIR=.\props\obj
  103. PROPS_OBJS=\
  104. $(PROPS_OBJDIR)\psetstg.obj\
  105. $(PROPS_OBJDIR)\utils.obj\
  106. $(PROPS_OBJDIR)\ntprop.obj\
  107. $(PROPS_OBJDIR)\ntpropb.obj\
  108. $(PROPS_OBJDIR)\propstm.obj\
  109. $(PROPS_OBJDIR)\propvar.obj\
  110. $(PROPS_OBJDIR)\stgvarb.obj\
  111. $(PROPS_OBJDIR)\propstg.obj
  112. default: $(OBJDIR) propmk $(OBJDIR)\refstg.dll
  113. propmk:
  114. cd props
  115. nmake /$(MAKEFLAGS)
  116. cd ..
  117. #clear all the files then build
  118. clean: clobber default
  119. # clear all the files
  120. clobber:
  121. @if exist "$(OBJDIR)\*.obj" erase "$(OBJDIR)\*.obj"
  122. @if exist "$(OBJDIR)\refstg.dll" erase "$(OBJDIR)\refstg.dll"
  123. @if exist "$(OBJDIR)\refstg.dll" erase "$(OBJDIR)\refstg.dll"
  124. @if exist "$(OBJDIR)\refstg.lib" erase "$(OBJDIR)\refstg.lib"
  125. @if exist "$(OBJDIR)\refstg.map" erase "$(OBJDIR)\refstg.map"
  126. @if exist "$(OBJDIR)\refstg.exp" erase "$(OBJDIR)\refstg.exp"
  127. @if exist "$(OBJDIR)\refstg.lnk" erase "$(OBJDIR)\refstg.lnk"
  128. cd props
  129. nmake clobber
  130. cd ..
  131. # make the directory if it does not exist
  132. $(OBJDIR):
  133. @if not exist "$(OBJDIR)" mkdir $(OBJDIR)
  134. !IF "$(POPTS)" != ""
  135. OBJS=$(CXX_OBJS) $(PROPS_OBJS)
  136. DEF_FILE=refprop.def
  137. !ELSE
  138. OBJS=$(CXX_OBJS)
  139. DEF_FILE=refstg.def
  140. !ENDIF
  141. $(OBJDIR)\refstg.dll: $(OBJS)
  142. $(LINKER) @<<$*.lnk
  143. $(LFLAGS)
  144. $(OBJS: = ^
  145. )
  146. $(EXELIBS)
  147. /OUT:$*.dll
  148. /MAP:$*.map
  149. /DEF:$(DEF_FILE)
  150. <<KEEP
  151. TAGS:
  152. etags $(HEADERS) $(CXX_FILES)
  153. cd props
  154. nmake tags
  155. cd ..
  156. {}.c{$(OBJDIR)}.obj:
  157. $(CC) $(CFLAGS) $(CINC) /Fo$(OBJDIR)\ $<
  158. {}.cxx{$(OBJDIR)}.obj:
  159. $(CC) $(CFLAGS) $(CINC) /Fo$(OBJDIR)\ $<
  160. !INCLUDE depend.msc