Blame msvc/libusb_sources
|
Packit Service |
b0a153 |
#TARGETTYPE is not defined, to allow selection between static lib or DLL with ddk_build
|
|
Packit Service |
b0a153 |
TARGETNAME=libusb-1.0
|
|
Packit Service |
b0a153 |
DLLDEF=..\libusb-1.0.def
|
|
Packit Service |
b0a153 |
|
|
Packit Service |
b0a153 |
_NT_TARGET_VERSION=$(_NT_TARGET_VERSION_WINXP)
|
|
Packit Service |
b0a153 |
|
|
Packit Service |
b0a153 |
!IFNDEF MSC_WARNING_LEVEL
|
|
Packit Service |
b0a153 |
MSC_WARNING_LEVEL=/W3
|
|
Packit Service |
b0a153 |
!ENDIF
|
|
Packit Service |
b0a153 |
|
|
Packit Service |
b0a153 |
!IFDEF STATIC_LIBC
|
|
Packit Service |
b0a153 |
USE_LIBCMT=1
|
|
Packit Service |
b0a153 |
!ELSE
|
|
Packit Service |
b0a153 |
USE_MSVCRT=1
|
|
Packit Service |
b0a153 |
!ENDIF
|
|
Packit Service |
b0a153 |
|
|
Packit Service |
b0a153 |
INCLUDES=..;..\..\msvc;$(DDK_INC_PATH)
|
|
Packit Service |
b0a153 |
C_DEFINES=$(C_DEFINES) $(LIBUSB_DEFINES) /DDDKBUILD
|
|
Packit Service |
b0a153 |
|
|
Packit Service |
b0a153 |
# http://jpassing.com/2009/10/21/ltcg-issues-with-the-win7amd64-environment-of-wdk-7600/
|
|
Packit Service |
b0a153 |
# prevents the following error when using the 64 bit static lib with Visual Studio 2010:
|
|
Packit Service |
b0a153 |
# "fatal error C1001: An internal error has occurred in the compiler.
|
|
Packit Service |
b0a153 |
# (compiler file 'f:\dd\vctools\compiler\utc\src\p2\p2symtab.c', line 1823)"
|
|
Packit Service |
b0a153 |
# and the following with Visual Studio 2010:
|
|
Packit Service |
b0a153 |
# "fatal error C1047: The object or library file 'libusb-1.0.lib' was created with
|
|
Packit Service |
b0a153 |
# an older compiler than other objects; rebuild old objects and libraries"
|
|
Packit Service |
b0a153 |
USER_C_FLAGS=/GL-
|
|
Packit Service |
b0a153 |
|
|
Packit Service |
b0a153 |
TARGETLIBS=$(SDK_LIB_PATH)\advapi32.lib \
|
|
Packit Service |
b0a153 |
$(SDK_LIB_PATH)\kernel32.lib
|
|
Packit Service |
b0a153 |
|
|
Packit Service |
b0a153 |
SOURCES=..\core.c \
|
|
Packit Service |
b0a153 |
..\descriptor.c \
|
|
Packit Service |
b0a153 |
..\hotplug.c \
|
|
Packit Service |
b0a153 |
..\io.c \
|
|
Packit Service |
b0a153 |
poll_windows.c \
|
|
Packit Service |
b0a153 |
..\strerror.c \
|
|
Packit Service |
b0a153 |
..\sync.c \
|
|
Packit Service |
b0a153 |
threads_windows.c \
|
|
Packit Service |
b0a153 |
windows_nt_common.c \
|
|
Packit Service |
b0a153 |
windows_usbdk.c \
|
|
Packit Service |
b0a153 |
windows_winusb.c \
|
|
Packit Service |
b0a153 |
..\libusb-1.0.rc
|