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.

92 lines
1.9 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. # For property sets, this makefile just make the object files
  9. ifneq (,)
  10. This makefile requires GNU Make.
  11. endif
  12. include ../commk.gcc
  13. # specify some defaults
  14. ifndef CFLAGS
  15. # put flags to activate/deactive debug builds here
  16. ifneq ($(DBG_FLAGS),-DNDEBUG)
  17. DBG_FLAGS += -DDBGPROP=1
  18. endif
  19. CFLAGS = $(DBG_FLAGS) -D_UNIX -DNEWPROPS $(ADD_CFLAGS) $(BYTE_ORDER)
  20. ifeq ($(U_OPTS),use_unicode)
  21. CFLAGS += -D_UNICODE=1
  22. endif
  23. endif
  24. # the base directory where the code resides
  25. BASE_DIR=.
  26. OBJDIR = obj
  27. CXXFILES = \
  28. propstg.cxx\
  29. psetstg.cxx\
  30. utils.cxx\
  31. ntprop.cxx\
  32. ntpropb.cxx\
  33. propstm.cxx\
  34. propvar.cxx\
  35. stgvarb.cxx\
  36. qsort.c
  37. HEADERS = \
  38. debtrace.hxx\
  39. propdbg.hxx\
  40. prophdr.hxx\
  41. h/propmac.hxx\
  42. propstg.hxx\
  43. psetstg.hxx\
  44. ../h/props.h\
  45. qsort.h\
  46. utils.hxx
  47. SOURCES= $(CXXFILES) $(HEADERS)
  48. CXX_OBJS1=$(CXXFILES:%.cxx=obj/%.o)
  49. CXX_OBJS=$(CXX_OBJS1:%.c=obj/%.o)
  50. default: "$(OBJDIR)" $(CXX_OBJS)
  51. #clear all the files then build
  52. clean: clobber default
  53. depend:: $(SOURCES)
  54. @echo "### Making dependencies "
  55. @$(DEPEND) -f depend.gcc -s "# DO NOT DELETE" -- $(CFLAGS) -- $(SOURCES)
  56. # make etags for source browsing
  57. tags: $(SOURCES)
  58. etags $(SOURCES) --include=../TAGS
  59. # clear all the files:
  60. clobber:
  61. -@rm -rf $(OBJDIR)/*.o
  62. # make the directory
  63. "$(OBJDIR)":
  64. -@if [ ! -r $(OBJDIR) ]; then mkdir $(OBJDIR); fi
  65. $(OBJDIR)/%.o: %.c
  66. $(CC) -c $(CFLAGS) $(CINC) $< -o $@
  67. $(OBJDIR)/%.o: %.cxx
  68. $(CC) -c $(CFLAGS) $(CINC) $< -o $@
  69. include depend.gcc