GnuCOBOL  2.0
A free COBOL compiler
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
defaults.h
Go to the documentation of this file.
1 // Use \ to escape things, for example \\ for using in paths
2 // Use \" for paths with spaces
3 
4 // define MAKE_DIST to 1 for using C:\GNU Cobol 2.0
5 
6 #define COB_CC "cl"
7 #ifdef MAKE_DIST
8 #define COB_MAIN_DIR "C:\\" PACKAGE_STRING
9 #define COB_CFLAGS "-I \"" COB_MAIN_DIR "\\include\""
10 #define COB_LDFLAGS "/LIBPATH:\"" COB_MAIN_DIR "\\libs\""
11 #else // no MAKE_DIST
12 #define COB_MAIN_DIR "C:\\GnuCobol"
13 #define COB_CFLAGS "-I \"" COB_MAIN_DIR "\" -I \"" COB_MAIN_DIR "\\build_windows\""
14 
15 #ifdef _WIN64
16 #define TARGET_PLATFORM "x64"
17 #else
18 #define TARGET_PLATFORM "win32"
19 #endif
20 
21 #ifdef _DEBUG
22 #define TARGET_CONFIG "debug"
23 #else
24 #define TARGET_CONFIG "release"
25 #endif
26 
27 #define COB_LDFLAGS "/LIBPATH:\"" COB_MAIN_DIR "\\build_windows\\" TARGET_PLATFORM "\\" TARGET_CONFIG "\""
28 
29 #endif // no MAKE_DIST
30 #define COB_LIBS "libcob.lib"
31 
32 // Do not put quotation marks here:
33 #define COB_CONFIG_DIR COB_MAIN_DIR "\\config"
34 #define COB_COPY_DIR COB_MAIN_DIR "\\copy"
35 
36 #define COB_LIBRARY_PATH "."
37 #define COB_MODULE_EXT "dll"
38 #define COB_OBJECT_EXT "obj"
39 
40 // /* try to use compile defines for that:
41 #define COB_BLD_CC "cl"
42 #define COB_BLD_CPPFLAGS ""
43 #ifdef _DEBUG
44 #define COB_BLD_CFLAGS "/GS /GL /analyze- /W4 /Zc:wchar_t /Zi /Gm- /O2 /Ob2 /fp:precise /WX- /Zc:forScope /Gd /Oy- /Oi /MD /EHsc /Ot"
45 #else
46 #define COB_BLD_CFLAGS "/Zi /nologo /W4 /WX- /O2 /Ob2 /Oi /Ot /Oy- /GL /Gm- /EHsc /MD /GS /fp:precise /Zc:wchar_t /Zc:forScope /Gd /analyze-"
47 #endif
48 #define COB_BLD_LD "link.exe"
49 #define COB_BLD_LDFLAGS ""
50 #define COB_BLD_BUILD "i686-pc-windows"
51 // */
52 
53 #define LOCALEDIR "C:\\locale"