Debian Codegraph @

os/win32/ccconfig.h

raw symbols SCIP
1 /* $Id: ccconfig.h,v 1.19 2014/12/24 12:35:38 plunky Exp $ */
2
3 /*
4 * Currently only supports console applications.
5 */
6
7 #if defined(MSLINKER)
8 /* requires microsoft toolkit headers and linker, and pcc-libs */
9 #define CPPADD { "-DWIN32", "-D_WIN32", NULL }
10 #define DEFLIBS { "/subsystem:console", "msvcrt.lib", "libpcc.a", NULL }
11 #else
12 /* common cpp predefines */
13 #define CPPADD { "-DWIN32", "-D_WIN32", "-D__MSVCRT__", "-D__MINGW32__", NULL }
14
15 /* host-dependent */
16 /* requires w32api-3.2.tar.gz and mingw-runtime-3.14.tar.gz */
17 #define CRT0 "crt2.o"
18 #define STARTLABEL "_mainCRTStartup"
19 #define CRT0_S "dllcrt2.o"
20 #define STARTLABEL_S "_DllMainCRTStartup@12"
21 #define GCRT0 "gcrt2.o" /* in _addition_ to either crt2.o or dllcrt2.o */
22
23 #define CRTBEGIN 0 /* No constructor/destructor support for now */
24 #define CRTEND 0
25 #define CRTBEGIN_S 0
26 #define CRTEND_S 0
27 #define CRTBEGIN_T 0 /* Note: MingW cannot do -static linking */
28 #define CRTEND_T 0
29 #define CRTI 0
30 #define CRTN 0
31
32 #define WIN32_LIBC "-lmsvcrt"
33 #define MINGW_RTLIBS "-lmoldname", "-lmingwex", "-lmingw32"
34 #define MINGW_SYSLIBS "-luser32", "-lkernel32" /* ,"-ladvapi32", "-lshell32" */
35 #define DEFLIBS { MINGW_RTLIBS, "-lpcc", WIN32_LIBC, MINGW_SYSLIBS, MINGW_RTLIBS, WIN32_LIBC, 0 }
36 #define DEFPROFLIBS { MINGW_RTLIBS, "-lpcc", WIN32_LIBC, "-lgmon", MINGW_SYSLIBS, MINGW_RTLIBS, WIN32_LIBC, 0 }
37 #define DEFCXXLIBS { "-lp++", MINGW_RTLIBS, "-lpcc", WIN32_LIBC, MINGW_SYSLIBS, MINGW_RTLIBS, WIN32_LIBC, 0 }
38
39 #endif
40
41 #define CPPMDADD { "-D__i386__", NULL }