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