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.

93 lines
2.4 KiB

  1. #********************************************************************
  2. #** Microsoft Windows **
  3. #** Copyright(c) Microsoft Corp., 1992 - 1993 **
  4. #********************************************************************
  5. # Put the name of the compiler here
  6. CC = cl
  7. # uncomment the following line for debug build
  8. DBG_FLAGS = -DDBG=1 -DDEVL=1 -Zi
  9. LDBG_FLAGS = /DEBUG /map:0
  10. # uncomment the following line for retail build
  11. #DBG_FLAGS = -DNDEBUG
  12. #LDBG_FLAGS =
  13. # Put compiler specific flags on the first line
  14. CFLAGS = -c -nologo $(DBG_FLAGS) -Zle -W4 $(BYTE_ORDER)\
  15. -MTd $(U_OPTS)
  16. # Put the name and path of the linker here.
  17. LINKER = link.exe
  18. # Put linker specific flags here.
  19. LFLAGS = /nologo $(LDBG_FLAGS) /nologo
  20. # CRTDIR is the location of the C runtime header files
  21. CRTDIR =
  22. # REFDIR is the location of refstg obj files
  23. REFDIR = ..\..\obj
  24. # OBJDIR is the location of the object files
  25. OBJDIR = obj
  26. # OSINC is the location of any operating system specific header files.
  27. # This reference implementation doesn't require any in its
  28. # unmodified form.
  29. OSINC =
  30. #CINC = -I$(CRTDIR) $(OSINC)
  31. #LIB=
  32. # The reference implementation needs a C runtime library
  33. # for DEBUG, use msvcrtd.lib , for retail, use msvcrt.lib
  34. # $(LIBC) is defined in commk.msc
  35. !INCLUDE ..\..\commk.msc
  36. EXELIBS = $(LIBC) $(REFDIR)\refstg.lib kernel32.lib
  37. TEST_CXX=.\refilb.cxx\
  38. .\time.cxx\
  39. .\reftest.cxx
  40. TEST_OBJS=$(TEST_CXX:.cxx=.obj)
  41. TEST_OBJS=$(TEST_OBJS:.\=obj\)
  42. TEST_LFLAGS=/DEBUG
  43. default: "$(OBJDIR)" reftest
  44. #clear all the files then build
  45. clean: clobber $(OBJDIR)\reftest.exe
  46. # clear all the files
  47. clobber:
  48. -@erase "$(OBJDIR)\*.obj"
  49. -@erase "$(OBJDIR)\*.exe"
  50. -@erase "$(OBJDIR)\*.dll"
  51. -@erase "$(OBJDIR)\*.lib"
  52. -@erase "$(OBJDIR)\*.map"
  53. -@erase "$(OBJDIR)\*.exp"
  54. # make the directory if it does not exist
  55. "$(OBJDIR)":
  56. @if not exist "$(OBJDIR)\$(NULL)" mkdir "$(OBJDIR)"
  57. reftest: $(OBJDIR)\reftest.exe
  58. $(OBJDIR)\reftest.exe: "$(OBJDIR)" $(TEST_OBJS)
  59. $(LINKER) @<<$*.lnk
  60. $(TEST_LFLAGS)
  61. $(TEST_OBJS: = ^
  62. )
  63. $(EXELIBS: = ^
  64. )
  65. /OUT:$*.exe
  66. <<NOKEEP
  67. .c{$(OBJDIR)}.obj:
  68. $(CC) $(CFLAGS) $(CINC) /Fo$(OBJDIR)\ $<
  69. .cxx{$(OBJDIR)}.obj:
  70. $(CC) $(CFLAGS) $(CINC) /Fo$(OBJDIR)\ $<
  71. !include depend.msc