ENH: fix advanced bug
[cmake.git] / Modules / Platform / Windows-wcl386.cmake
blob87a61d56e1fcc344adb567f9078a0bc01bd64ca8
1 SET(CMAKE_LIBRARY_PATH_FLAG "libpath ")
2 SET(CMAKE_LINK_LIBRARY_FLAG "library ")
3 SET(CMAKE_LINK_LIBRARY_FILE_FLAG "library")
5 IF(CMAKE_VERBOSE_MAKEFILE)
6   SET(CMAKE_WCL_QUIET)
7   SET(CMAKE_WLINK_QUIET)
8   SET(CMAKE_LIB_QUIET)
9 ELSE(CMAKE_VERBOSE_MAKEFILE)
10   SET(CMAKE_WCL_QUIET "-zq")
11   SET(CMAKE_WLINK_QUIET "option quiet")
12   SET(CMAKE_LIB_QUIET "-q")
13 ENDIF(CMAKE_VERBOSE_MAKEFILE)
15 SET(CMAKE_BUILD_TYPE_INIT Debug)
16 SET (CMAKE_CXX_FLAGS_INIT "-w=3 -xs")
17 SET (CMAKE_CXX_FLAGS_DEBUG_INIT "-br -bm  -d2")
18 SET (CMAKE_CXX_FLAGS_MINSIZEREL_INIT "-br -bm -os -dNDEBUG")
19 SET (CMAKE_CXX_FLAGS_RELEASE_INIT "-br -bm -ot -dNDEBUG")
20 SET (CMAKE_CXX_FLAGS_RELWITHDEBINFO_INIT "-br -bm  -d2 -ot -dNDEBUG")
21 SET (CMAKE_C_FLAGS_INIT "-w=3 ")
22 SET (CMAKE_C_FLAGS_DEBUG_INIT "-br -bm  -od")
23 SET (CMAKE_C_FLAGS_MINSIZEREL_INIT "-br -bm -os -dNDEBUG")
24 SET (CMAKE_C_FLAGS_RELEASE_INIT "-br -bm -ot -dNDEBUG")
25 SET (CMAKE_C_FLAGS_RELWITHDEBINFO_INIT "-br -bm  -ot -dNDEBUG")
26 SET (CMAKE_C_STANDARD_LIBRARIES_INIT "library clbrdll.lib library plbrdll.lib  library kernel32.lib library user32.lib library gdi32.lib library winspool.lib library comdlg32.lib library advapi32.lib library shell32.lib library ole32.lib library oleaut32.lib library uuid.lib library odbc32.lib library odbccp32.lib")
27 SET (CMAKE_CXX_STANDARD_LIBRARIES_INIT "${CMAKE_C_STANDARD_LIBRARIES_INIT}")
29 SET(CMAKE_C_CREATE_IMPORT_LIBRARY
30   "wlib -q -n -b <TARGET_IMPLIB> +<TARGET>")
31 SET(CMAKE_CXX_CREATE_IMPORT_LIBRARY ${CMAKE_C_CREATE_IMPORT_LIBRARY})
33 SET(CMAKE_C_LINK_EXECUTABLE
34     "wlink ${CMAKE_START_TEMP_FILE} ${CMAKE_WLINK_QUIET} name <TARGET> option caseexact file {<OBJECTS>} <LINK_LIBRARIES> ${CMAKE_END_TEMP_FILE}")
36 SET(CMAKE_CXX_LINK_EXECUTABLE ${CMAKE_C_LINK_EXECUTABLE})
38 # compile a C++ file into an object file
39 SET(CMAKE_CXX_COMPILE_OBJECT
40     "<CMAKE_CXX_COMPILER> ${CMAKE_START_TEMP_FILE} ${CMAKE_WCL_QUIET} <FLAGS> -dWIN32 -d+ <DEFINES> -fo<OBJECT> -c -cc++ <SOURCE>${CMAKE_END_TEMP_FILE}")
42 # compile a C file into an object file
43 SET(CMAKE_C_COMPILE_OBJECT
44     "<CMAKE_C_COMPILER> ${CMAKE_START_TEMP_FILE} ${CMAKE_WCL_QUIET} <FLAGS> -dWIN32 -d+ <DEFINES> -fo<OBJECT> -c -cc <SOURCE>${CMAKE_END_TEMP_FILE}")
46 # preprocess a C source file
47 SET(CMAKE_C_CREATE_PREPROCESSED_SOURCE
48     "<CMAKE_C_COMPILER> ${CMAKE_START_TEMP_FILE} ${CMAKE_WCL_QUIET} <FLAGS> -dWIN32 -d+ <DEFINES> -fo<PREPROCESSED_SOURCE> -pl -cc <SOURCE>${CMAKE_END_TEMP_FILE}")
50 # preprocess a C++ source file
51 SET(CMAKE_CXX_CREATE_PREPROCESSED_SOURCE
52     "<CMAKE_CXX_COMPILER> ${CMAKE_START_TEMP_FILE} ${CMAKE_WCL_QUIET} <FLAGS> -dWIN32 -d+ <DEFINES> -fo<PREPROCESSED_SOURCE> -pl -cc++ <SOURCE>${CMAKE_END_TEMP_FILE}")
54 SET(CMAKE_CXX_CREATE_SHARED_MODULE
55  "wlink ${CMAKE_START_TEMP_FILE} system nt_dll  ${CMAKE_WLINK_QUIET} name <TARGET> option caseexact  file {<OBJECTS>} <LINK_LIBRARIES> ${CMAKE_END_TEMP_FILE}")
56 SET(CMAKE_CXX_CREATE_SHARED_LIBRARY
57   ${CMAKE_CXX_CREATE_SHARED_MODULE}
58   ${CMAKE_CXX_CREATE_IMPORT_LIBRARY})
60 # create a C shared library
61 SET(CMAKE_C_CREATE_SHARED_LIBRARY ${CMAKE_CXX_CREATE_SHARED_LIBRARY})
63 # create a C shared module
64 SET(CMAKE_C_CREATE_SHARED_MODULE ${CMAKE_CXX_CREATE_SHARED_MODULE})
66 # create a C++ static library
67 SET(CMAKE_CXX_CREATE_STATIC_LIBRARY  "wlib ${CMAKE_LIB_QUIET} -n -b <TARGET> <OBJECTS> ")
69 # create a C static library
70 SET(CMAKE_C_CREATE_STATIC_LIBRARY ${CMAKE_CXX_CREATE_STATIC_LIBRARY})