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.

68 lines
2.3 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. PUBLICINCS= $(SDK_INC_PATH)\gl\gl.h
  6. PRIVATEINCS= ..\inc\types.h \
  7. ..\inc\render.h \
  8. ..\inc\buffers.h \
  9. ..\inc\context.h \
  10. ..\inc\attrib.h \
  11. ..\inc\vertex.h \
  12. ..\inc\xform.h \
  13. ..\inc\procs.h \
  14. ..\inc\pixel.h \
  15. ..\inc\texture.h \
  16. ..\inc\lighting.h \
  17. ..\..\inc\parray.h \
  18. ..\inc\gencx.h
  19. GLTGT = $(NTTARGETFILE0)
  20. !if $(AMD64) || $(IA64)
  21. #
  22. # For AMD64 and IA64 use the M4 method of include file generation.
  23. #
  24. $(TARGET_DIRECTORY)\glconst.c: $(TARGET_DIRECTORY)\glconst.m4
  25. m4 -DBASE_INC_PATH=$(BASE_INC_PATH) < $** > $@
  26. $(GLTGT): \
  27. $(TARGET_DIRECTORY)\glconst.c \
  28. $(PUBLICINCS) \
  29. $(PRIVATEINCS) \
  30. $(BASE_INC_PATH)\genxx.h
  31. set PASS0ONLY=
  32. -md $(_OBJ_DIR)\$(TARGET_DIRECTORY)
  33. nmake $(_OBJ_DIR)\$(TARGET_DIRECTORY)\glconst.obj USE_MSVCRT=1 NTNOPCH=1 NTDEBUG=ntsdnodbg FORCENATIVEOBJECT=1
  34. genxx $(_OBJ_DIR)\$(TARGET_DIRECTORY)\glconst.obj -s$(ASM_INCLUDE_SUFFIX) -o$@
  35. !else
  36. $(GLTGT): \
  37. $(TARGET_DIRECTORY)\gl$(TARGET_DIRECTORY).c \
  38. $(PUBLICINCS) \
  39. $(PRIVATEINCS)
  40. set PASS0ONLY=
  41. nmake $(_OBJ_DIR)\$(TARGET_DIRECTORY)\gl$(TARGET_DIRECTORY).obj USE_MSVCRT=1 NTNOPCH=1 $(HOST_TARGET_DEFINES) $(HOST_TOOLS) NTDEBUG=ntsdnodbg
  42. -link -out:$(_OBJ_DIR)\$(TARGET_DIRECTORY)\gl$(TARGET_DIRECTORY).exe @<<
  43. -machine:$(HOST_TARGETCPU)
  44. -base:@$(COFFBASE_TXT_FILE),usermode
  45. -subsystem:console
  46. -entry:mainCRTStartup
  47. -nodefaultlib
  48. -ignore:4078
  49. -force
  50. $(_OBJ_DIR)\$(TARGET_DIRECTORY)\gl$(TARGET_DIRECTORY).obj
  51. $(SDK_LIB_DEST)\$(HOST_TARGETCPU)\msvcrt.lib
  52. $(SDK_LIB_DEST)\$(HOST_TARGETCPU)\kernel32.lib
  53. $(PERFLIBS)
  54. <<
  55. -$(_OBJ_DIR)\$(TARGET_DIRECTORY)\gl$(TARGET_DIRECTORY).exe $@
  56. -erase $(_OBJ_DIR)\$(TARGET_DIRECTORY)\gl$(TARGET_DIRECTORY).obj
  57. -erase $(_OBJ_DIR)\$(TARGET_DIRECTORY)\gl$(TARGET_DIRECTORY).exe
  58. !endif