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.

86 lines
2.2 KiB

  1. #********************************************************************
  2. #** Microsoft Windows **
  3. #** Copyright(c) Microsoft Corp., 1992 - 1993 **
  4. #********************************************************************
  5. #********************************************************************
  6. #** Microsoft Windows **
  7. #** Copyright(c) Microsoft Corp., 1992 - 1993 **
  8. #********************************************************************
  9. #
  10. # GNU MAKE VERSION OF MAKEFILE FOR THE REFERENCE IMPL
  11. #
  12. ifneq (,)
  13. This makefile requires GNU Make.
  14. endif
  15. include ../../commk.gcc
  16. # the base directory where the code resides
  17. BASE_DIR=.
  18. # Put compiler specific flags in CFLAGS
  19. # the inline warning is removed because GCC 2.6.2 cannot inline
  20. # var arg functions (2.7.2 apparently does). Remove the -Wno-inline
  21. # from below if GCC supports that feature
  22. DBG_FLAGS= -g -DDBG=1 -DDEVL=1
  23. CFLAGS = $(DBG_FLAGS) -D_UNIX $(ADD_CFLAGS) $(BYTE_ORDER)
  24. ifeq ($(U_OPTS),use_unicode)
  25. CFLAGS += -D_UNICODE=1
  26. endif
  27. # CRTINC is the location of the C runtime header files
  28. CRTINC =
  29. # OSINC is the location of any operating system specific header files.
  30. # This reference implementation doesn't require any in its
  31. # unmodified form
  32. OSINC =
  33. CINC = $(CRTINC) $(OSINC)
  34. LIB=
  35. # The reference implementation needs a C runtime library
  36. EXELIBS = ../../obj/refstg.a
  37. OBJDIR = obj
  38. # for unix we only need one file since the we link with static libraries
  39. CXXFILES=reftest.cxx
  40. SOURCES= $(CXXFILES) $(HEADERS)
  41. CXX_OBJS1=$(CXXFILES:%.cxx=obj/%.o)
  42. CXX_OBJS=$(CXX_OBJS1:%.c=obj/%.o)
  43. default: "$(OBJDIR)" $(OBJDIR)/reftest
  44. #clear all the files then build
  45. clean: clobber default
  46. # make etags for source browsing
  47. tags: $(SOURCES)
  48. etags $(SOURCES)
  49. # clear all the files:
  50. clobber:
  51. -@rm -rf $(OBJDIR)/*.o $(OBJDIR)/reftest
  52. # make the directory
  53. "$(OBJDIR)":
  54. -@if [ ! -r $(OBJDIR) ]; then mkdir $(OBJDIR); fi
  55. $(OBJDIR)/reftest: $(CXX_OBJS)
  56. $(CC) $(CXX_OBJS) $(EXELIBS) -o $@
  57. $(OBJDIR)/%.o: %.c
  58. $(CC) -c $(CFLAGS) $(CINC) $< -o $@
  59. $(OBJDIR)/%.o: %.cxx
  60. $(CC) -c $(CFLAGS) $(CINC) $< -o $@
  61. include depend.gcc