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.

79 lines
1.8 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. LIBS=../../obj/refstg.a
  13. # the base directory where the code resides
  14. BASE_DIR=.
  15. # put flags to activate/deactive debug builds here
  16. DBG_FLAGS = -g -DDBGPROP=1 -DDBG=1 -DDEVL=1
  17. # Put compiler specific flags in CFLAGS
  18. CFLAGS = $(DBG_FLAGS) -D_UNIX -DNEWPROPS $(ADD_CFLAGS) $(BYTE_ORDER)
  19. ifeq ($(U_OPTS),use_unicode)
  20. CFLAGS += -D_UNICODE=1
  21. endif
  22. # CRTINC is the location of the C runtime header files
  23. CRTINC =
  24. # OSINC is the location of any operating system specific header files.
  25. # This reference implementation doesn't require any in its
  26. # unmodified form
  27. OSINC =
  28. CINC = $(CRTINC) $(OSINC)
  29. OBJDIR = obj
  30. CXXFILES = \
  31. cpropvar.cxx\
  32. proptest.cxx\
  33. testdoc.cxx
  34. SOURCES= $(CXXFILES) $(HEADERS)
  35. CXX_OBJS1=$(CXXFILES:%.cxx=obj/%.o)
  36. CXX_OBJS=$(CXX_OBJS1:%.c=obj/%.o)
  37. default: "$(OBJDIR)" $(OBJDIR)/proptest
  38. #clear all the files then build
  39. clean: clobber default
  40. # make etags for source browsing
  41. tags: $(SOURCES)
  42. etags $(SOURCES)
  43. # clear all the files:
  44. clobber:
  45. -@rm -rf $(OBJDIR)/*.o $(OBJDIR)/proptest
  46. # make the directory
  47. "$(OBJDIR)":
  48. -@if [ ! -r $(OBJDIR) ]; then mkdir $(OBJDIR); fi
  49. $(OBJDIR)/proptest: $(CXX_OBJS) $(LIBS)
  50. $(CC) $(CFLAGS) -o $@ $(CXX_OBJS) $(LIBS)
  51. $(OBJDIR)/%.o: %.c
  52. $(CC) -c $(CFLAGS) $(CINC) $< -o $@
  53. $(OBJDIR)/%.o: %.cxx
  54. $(CC) -c $(CFLAGS) $(CINC) $< -o $@
  55. include depend.gcc