]>
Commit | Line | Data |
---|---|---|
6407d0da RK |
1 | /* Operating system specific defines to be used when targeting GCC for |
2 | hosting on Windows32, using GNU tools and the Windows32 API Library, | |
3 | as distinct from winnt.h, which is used to build GCC for use with a | |
4 | windows style library and tool set and uses the Microsoft tools. | |
5 | Copyright (C) 1997 Free Software Foundation, Inc. | |
6 | ||
7 | This file is part of GNU CC. | |
8 | ||
9 | GNU CC is free software; you can redistribute it and/or modify | |
10 | it under the terms of the GNU General Public License as published by | |
11 | the Free Software Foundation; either version 2, or (at your option) | |
12 | any later version. | |
13 | ||
14 | GNU CC is distributed in the hope that it will be useful, | |
15 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
17 | GNU General Public License for more details. | |
18 | ||
19 | You should have received a copy of the GNU General Public License | |
20 | along with GNU CC; see the file COPYING. If not, write to | |
21 | the Free Software Foundation, 59 Temple Place - Suite 330, | |
22 | Boston, MA 02111-1307, USA. */ | |
23 | ||
24 | /* Most of this is the same as for Cygwin32, except for changing some | |
25 | specs. */ | |
26 | ||
27 | #include "i386/cygwin32.h" | |
28 | ||
29 | #undef CPP_PREDEFINES | |
30 | #define CPP_PREDEFINES "-Di386 -D_WIN32 -DWIN32 -D__WIN32__ \ | |
31 | -D__MINGW32__ -DWINNT -D_X86_=1 -D__STDC__=1\ | |
32 | -D__stdcall=__attribute__((__stdcall__)) \ | |
33 | -D__cdecl=__attribute__((__cdecl__)) \ | |
34 | -Asystem(winnt) -Acpu(i386) -Amachine(i386)" | |
35 | ||
36 | /* For Windows applications, include more libraries, but always include | |
37 | kernel32. */ | |
38 | #undef LIB_SPEC | |
39 | #define LIB_SPEC "%{windows:-luser32 -lgdi32 -lcomdlg32} -lkernel32" | |
40 | ||
41 | /* Include in the Windows32 API libraries with libgcc */ | |
42 | #undef LIBGCC_SPEC | |
43 | #define LIBGCC_SPEC "-lmingw32 -lgcc -lmoldname -lcrtdll" | |
44 | ||
45 | /* Specify a different entry point when linking a DLL */ | |
46 | #undef LINK_SPEC | |
47 | #define LINK_SPEC "%{windows:--subsystem windows} %{dll:--dll -e _DllMainCRTStartup@12}" |