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