[opensm+tools] Corrections for WDK build environment.
[mirror/winof/.git] / tools / mtcr / user / SOURCES
1 #\r
2 # Name: sources\r
3 #\r
4 # Purpose:\r
5 #       Building MTCR for this platform (user space)\r
6 #\r
7 \r
8 TARGETTYPE=DYNLINK\r
9 TARGETNAME=mtcr\r
10 DLLENTRY=_DllMainCRTStartup\r
11 DLLDEF=mtcr.def\r
12 USE_MSVCRT=1\r
13 \r
14 !if !defined(WINIBHOME)\r
15 WINIBHOME=..\..\..\r
16 !endif\r
17 \r
18 LIBPATH=$(WINIBHOME)\bin\user\obj$(BUILD_ALT_DIR)\r
19 \r
20 TARGETPATH=$(WINIBHOME)\bin\user\obj$(BUILD_ALT_DIR)\r
21 \r
22 \r
23 INCLUDES= $(WINIBHOME)\inc;                    \\r
24           $(WINIBHOME)\inc\user;               \\r
25           $(WINIBHOME)\inc\iba;                \\r
26           $(WINIBHOME)\inc\mthca;                \\r
27           .\usb;\r
28           \r
29 \r
30 SOURCES= \\r
31         mtcr.rc \\r
32         mtcr_i2c.c \\r
33         mtcr.c \\r
34         usb.cpp\r
35  \r
36 \r
37 TARGETLIBS= \\r
38 !if $(FREEBUILD)\r
39                         $(TARGETPATH)\*\complib.lib \\r
40                         $(TARGETPATH)\*\ibal.lib\\r
41                         $(SDK_LIB_PATH)\Kernel32.lib\\r
42 !else\r
43                         $(TARGETPATH)\*\complibd.lib\\r
44                         $(TARGETPATH)\*\ibald.lib\\r
45                         $(SDK_LIB_PATH)\Ws2_32.lib\\r
46                         $(SDK_LIB_PATH)\Kernel32.lib\\r
47 \r
48 !endif\r
49 \r
50 \r
51 # dimax driver not provided for 64 bits arch.\r
52 MTCR_NO_USB=1\r
53 \r
54 \r
55 !if "$(_BUILDARCH)" == "x86"\r
56 TARGETLIBS=$(TARGETLIBS)\\r
57         .\usb\usbi2cio.lib \\r
58         .\usb\I2cBrdg.lib\r
59         \r
60 C_DEFINES=$(C_DEFINES) -DMTCR_USB_SUPPORT\r
61 !endif\r
62 \r
63 \r
64 \r
65 \r
66 # TODO:Should I define the __WIN__ manually\r
67 C_DEFINES=$(C_DEFINES) /DMTCR_EXPORTS /DMTL_MODULE=MTCR -D__WIN__ \r
68 \r
69 \r
70 !if $(FREEBUILD)\r
71 \r
72 !else\r
73 C_DEFINES=$(C_DEFINES) -DDEBUG -DDBG\r
74 !endif\r
75 \r
76 \r
77 # This is for the perl and zlib lib funcs, which requires __cdecl.\r
78 # TODO: define for all arch. check if MSC_STDCALL works.\r
79 386_STDCALL=0\r
80 amd64_STDCALL=0\r
81 \r
82 MSC_WARNING_LEVEL= /W3\r
83 \r
84 #BUILD_CONSUMES=mlxsys\r
85 BUILD_PRODUCES=mtcr\r
86 \r