1 #TARGETTYPE is not defined, to allow selection between static lib or DLL with ddk_build
3 DLLDEF=..\libusb-1.0.def
5 _NT_TARGET_VERSION=$(_NT_TARGET_VERSION_WINXP)
7 !IFNDEF MSC_WARNING_LEVEL
17 INCLUDES=..;..\..\msvc;$(DDK_INC_PATH)
18 C_DEFINES=$(C_DEFINES) $(LIBUSB_DEFINES) /DDDKBUILD
20 # http://jpassing.com/2009/10/21/ltcg-issues-with-the-win7amd64-environment-of-wdk-7600/
21 # prevents the following error when using the 64 bit static lib with Visual Studio 2010:
22 # "fatal error C1001: An internal error has occurred in the compiler.
23 # (compiler file 'f:\dd\vctools\compiler\utc\src\p2\p2symtab.c', line 1823)"
24 # and the following with Visual Studio 2010:
25 # "fatal error C1047: The object or library file 'libusb-1.0.lib' was created with
26 # an older compiler than other objects; rebuild old objects and libraries"
29 TARGETLIBS=$(SDK_LIB_PATH)\advapi32.lib \
30 $(SDK_LIB_PATH)\kernel32.lib