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.

54 lines
1.4 KiB

  1. #
  2. # If BUILDMSG is not defined, the define it as the empty string to make
  3. # the conditionals easier to write.
  4. #
  5. OFFSETS = $(_OBJ_DIR)\$(TARGET_DIRECTORY)\offsets.asm
  6. GENSYMFLAGS = -DWIN32 -D_WIN32 -DD3D -Zp $(GENSYMFLAGS) -DIS_32
  7. GENSYMBASE = $(_OBJ_DIR)\$(TARGET_DIRECTORY)\gensym
  8. GENSYMEXE = $(GENSYMBASE).exe
  9. GENSYMSOURCE = ..\gensym.cpp
  10. GENSYMINCS =
  11. INCPATHS = \
  12. -I$(BASEDIR)\public\sdk\inc\
  13. -I$(BASEDIR)\public\sdk\inc\crt\
  14. -I$(BASEDIR)\public\oak\inc\
  15. -I$(INCLUDES:;= -I)
  16. ..\pvvid.mcp: ..\pvvid.mh
  17. ..\pvone.mcp: ..\pvvid.mh
  18. ..\loops.mcp: ..\pvvid.mh
  19. $(GENTGT)\pvvid.cpp: ..\pvvid.mcp $(RAST_STD_M4)
  20. $(GENTGT)\pvone.cpp: ..\pvone.mcp $(RAST_STD_M4)
  21. $(GENTGT)\loops.cpp: ..\loops.mcp $(RAST_STD_M4)
  22. !ifndef SD_BUILD
  23. COFFFILE = $(BASEDIR)\PUBLIC\SDK\LIB\coffbase.txt
  24. !else
  25. COFFFILE = $(BASEDIR)\tools\coffbase.txt
  26. !endif
  27. $(OFFSETS): $(GENSYMSOURCE) $(GENSYMINCS)
  28. set PASS0ONLY=
  29. $(TARGET_CPP) -c $(INCPATHS) $(GENSYMFLAGS) -Fo$(GENSYMBASE).obj $(GENSYMSOURCE)
  30. -link -out:$(GENSYMEXE) @<<
  31. -machine:$(TARGET_DIRECTORY)
  32. -base:@$(COFFFILE),usermode
  33. -subsystem:console
  34. -entry:mainCRTStartup
  35. -ignore:4089
  36. -force:unresolved
  37. -nodefaultlib
  38. $(GENSYMBASE).obj
  39. $(BASEDIR)\public\sdk\lib\$(TARGET_DIRECTORY)\msvcrt.lib
  40. $(BASEDIR)\public\sdk\lib\$(TARGET_DIRECTORY)\kernel32.lib
  41. $(PERFLIBS)
  42. <<
  43. -$(GENSYMEXE) > $(OFFSETS)
  44. -erase $(GENSYMBASE).obj
  45. -erase $(GENSYMEXE)