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.

76 lines
1.3 KiB

  1. ###
  2. ### Windows version of the makefile
  3. ### Works with nmake
  4. ###
  5. !INCLUDE ..\..\commk.msc
  6. # Some flags here
  7. DEBUGFLAGS=-Zi
  8. CFLAGS=$(DBG_FLAGS) $(CINC) -MTd -nologo -Zle -W3 $(U_OPTS) $(BYTE_ORDER) $(ADD_CFLAGS)
  9. OBJDIR = obj
  10. # Source files
  11. CXXS=\
  12. .\drt.cxx\
  13. .\headers.cxx\
  14. .\ilb.cxx\
  15. .\illeg.cxx \
  16. .\strlist.cxx\
  17. .\tests.cxx\
  18. .\util.cxx\
  19. .\wrap.cxx
  20. HEADERS= .\drt.hxx\
  21. .\ilb.hxx\
  22. .\illeg.hxx\
  23. .\strlist.hxx\
  24. .\tests.hxx\
  25. .\util.hxx\
  26. .\wrap.hxx
  27. SRCS= $(CXXS) $(HEADERS)
  28. OBJS=$(CXXS:.cxx=.obj)
  29. OBJS=$(OBJS:.\=obj\)
  30. # Programs we use
  31. CC=cl
  32. MV=mv
  33. RM=del
  34. LINKER=link.exe
  35. # Put linker specific flags here.
  36. LFLAGS = /nologo /map:0 /DEBUG /nologo
  37. TARGET=$(OBJDIR)\stgdrt.exe
  38. LIBS=..\..\obj\refstg.lib msvcrt.lib kernel32.lib
  39. all: "$(OBJDIR)" $(TARGET)
  40. clean: clobber all
  41. clobber:
  42. -@$(RM) obj\*.obj > NUL
  43. -@$(RM) $(TARGET)>NUL
  44. -@$(RM) obj\*.map >NUL
  45. # make the directory if it does not exist
  46. "$(OBJDIR)":
  47. @if not exist "$(OBJDIR)\$(NULL)" mkdir "$(OBJDIR)"
  48. $(TARGET): $(OBJS)
  49. $(LINKER) @<<$*.lnk
  50. $(LFLAGS)
  51. $(OBJS: = ^
  52. )
  53. $(LIBS: = ^
  54. )
  55. /OUT:$*.exe
  56. /MAP:$*.map
  57. <<NOKEEP
  58. .cxx{$(OBJDIR)}.obj:
  59. $(CC) -c $(CFLAGS) $(CINC) /Fo$(OBJDIR)\ $<
  60. !INCLUDE depend.msc