head	1.3;
access;
symbols;
locks
	colin:1.3; strict;
comment	@# @;


1.3
date	97.12.05.00.46.15;	author colin;	state Exp;
branches;
next	1.2;

1.2
date	97.07.29.07.51.25;	author colin;	state Exp;
branches;
next	1.1;

1.1
date	97.07.03.04.12.29;	author colin;	state Exp;
branches;
next	;


desc
@Options and weirdness to get the GCC compiler to build Mingw32 programs.
@


1.3
log
@Changes for upcoming 0.2.0 revision. Default runtime remains crtdll, but
support is available for msvcrtxx. Also, -windows has become -mwindows,
-dll has become -mdll and [dll]crt0.o has become [dll]crt1.o (these changes
are mostly to stay in line with the GNU distribution).
@
text
@*asm:


*asm_final:


*cpp:
%{posix:-D_POSIX_SOURCE} -iprefix /mingw32/include

*cc1:
-fno-pcc-struct-return

*cc1plus:
-fno-pcc-struct-return

*endfile:


*link:
%{mwindows:--subsystem windows} %{mdll:--dll -e _DllMainCRTStartup@@12}

*lib:
-lmingw32 -lgcc -lmoldname -lcrtdll %{mwindows:-luser32 -lgdi32 -lcomdlg32} -lkernel32

*libgcc:
-lgcc

*startfile:
%{mdll:dllcrt1%O%s} %{!mdll:crt1%O%s}

*switches_need_spaces:


*signed_char:
%{funsigned-char:-D__CHAR_UNSIGNED__}

*predefines:
-Di386 -D_WIN32 -DWIN32 -D__WIN32__ -D__MINGW32__=0.2 -DWINNT -D_X86_=1 -D__STDC__=1 -D__stdcall=__attribute__((__stdcall__)) -D__cdecl=__attribute__((__cdecl__)) -Asystem(winnt) -Acpu(i386) -Amachine(i386)

*cross_compile:
0

*multilib:
. ;

@


1.2
log
@Took out some options which made the Mingw32 port of cpp barf.
@
text
@d8 1
a8 1
%{posix:-D_POSIX_SOURCE} -iprefix /mingw32/include/
d11 1
a11 1
%{!mcpu*: %{m386:-mcpu=i386 -march=i386} %{mno-486:-mcpu=i386 -march=i386} %{m486:-mcpu=i486 -march=i486} %{mno-386:-mcpu=i486 -march=i486} %{mno-pentium:-mcpu=i486 -march=i486} %{mpentium:-mcpu=pentium} %{mno-pentiumpro:-mcpu=pentium} %{mpentiumpro:-mcpu=pentiumpro}}
d14 1
a15 1

d20 1
a20 1
%{windows:--subsystem windows} %{dll:--dll -e _DllMainCRTStartup@@12}
d23 1
a23 1
%{windows:-luser32 -lgdi32 -lcomdlg32} -lkernel32
d26 1
a26 1
-lmingw32 -lgcc -lmoldname -lcrtdll
d29 1
a29 1
%{dll:dllcrt0%O%s} %{!dll:crt0%O%s}
d38 1
a38 1
-Di386 -D_WIN32 -D__WIN32__ -DWINNT -D__MINGW32__ -D_X86_=1 -D__STDC__=1 -D__stdcall=__attribute__((__stdcall__))   -D__cdecl=__attribute__((__cdecl__))   -Asystem(winnt) -Acpu(i386) -Amachine(i386)
d41 1
a41 4
1

*version:
cygnus-2.7.2-960404
a44 12

*multilib_defaults:


*multilib_extra:


*multilib_matches:


*cpp_cpu:
-Di386  -Asystem(win32) -Acpu(i386) -Amachine(i386) %{mcpu=i486:-D-486} %{m486-Di486} %{mpentium:-Dpentium -Di586} %{mcpu=pentium:-Dpentium -Di586} %{mpentiumpro:-Dpentiumpro -Di686} %{mcpu=pentiumpro:-Dpentiumpro -Di686}
@


1.1
log
@Initial revision
@
text
@d8 1
a8 1
%(cpp_cpu) %[cpp_cpu] %{posix:-D_POSIX_SOURCE} -iprefix /mingw32/include/
@
