[opensm+tools] Corrections for WDK build environment.
[mirror/winof/.git] / ulp / opensm / user / libopensm / SOURCES
1 !if $(FREEBUILD)
2 TARGETNAME=opensm_ibal
3 !else
4 TARGETNAME=opensm_ibald
5 !endif
6 TARGETTYPE=LIBRARY
7
8 !if !defined(WINIBHOME)
9 WINIBHOME=..\..\..\..
10 !endif
11
12 LIBPATH=$(WINIBHOME)\bin\user\obj$(BUILD_ALT_DIR)
13
14 !if defined(OSM_TARGET)
15 TARGETPATH=$(OSM_TARGET)\bin\user\obj$(BUILD_ALT_DIR)
16 !else
17 TARGETPATH=$(WINIBHOME)\bin\user\obj$(BUILD_ALT_DIR)
18 !endif
19
20 USE_MSVCRT=1
21 OVR_DIR=..\addon
22
23
24 SOURCES=\
25    osm_log.c \
26    osm_mad_pool.c \
27    osm_helper.c
28
29 OSM_HOME=..
30
31 TARGETLIBS=\
32 !if $(FREEBUILD)
33                         $(LIBPATH)\*\ibal.lib \
34                         $(LIBPATH)\*\complib.lib \
35                         $(TARGETPATH)\*\osmv_ibal.lib
36
37 !else
38                         $(LIBPATH)\*\ibald.lib \
39                         $(LIBPATH)\*\complibd.lib \
40                         $(TARGETPATH)\*\osmv_ibald.lib
41 !endif
42
43 #DO NOT TOUCH the order of search path , until ib_types.h merging process will be done
44 INCLUDES= \
45         $(OSM_HOME)\include; \
46         $(OSM_HOME); \
47         $(WINIBHOME)\inc; \
48         $(WINIBHOME)\inc\user;
49
50 # Could be any special flag needed for this project 
51 USER_C_FLAGS=$(USER_C_FLAGS) /MD
52 #Add preproccessor definitions
53 C_DEFINES=$(C_DEFINES) -DWIN32 -D__WIN__ -D__i386__ -Dinline=__inline -DMT_LITTLE_ENDIAN -DOSM_VENDOR_INTF_AL
54 C_DEFINES=$(C_DEFINES) -I.. -DHAVE_CONFIG_H
55 !if !$(FREEBUILD)
56 #C_DEFINES=$(C_DEFINES) -D_DEBUG -DDEBUG -DDBG
57 C_DEFINES=$(C_DEFINES) 
58 !endif
59
60 LINKER_FLAGS= $(LINKER_FLAGS)
61 MSC_WARNING_LEVEL= /W3
62 #MSC_OPTIMIZATION= /O0