comparison gcc/config/i386/t-cygming @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents f6334be47118
children 84e7813d76e9
comparison
equal deleted inserted replaced
68:561a7518be6b 111:04ced10e8804
1 # Copyright (C) 2003, 2005, 2008, 2009, 2010 Free Software Foundation, Inc. 1 # Copyright (C) 2003-2017 Free Software Foundation, Inc.
2 # 2 #
3 # This file is part of GCC. 3 # This file is part of GCC.
4 # 4 #
5 # GCC is free software; you can redistribute it and/or modify 5 # GCC is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by 6 # it under the terms of the GNU General Public License as published by
14 # 14 #
15 # You should have received a copy of the GNU General Public License 15 # You should have received a copy of the GNU General Public License
16 # along with GCC; see the file COPYING3. If not see 16 # along with GCC; see the file COPYING3. If not see
17 # <http://www.gnu.org/licenses/>. 17 # <http://www.gnu.org/licenses/>.
18 18
19 LIB1ASMSRC = i386/cygwin.asm
20 LIB1ASMFUNCS = _chkstk _chkstk_ms
21
22 # cygwin and mingw always have a limits.h, but, depending upon how we are 19 # cygwin and mingw always have a limits.h, but, depending upon how we are
23 # doing the build, it may not be installed yet. 20 # doing the build, it may not be installed yet.
24 LIMITS_H_TEST = true 21 LIMITS_H_TEST = true
25 22
26 # If we are building next to winsup, this will let us find the real
27 # limits.h when building libgcc2. Otherwise, winsup must be installed
28 # first.
29 LIBGCC2_INCLUDES = -I$(srcdir)/../winsup/w32api/include
30
31 winnt.o: $(srcdir)/config/i386/winnt.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \ 23 winnt.o: $(srcdir)/config/i386/winnt.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
32 $(TM_H) $(RTL_H) $(REGS_H) hard-reg-set.h output.h $(TREE_H) flags.h \ 24 $(TM_H) $(RTL_H) $(REGS_H) hard-reg-set.h output.h $(TREE_H) flags.h \
33 $(TM_P_H) $(HASHTAB_H) $(GGC_H) $(LTO_STREAMER_H) 25 $(TM_P_H) $(HASH_TABLE_H) $(GGC_H) $(LTO_STREAMER_H)
34 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \ 26 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
35 $(srcdir)/config/i386/winnt.c 27 $(srcdir)/config/i386/winnt.c
36 28
37 winnt-cxx.o: $(srcdir)/config/i386/winnt-cxx.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \ 29 winnt-cxx.o: $(srcdir)/config/i386/winnt-cxx.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
38 $(TM_H) $(TREE_H) flags.h \ 30 $(TM_H) $(TREE_H) flags.h \
52 $(TM_P_H) $(HASHTAB_H) $(GGC_H) 44 $(TM_P_H) $(HASHTAB_H) $(GGC_H)
53 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \ 45 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
54 $(srcdir)/config/i386/msformat-c.c 46 $(srcdir)/config/i386/msformat-c.c
55 47
56 STMP_FIXINC=stmp-fixinc 48 STMP_FIXINC=stmp-fixinc
57
58 # Build a shared libgcc library for PECOFF with a DEF file
59 # with the GNU linker.
60 #
61 # mkmap-flat.awk is used with the pe_dll option to produce a DEF instead
62 # of an ELF map file.
63 #
64 # Warning: If SHLIB_SOVERSION or SHLIB_SONAME are updated, LIBGCC_SONAME
65 # in mingw32.h and SHLIB_MKMAP_OPTS below must be updated also.
66
67 SHLIB_EXT = .dll
68 SHLIB_IMPLIB = @shlib_base_name@.a
69 SHLIB_SOVERSION = 1
70 SHLIB_SONAME = @shlib_base_name@_$(EH_MODEL)-$(SHLIB_SOVERSION)$(SHLIB_EXT)
71 SHLIB_MAP = @shlib_map_file@
72 SHLIB_OBJS = @shlib_objs@
73 SHLIB_DIR = @multilib_dir@/shlib
74 SHLIB_SLIBDIR_QUAL = @shlib_slibdir_qual@
75 # SHLIB_DLLDIR is defined by including one of either t-dlldir or t-dlldir-x
76 # (native/cross build respectively) in the tmake_file list in gcc/config.gcc.
77 ifndef SHLIB_DLLDIR
78 $(error SHLIB_DLLDIR must be defined)
79 endif
80
81 SHLIB_LINK = $(LN_S) -f $(SHLIB_MAP) $(SHLIB_MAP).def && \
82 if [ ! -d $(SHLIB_DIR) ]; then \
83 mkdir $(SHLIB_DIR); \
84 else true; fi && \
85 $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -shared -nodefaultlibs \
86 $(SHLIB_MAP).def \
87 -Wl,--out-implib,$(SHLIB_DIR)/$(SHLIB_IMPLIB).tmp \
88 -o $(SHLIB_DIR)/$(SHLIB_SONAME).tmp @multilib_flags@ \
89 $(SHLIB_OBJS) $(SHLIB_LC) && \
90 if [ -f $(SHLIB_DIR)/$(SHLIB_SONAME) ]; then \
91 mv -f $(SHLIB_DIR)/$(SHLIB_SONAME) \
92 $(SHLIB_DIR)/$(SHLIB_SONAME).backup; \
93 else true; fi && \
94 mv $(SHLIB_DIR)/$(SHLIB_SONAME).tmp $(SHLIB_DIR)/$(SHLIB_SONAME) && \
95 mv $(SHLIB_DIR)/$(SHLIB_IMPLIB).tmp $(SHLIB_DIR)/$(SHLIB_IMPLIB)
96 # $(slibdir) double quoted to protect it from expansion while building
97 # libgcc.mk. We want this delayed until actual install time.
98 SHLIB_INSTALL = \
99 $$(mkinstalldirs) $$(DESTDIR)$$(SHLIB_DLLDIR) \
100 $$(DESTDIR)$$(slibdir)$(SHLIB_SLIBDIR_QUAL); \
101 $(INSTALL) $(SHLIB_DIR)/$(SHLIB_SONAME) \
102 $$(DESTDIR)$$(SHLIB_DLLDIR)/$(SHLIB_SONAME); \
103 $(INSTALL_DATA) $(SHLIB_DIR)/$(SHLIB_IMPLIB) \
104 $$(DESTDIR)$$(slibdir)$(SHLIB_SLIBDIR_QUAL)/$(SHLIB_IMPLIB)
105 SHLIB_MKMAP = $(srcdir)/mkmap-flat.awk
106 # We'd like to use SHLIB_SONAME here too, but shlib_base_name
107 # does not get substituted before mkmap-flat.awk is run.
108 SHLIB_MKMAP_OPTS = -v pe_dll=libgcc_s_$(EH_MODEL)-$(SHLIB_SOVERSION)$(SHLIB_EXT)
109 SHLIB_MAPFILES = $(srcdir)/libgcc-std.ver