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.

53 lines
1.4 KiB

  1. !if $(386)
  2. #
  3. # First, clean out any amd64 modules in the i386 directory
  4. #
  5. amd64clean:
  6. -del $(O)\amd64thk.h >nul 2>nul
  7. -del $(O)\amd64thk.c >nul 2>nul
  8. -del $(O)\amd64thk.obj >nul 2>nul
  9. -del obj\amd64\amd64thk.obj >nul 2>nul
  10. clean: amd64clean
  11. THUNK_COMPILER_FLAGS=-I$(INCLUDES:;= -I)
  12. THUNK_COMPILER_FLAGS=$(THUNK_COMPILER_FLAGS) -I$(CRT_INC_PATH:;= -I)
  13. THUNK_COMPILER_FLAGS=$(THUNK_COMPILER_FLAGS) -I$(BASE_INC_PATH:;= -I)
  14. THUNK_COMPILER_FLAGS=$(THUNK_COMPILER_FLAGS) /c -DAMD64 -D_M_AMD64 -D_AMD64_
  15. THUNK_COMPILER_FLAGS=$(THUNK_COMPILER_FLAGS) -D_daytona_ -DWINNT=1
  16. THUNK_COMPILER_FLAGS=$(THUNK_COMPILER_FLAGS) -D_CROSS_PLATFORM_ -DDEVL=1
  17. AMD64_COMPILER=$(BASEDIR)\tools\win64\x86\amd64\cl.exe
  18. AMD64_BLDRTHNK=bldrthnk.exe
  19. $(O)\amd64thk.c4: ..\amd64\amd64thk.m4
  20. m4 -DBASE_INC_PATH=$(PROJECT_ROOT)\tools\bldrthnk < $** > $@
  21. obj\amd64\amd64thk.obj: $(O)\amd64thk.c4
  22. -md obj\amd64
  23. $(AMD64_COMPILER) @<<$(CL_RSP)
  24. $(THUNK_COMPILER_FLAGS) -Fo$@ /Tc$**
  25. <<NOKEEP
  26. # Don't do LTCG on this object
  27. obj\i386\amd64thk.obj: $(O)\amd64thk.c4
  28. $(C_COMPILER_NAME) @<<$(CL_RSP) -Fo$@ $(USE_FC) $(USECXX_FLAG) /Tc$**
  29. $(EX_C_COMPILER_FLAGS:/GL=)
  30. $<
  31. <<NOKEEP
  32. $(O)\amd64thk.h: $(O)\amd64thk.obj obj\amd64\amd64thk.obj
  33. $(AMD64_BLDRTHNK) $(O)\amd64thk.obj obj\amd64\amd64thk.obj > $@
  34. amd64thk: $(O)\amd64thk.h
  35. !else
  36. amd64thk:
  37. !endif