]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/config/i386/t-cygwin
ABOUT-GCC-NLS, [...]: Add copyright and license notices.
[thirdparty/gcc.git] / gcc / config / i386 / t-cygwin
CommitLineData
ad41bd84
JM
1# Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2008,
2# 2009 Free Software Foundation, Inc.
3#
4# This file is part of GCC.
5#
6# GCC is free software; you can redistribute it and/or modify
7# it under the terms of the GNU General Public License as published by
8# the Free Software Foundation; either version 3, or (at your option)
9# any later version.
10#
11# GCC is distributed in the hope that it will be useful,
12# but WITHOUT ANY WARRANTY; without even the implied warranty of
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14# GNU General Public License for more details.
15#
16# You should have received a copy of the GNU General Public License
17# along with GCC; see the file COPYING3. If not see
18# <http://www.gnu.org/licenses/>.
19
7fad712c
ILT
20# If we are building next to winsup, this will let us find the real
21# limits.h when building libgcc2. Otherwise, winsup must be installed
22# first.
70e5e841
CF
23LIBGCC2_INCLUDES += -I$(srcdir)/../winsup/include \
24 -I$(srcdir)/../winsup/cygwin/include
25
e980df8e
TT
26cygwin1.o: $(srcdir)/config/i386/cygwin1.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
27 $(TM_H) $(TM_P_H)
28 $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
29 $(srcdir)/config/i386/cygwin1.c
30
31cygwin2.o: $(srcdir)/config/i386/cygwin2.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
32 $(TM_H) $(TM_P_H)
33 $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
34 $(srcdir)/config/i386/cygwin2.c
14455c64 35
d89f0ad6 36# Cygwin-specific parts of LIB_SPEC
d59e481e 37SHLIB_LC = -lcygwin -luser32 -lkernel32 -ladvapi32 -lshell32
3cbfaf98
DK
38
39# We have already included one of the t-{dw2,sjlj}-eh fragments for EH_MODEL
40SHLIB_EH_EXTENSION = $(subst -dw2,,-$(EH_MODEL))
41
42# Cygwin uses different conventions than MinGW; override generic SHLIB_ def'ns here.
43SHLIB_IMPLIB = @shlib_base_name@$(SHLIB_EXT).a
44SHLIB_SONAME = cyggcc_s$(SHLIB_EH_EXTENSION)-$(SHLIB_SOVERSION)$(SHLIB_EXT)
45# This must match the definitions of SHLIB_SONAME/SHLIB_SOVERSION and LIBGCC_SONAME.
46# We'd like to use SHLIB_SONAME here too, and we can, since
47# we don't rely on shlib_base_name substitution for it.
48SHLIB_MKMAP_OPTS = -v pe_dll=$(SHLIB_SONAME)
49