]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/config/t-darwin
darwin-crt2.c: Move to ../libgcc/config/rs6000.
[thirdparty/gcc.git] / gcc / config / t-darwin
1 # Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011
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 # <http://www.gnu.org/licenses/>.
19
20 TM_H += $(srcdir)/config/darwin-sections.def
21
22 darwin.o: $(srcdir)/config/darwin.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
23 $(TM_H) $(RTL_H) $(REGS_H) hard-reg-set.h $(REAL_H) insn-config.h \
24 conditions.h insn-flags.h output.h insn-attr.h flags.h $(TREE_H) expr.h \
25 reload.h function.h $(GGC_H) langhooks.h $(TARGET_H) $(TM_P_H) gt-darwin.h \
26 config/darwin-sections.def
27 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
28 $(srcdir)/config/darwin.c
29
30 darwin-c.o: $(srcdir)/config/darwin-c.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
31 $(TM_H) $(CPPLIB_H) $(TREE_H) $(C_PRAGMA_H) $(TM_P_H) \
32 incpath.h flags.h $(C_COMMON_H) $(C_TARGET_H) $(C_TARGET_DEF_H)
33 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
34 $(srcdir)/config/darwin-c.c $(PREPROCESSOR_DEFINES)
35
36 darwin-f.o: $(srcdir)/config/darwin-f.c $(CONFIG_H) $(SYSTEM_H) coretypes.h
37 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
38 $(srcdir)/config/darwin-f.c $(PREPROCESSOR_DEFINES)
39
40 darwin-driver.o: $(srcdir)/config/darwin-driver.c \
41 $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(GCC_H) opts.h
42 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
43 $(srcdir)/config/darwin-driver.c
44
45 # Use unwind-dw2-fde-darwin
46 LIB2ADDEH = $(srcdir)/unwind-dw2.c $(srcdir)/unwind-dw2-fde-darwin.c \
47 $(srcdir)/unwind-sjlj.c $(srcdir)/unwind-c.c
48
49 # -pipe because there's an assembler bug, 4077127, which causes
50 # it to not properly process the first # directive, causing temporary
51 # file names to appear in stabs, causing the bootstrap to fail. Using -pipe
52 # works around this by not having any temporary file names.
53 TARGET_LIBGCC2_CFLAGS = -fPIC -pipe