| 1 |
282 |
jeremybenn |
# Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2008, 2009
|
| 2 |
|
|
# 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 |
|
|
# .
|
| 19 |
|
|
|
| 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.
|
| 23 |
|
|
LIBGCC2_INCLUDES += -I$(srcdir)/../winsup/include \
|
| 24 |
|
|
-I$(srcdir)/../winsup/cygwin/include
|
| 25 |
|
|
|
| 26 |
|
|
cygwin1.o: $(srcdir)/config/i386/cygwin1.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
|
| 27 |
|
|
$(TM_H) $(TM_P_H)
|
| 28 |
|
|
$(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
|
| 29 |
|
|
$(srcdir)/config/i386/cygwin1.c
|
| 30 |
|
|
|
| 31 |
|
|
cygwin2.o: $(srcdir)/config/i386/cygwin2.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
|
| 32 |
|
|
$(TM_H) $(TM_P_H)
|
| 33 |
|
|
$(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
|
| 34 |
|
|
$(srcdir)/config/i386/cygwin2.c
|
| 35 |
|
|
|
| 36 |
|
|
# Cygwin-specific parts of LIB_SPEC
|
| 37 |
|
|
SHLIB_LC = -lcygwin -luser32 -lkernel32 -ladvapi32 -lshell32
|
| 38 |
|
|
|
| 39 |
|
|
# We have already included one of the t-{dw2,sjlj}-eh fragments for EH_MODEL
|
| 40 |
|
|
SHLIB_EH_EXTENSION = $(subst -dw2,,-$(EH_MODEL))
|
| 41 |
|
|
|
| 42 |
|
|
# Cygwin uses different conventions than MinGW; override generic SHLIB_ def'ns here.
|
| 43 |
|
|
SHLIB_IMPLIB = @shlib_base_name@$(SHLIB_EXT).a
|
| 44 |
|
|
SHLIB_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.
|
| 48 |
|
|
SHLIB_MKMAP_OPTS = -v pe_dll=$(SHLIB_SONAME)
|
| 49 |
|
|
|