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.

182 lines
3.4 KiB

  1. #********************************************************************
  2. #** Microsoft Windows **
  3. #** Copyright(c) Microsoft Corp., 1992 - 1993 **
  4. #********************************************************************
  5. #
  6. # GNU MAKE VERSION OF MAKEFILE FOR THE REFERENCE IMPL
  7. #
  8. ifneq (,)
  9. This makefile requires GNU Make.
  10. endif
  11. include commk.gcc
  12. # uncomment the appropriate line to specify whether you want
  13. # property set code
  14. PROPS_OPT=props
  15. #PROPS_OPT=noprops
  16. ifeq ($(PROPS_OPT),props)
  17. ADD_CFLAGS += -DNEWPROPS
  18. endif
  19. # the base directory where the code resides
  20. BASE_DIR=.
  21. ifeq ($(PROPS_OPT),props)
  22. ifneq ($(DBG_FLAGS),-DNDEBUG)
  23. DBG_FLAGS += -DDBGPROP
  24. endif
  25. endif
  26. # Put compiler specific flags in CFLAGS
  27. CFLAGS = $(DBG_FLAGS) -D_UNIX $(ADD_CFLAGS) $(BYTE_ORDER)
  28. ifeq ($(U_OPTS),use_unicode)
  29. CFLAGS += -D_UNICODE=1
  30. endif
  31. # export variables so that sub- Make processes can see them
  32. export CFLAGS
  33. export DBG_FLAGS
  34. CINC =
  35. OBJDIR = obj
  36. CXXFILES = msf.cxx \
  37. dir.cxx \
  38. dirp.cxx \
  39. fat.cxx \
  40. mstream.cxx \
  41. sstream.cxx \
  42. msfiter.cxx \
  43. header.cxx \
  44. difat.cxx \
  45. page.cxx \
  46. vect.cxx \
  47. refilb.cxx \
  48. funcs.cxx \
  49. chinst.cxx \
  50. entry.cxx \
  51. dffuncs.cxx \
  52. dfstream.cxx \
  53. dfiter.cxx \
  54. iter.cxx \
  55. expdf.cxx \
  56. cdocfile.cxx \
  57. rexpdf.cxx \
  58. time.cxx \
  59. docfile.cxx \
  60. ascii.cxx \
  61. expst.cxx \
  62. expiter.cxx \
  63. storage.cxx \
  64. mem.cxx \
  65. wchar.c
  66. HEADERS= ascii.hxx\
  67. dfbasis.hxx\
  68. expiter.hxx\
  69. iter.hxx\
  70. mread.hxx\
  71. byteordr.hxx\
  72. expdf.hxx\
  73. expst.hxx\
  74. time.hxx\
  75. h/cdocfile.hxx\
  76. h/dirfunc.hxx\
  77. h/handle.hxx\
  78. h/piter.hxx\
  79. h/storage.h\
  80. h/chinst.hxx\
  81. h/docfile.hxx\
  82. h/header.hxx\
  83. h/props.h\
  84. h/storagep.h\
  85. h/dfexcept.hxx\
  86. h/docfilep.hxx\
  87. h/mem.hxx\
  88. h/propstm.hxx\
  89. h/tchar.h\
  90. h/dffuncs.hxx\
  91. h/entry.hxx\
  92. h/msf.hxx\
  93. h/ref.hxx\
  94. h/vect.hxx\
  95. h/dfmsp.hxx\
  96. h/error.hxx\
  97. h/msffunc.hxx\
  98. h/refilb.hxx\
  99. h/vectfunc.hxx\
  100. h/dfver.h\
  101. h/fat.hxx\
  102. h/msfiter.hxx\
  103. h/revert.hxx\
  104. h/wchar.h\
  105. h/difat.hxx\
  106. h/funcs.hxx\
  107. h/ole.hxx\
  108. h/rexpdf.hxx\
  109. h/dir.hxx\
  110. h/page.hxx\
  111. h/sstream.hxx
  112. SOURCES= $(CXXFILES) $(HEADERS)
  113. CXX_OBJS1=$(CXXFILES:%.cxx=obj/%.o)
  114. CXX_OBJS=$(CXX_OBJS1:%.c=obj/%.o)
  115. PROPS_OBJDIR = ./props/obj
  116. ifeq ($(PROPS_OPT),props)
  117. PROPS_OBJS=\
  118. $(PROPS_OBJDIR)/psetstg.o\
  119. $(PROPS_OBJDIR)/utils.o\
  120. $(PROPS_OBJDIR)/ntprop.o\
  121. $(PROPS_OBJDIR)/ntpropb.o\
  122. $(PROPS_OBJDIR)/propstm.o\
  123. $(PROPS_OBJDIR)/propvar.o\
  124. $(PROPS_OBJDIR)/stgvarb.o\
  125. $(PROPS_OBJDIR)/propstg.o\
  126. $(PROPS_OBJDIR)/qsort.o
  127. else
  128. PROPS_OBJS=
  129. endif
  130. default: "$(OBJDIR)" propmk $(OBJDIR)/refstg.a
  131. propmk:
  132. cd props; $(MAKE); cd ..
  133. #clear all the files then build
  134. clean: clobber default
  135. # make etags for source browsing
  136. tags: $(SOURCES)
  137. etags $(SOURCES)
  138. # clear all the files:
  139. clobber:
  140. -@rm -rf $(OBJDIR)/*.o $(OBJDIR)/refstg.a
  141. cd props; $(MAKE) clobber
  142. # make the directory
  143. "$(OBJDIR)":
  144. -@if [ ! -r $(OBJDIR) ]; then mkdir $(OBJDIR); fi
  145. $(OBJDIR)/refstg.a: $(CXX_OBJS) $(PROPS_OBJS)
  146. $(ARCHIVE) $@ $(CXX_OBJS) $(PROPS_OBJS)
  147. $(OBJDIR)/%.o: %.c
  148. $(CC) -c $(CFLAGS) $(CINC) $< -o $@
  149. $(OBJDIR)/%.o: %.cxx
  150. $(CC) -c $(CFLAGS) $(CINC) $< -o $@
  151. include depend.gcc