libusb_sources 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. #TARGETTYPE is not defined, to allow selection between static lib or DLL with ddk_build
  2. TARGETNAME=libusb-1.0
  3. DLLDEF=..\libusb-1.0.def
  4. !IFNDEF MSC_WARNING_LEVEL
  5. MSC_WARNING_LEVEL=/W3
  6. !ENDIF
  7. !IFDEF STATIC_LIBC
  8. USE_LIBCMT=1
  9. !ELSE
  10. USE_MSVCRT=1
  11. !ENDIF
  12. INCLUDES=..;..\..\msvc;$(DDK_INC_PATH)
  13. C_DEFINES= $(C_DEFINES) $(LIBUSB_DEFINES) /DDDKBUILD
  14. # http://jpassing.com/2009/10/21/ltcg-issues-with-the-win7amd64-environment-of-wdk-7600/
  15. # prevents the following error when using the 64 bit static lib with Visual Studio 2010:
  16. # "fatal error C1001: An internal error has occurred in the compiler.
  17. # (compiler file 'f:\dd\vctools\compiler\utc\src\p2\p2symtab.c', line 1823)"
  18. # and the following with Visual Studio 2010:
  19. # "fatal error C1047: The object or library file 'libusb-1.0.lib' was created with
  20. # an older compiler than other objects; rebuild old objects and libraries"
  21. USER_C_FLAGS=/GL-
  22. TARGETLIBS=$(SDK_LIB_PATH)\kernel32.lib
  23. SOURCES=..\core.c \
  24. ..\descriptor.c \
  25. ..\io.c \
  26. ..\sync.c \
  27. threads_windows.c \
  28. poll_windows.c \
  29. windows_usb.c \
  30. ..\libusb-1.0.rc