OLD | NEW |
1 ## Process this file with automake to generate Makefile.in | 1 ## Process this file with automake to generate Makefile.in |
2 | 2 |
3 AUTOMAKE_OPTIONS = cygnus | 3 AUTOMAKE_OPTIONS = cygnus |
4 | 4 |
5 INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS) | 5 INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS) |
6 | 6 |
7 AM_CCASFLAGS = $(INCLUDES) | 7 AM_CCASFLAGS = $(INCLUDES) |
8 | 8 |
9 noinst_LIBRARIES = lib.a | 9 noinst_LIBRARIES = lib.a |
10 | 10 |
11 lib_a_SOURCES = dummysys.c aeabi_atexit.c | 11 lib_a_SOURCES = dummysys.c aeabi_atexit.c |
12 lib_a_CCASFLAGS = $(AM_CCASFLAGS) | 12 lib_a_CCASFLAGS = $(AM_CCASFLAGS) |
13 lib_a_CFLAGS = $(AM_CFLAGS) | 13 lib_a_CFLAGS = $(AM_CFLAGS) |
14 | 14 |
| 15 ## The automatically generated .c.o rule in Makefile.in does not specify the |
| 16 ## output file name even though upper level Makefile assumes that the output |
| 17 ## filename is crt0.o. However, this breaks when the compiler does not use .o |
| 18 ## extension for object files. Newer Automake already specifies the output |
| 19 ## filename, but since Newlib does not currently build with newer |
| 20 ## Autoconf/Automake versions, we need to override the rule manually. |
| 21 .c.o: |
| 22 $(COMPILE) -c $< -o $@ |
| 23 |
15 all: crt0.o | 24 all: crt0.o |
16 | 25 |
17 ACLOCAL_AMFLAGS = -I ../../.. -I ../../../.. | 26 ACLOCAL_AMFLAGS = -I ../../.. -I ../../../.. |
18 CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host | 27 CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host |
OLD | NEW |