1 |
709 |
jeremybenn |
# Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
|
2 |
|
|
# 2009, 2010, 2011 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 |
|
|
driver-avr.o: $(srcdir)/config/avr/driver-avr.c \
|
21 |
|
|
$(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H)
|
22 |
|
|
$(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $<
|
23 |
|
|
|
24 |
|
|
avr-devices.o: $(srcdir)/config/avr/avr-devices.c \
|
25 |
|
|
$(srcdir)/config/avr/avr-mcus.def \
|
26 |
|
|
$(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H)
|
27 |
|
|
$(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $<
|
28 |
|
|
|
29 |
|
|
avr-c.o: $(srcdir)/config/avr/avr-c.c \
|
30 |
|
|
$(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) $(C_COMMON_H)
|
31 |
|
|
$(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $<
|
32 |
|
|
|
33 |
|
|
avr-log.o: $(srcdir)/config/avr/avr-log.c \
|
34 |
|
|
$(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) $(INPUT_H)
|
35 |
|
|
$(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $<
|
36 |
|
|
|
37 |
|
|
avr.o avr-c.o: $(srcdir)/config/avr/builtins.def
|
38 |
|
|
|
39 |
|
|
# Files and Variables auto-generated from avr-mcus.def
|
40 |
|
|
|
41 |
|
|
AVR_MCUS = $(srcdir)/config/avr/avr-mcus.def
|
42 |
|
|
|
43 |
|
|
$(srcdir)/config/avr/avr-tables.opt: $(srcdir)/config/avr/genopt.sh $(AVR_MCUS)
|
44 |
|
|
$(SHELL) $< $(AVR_MCUS) > $@
|
45 |
|
|
|
46 |
|
|
# MULTILIB_OPTIONS
|
47 |
|
|
# MULTILIB_DIRNAMES
|
48 |
|
|
# MULTILIB_EXCEPTIONS
|
49 |
|
|
# MULTILIB_MATCHES
|
50 |
|
|
$(srcdir)/config/avr/t-multilib: s-avr-mlib; @true
|
51 |
|
|
|
52 |
|
|
# Override multilib_raw[] from multilib.h
|
53 |
|
|
$(srcdir)/config/avr/multilib.h: s-avr-mlib; @true
|
54 |
|
|
|
55 |
|
|
s-mlib: $(srcdir)/config/avr/t-multilib
|
56 |
|
|
|
57 |
|
|
s-avr-mlib: $(srcdir)/config/avr/genmultilib.awk $(AVR_MCUS)
|
58 |
|
|
$(AWK) -f $< -v FORMAT=Makefile $< $(AVR_MCUS) > tmp-avr-mlib
|
59 |
|
|
$(AWK) -f $< -v FORMAT=multilib.h $< $(AVR_MCUS) > tmp-avr-mlib.h
|
60 |
|
|
$(SHELL) $(srcdir)/../move-if-change \
|
61 |
|
|
tmp-avr-mlib.h $(srcdir)/config/avr/multilib.h
|
62 |
|
|
$(SHELL) $(srcdir)/../move-if-change \
|
63 |
|
|
tmp-avr-mlib $(srcdir)/config/avr/t-multilib
|
64 |
|
|
$(STAMP) $@
|