t-darwin revision 1.1 1 1.1 mrg # Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
2 1.1 mrg # Free Software Foundation, Inc.
3 1.1 mrg #
4 1.1 mrg # This file is part of GCC.
5 1.1 mrg #
6 1.1 mrg # GCC is free software; you can redistribute it and/or modify
7 1.1 mrg # it under the terms of the GNU General Public License as published by
8 1.1 mrg # the Free Software Foundation; either version 3, or (at your option)
9 1.1 mrg # any later version.
10 1.1 mrg #
11 1.1 mrg # GCC is distributed in the hope that it will be useful,
12 1.1 mrg # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 1.1 mrg # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 1.1 mrg # GNU General Public License for more details.
15 1.1 mrg #
16 1.1 mrg # You should have received a copy of the GNU General Public License
17 1.1 mrg # along with GCC; see the file COPYING3. If not see
18 1.1 mrg # <http://www.gnu.org/licenses/>.
19 1.1 mrg
20 1.1 mrg darwin.o: $(srcdir)/config/darwin.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
21 1.1 mrg $(TM_H) $(RTL_H) $(REGS_H) hard-reg-set.h $(REAL_H) insn-config.h \
22 1.1 mrg conditions.h insn-flags.h output.h insn-attr.h flags.h $(TREE_H) expr.h \
23 1.1 mrg reload.h function.h $(GGC_H) langhooks.h $(TARGET_H) $(TM_P_H) gt-darwin.h \
24 1.1 mrg config/darwin-sections.def
25 1.1 mrg $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
26 1.1 mrg $(srcdir)/config/darwin.c
27 1.1 mrg
28 1.1 mrg darwin-c.o: $(srcdir)/config/darwin-c.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
29 1.1 mrg $(TM_H) $(CPPLIB_H) $(TREE_H) c-pragma.h $(C_TREE_H) toplev.h $(TM_P_H) \
30 1.1 mrg incpath.h flags.h $(C_COMMON_H)
31 1.1 mrg $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
32 1.1 mrg $(srcdir)/config/darwin-c.c $(PREPROCESSOR_DEFINES)
33 1.1 mrg
34 1.1 mrg darwin-f.o: $(srcdir)/config/darwin-f.c $(CONFIG_H) $(SYSTEM_H) coretypes.h
35 1.1 mrg $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
36 1.1 mrg $(srcdir)/config/darwin-f.c $(PREPROCESSOR_DEFINES)
37 1.1 mrg
38 1.1 mrg darwin-driver.o: $(srcdir)/config/darwin-driver.c \
39 1.1 mrg $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(GCC_H)
40 1.1 mrg $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
41 1.1 mrg $(srcdir)/config/darwin-driver.c
42 1.1 mrg
43 1.1 mrg # How to build crt3.o
44 1.1 mrg EXTRA_MULTILIB_PARTS=crt3.o
45 1.1 mrg # Pass -fno-tree-dominator-opts to work around bug 26840.
46 1.1 mrg $(T)crt3$(objext): $(srcdir)/config/darwin-crt3.c $(GCC_PASSES) \
47 1.1 mrg $(TCONFIG_H) stmp-int-hdrs tsystem.h
48 1.1 mrg $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(MULTILIB_CFLAGS) \
49 1.1 mrg -fno-tree-dominator-opts $(DARWIN_EXTRA_CRT_BUILD_CFLAGS) \
50 1.1 mrg -c $(srcdir)/config/darwin-crt3.c -o $(T)crt3$(objext)
51 1.1 mrg
52 1.1 mrg # Use unwind-dw2-fde-darwin
53 1.1 mrg LIB2ADDEH = $(srcdir)/unwind-dw2.c $(srcdir)/unwind-dw2-fde-darwin.c \
54 1.1 mrg $(srcdir)/unwind-sjlj.c $(srcdir)/unwind-c.c
55 1.1 mrg LIB2ADDEHDEP = unwind.inc unwind-dw2-fde.h unwind-dw2-fde.c
56 1.1 mrg
57 1.1 mrg # -pipe because there's an assembler bug, 4077127, which causes
58 1.1 mrg # it to not properly process the first # directive, causing temporary
59 1.1 mrg # file names to appear in stabs, causing the bootstrap to fail. Using -pipe
60 1.1 mrg # works around this by not having any temporary file names.
61 1.1 mrg TARGET_LIBGCC2_CFLAGS = -fPIC -pipe
62