Source code of Windows XP (NT5)
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.

192 lines
3.9 KiB

  1. !IF 0
  2. Copyright (c) 1996 Microsoft Corporation
  3. Module Name:
  4. Sources.inc
  5. Abstract:
  6. Common makefile settings for DInput.
  7. Author:
  8. RaymondC and a-MarcAn 1996-10-17
  9. History:
  10. Date By Reason
  11. ==== == ======
  12. 1996- RaymondC first version
  13. 1996-10-17 a-MarcAn tidied and adjusted for checkin to windows\media
  14. disabled NTTARGETFILE0
  15. 1996-12-06 RaymondC Split NT and 95 versions
  16. 1997-01-09 a-MarcAn Set to OS version 0x403
  17. NOTE: Commented description of this file is in \nt\bak\bin\sources.tpl
  18. !ENDIF
  19. !ifndef DXROOT
  20. DXROOT=$(BASEDIR)\MultiMedia\DirectX
  21. !endif
  22. !INCLUDE $(DXROOT)\Project.mk
  23. # we have to be able to run w/ all versions of IE but prsht.h insists
  24. # on IE 4.0 if you pass WIN32_WINNT_VERSION of 0x0500
  25. WIN32_IE_VERSION=0x0400
  26. !IFDEF TARGET_WIN95
  27. #
  28. # CHICAGO_PRODUCT: Suppress -DWINNT
  29. # USE_MAPSYM: Create a .sym file
  30. # ALT_PROJECT_TARGET: Alternate drop point (yes, they call it `chicago')
  31. # WIN32_DEFINE: The things we #define; _WIN32_WINNT is the important one
  32. # because it's that one that gives us WH_*_LL.
  33. # We need 0x0403 to get WH_*_LL in SP3 tree
  34. #
  35. DLLBASE=0x70000000
  36. CHICAGO_PRODUCT = 1
  37. ALT_PROJECT_TARGET = WIN9x
  38. C_DEFINES=$(C_DEFINES) -DWIN95 -D_X86_
  39. WIN32_DEFINE = -DWIN32=100 -D_WIN32_WINDOWS=0x0400 -D_WIN32_WINNT=0x0400
  40. ! IF $(FREEBUILD)
  41. #Win9x Free Build
  42. #USE_NOLIBS=1
  43. TARGETLIBS= $(SDK_LIB_PATH)\exsup.lib
  44. #DLLENTRY=DllMain
  45. DLLENTRY=_DllMainCRTStartup
  46. ! ELSE
  47. # Win9x Chk Build
  48. USE_LIBCMT=1
  49. DLLENTRY=_DllMainCRTStartup
  50. ! ENDIF
  51. ! ELSE
  52. #Win2k Build
  53. DLLENTRY=DllMain
  54. ! IF defined( DIRECTX_REDIST )
  55. WIN32_WINNT_VERSION=0x0500
  56. ! ENDIF
  57. C_DEFINES=$(C_DEFINES) -DWINNT -DUNICODE
  58. !ENDIF
  59. USE_MAPSYM = 1
  60. C_DEFINES=$(C_DEFINES) -DNOWINRES -DUSE_SLOW_LL_HOOKS -DHID_SUPPORT
  61. MAJORCOMP=windows
  62. MINORCOMP=media
  63. UMTYPE=windows
  64. TARGETNAME=dinput8
  65. !IF !$(FREEBUILD) && defined( DIRECTX_REDIST )
  66. TARGETNAME=$(TARGETNAME)d
  67. !ENDIF
  68. TARGETTYPE=DYNLINK
  69. TARGETPATH=obj
  70. INCLUDES=$(INCLUDES); \
  71. ..\;\
  72. $(DXROOT)\inc;\
  73. CONDITIONAL_INCLUDES=\
  74. commctrl.rh \
  75. version.h \
  76. ieverp.h \
  77. $(CONDITIONAL_INCLUDES)
  78. NTTARGETFILES=
  79. #
  80. # 04/10/2000 - allows for addition of BoundsChecker, etc
  81. # libs specified in the OS environment
  82. #
  83. TARGETLIBS=$(TARGETLIBS) \
  84. $(SDK_LIB_PATH)\kernel32.lib \
  85. $(SDK_LIB_PATH)\advapi32.lib \
  86. $(SDK_LIB_PATH)\user32.lib \
  87. $(SDK_LIB_PATH)\uuid.lib \
  88. $(TARGETLIBS)
  89. LINKER_FLAGS=$(LINKER_FLAGS) -SECTION:share,RWS
  90. !IF !$(FREEBUILD)
  91. C_DEFINES=$(C_DEFINES) /DDEBUG /D_DEBUG
  92. !endif
  93. SOURCES=\
  94. ..\assert.c \
  95. ..\common.c \
  96. ..\diaphack.c \
  97. ..\dicf.c \
  98. ..\didev.c \
  99. ..\didevdf.c \
  100. ..\didevef.c \
  101. ..\diem.c \
  102. ..\diemm.c \
  103. ..\diemk.c \
  104. ..\diemh.c \
  105. ..\digenj.c \
  106. ..\dical.c \
  107. ..\dijoytyp.c \
  108. ..\dieffj.c \
  109. ..\dieffv.c \
  110. ..\dieshep.c \
  111. ..\digenk.c \
  112. ..\digenm.c \
  113. ..\digenx.c \
  114. ..\digendef.c \
  115. ..\dihel.c \
  116. ..\dimem.c \
  117. ..\dinput.c \
  118. ..\diobj.c \
  119. ..\dieff.c \
  120. ..\didenum.c \
  121. ..\dihidenm.c \
  122. ..\dihidusg.c \
  123. ..\dihid.c \
  124. ..\dihidini.c \
  125. ..\dihiddat.c \
  126. ..\diguid.c \
  127. ..\dijoycfg.c \
  128. ..\dithunk.c \
  129. ..\diaddhw.c \
  130. ..\dijoyreg.c \
  131. ..\direg.c \
  132. ..\disubcls.c \
  133. ..\diexcl.c \
  134. ..\diutil.c \
  135. ..\dilist.c \
  136. ..\dioledup.c \
  137. ..\diregutl.c \
  138. ..\diextdll.c \
  139. ..\valid.c \
  140. ..\diwinnt.c \
  141. ..\dijoyhid.c \
  142. ..\diport.c \
  143. ..\dinput.rc \
  144. ..\guids.c \
  145. ..\diriff.c \
  146. ..\diraw.c \
  147. ..\dilib1.c \
  148. ..\dilib2.c \
  149. ..\dilib3.c \
  150. ..\dilib4.c \
  151. ..\dilib5.c \
  152. ..\dimapshp.c \
  153. DLLDEF=..\dinput.def
  154. PRECOMPILED_INCLUDE=..\dinputpr.h