Happy shrimp
Http://blog.csdn.net/lights_joy/
Lights@hb165.com
This article applies
Gcc- 4.3.1
Configure-target = bfin-uClinux-GNU
Blackfin series DSPs
Cygwin gcc 3.4.4
Reprinted, but keep the author information
In cygwin gcc 3.4.4 When building the cross-compiler bfin-uClinux-GCC in the environment, the first thing to execute is the configure-target = bfin-uClinux-GNU command, and then execute the make operation, which will create the host-i686-pc-cygwin/libdecnumber subdirectory, and call the gcc-4.3.1/libdecnumber/configure script to generate makefile, and then call make in the master makefile to generate the target, then the passed in target is all.
This article analyzes this dynamically generated host-i686-pc-cygwin/libdecnumber/makefile.
The dependencies of all targets are:
ALL: libdecnumber.
Therefore, this makefile generates the libdecnumber. A file.
1.1 libdecnumber.
This link is defined:
Libdecnumber. A: $ (libdecnumber_a_objs)
-Rm-F $ @
$ (AR) $ (arflags) $ @ $ (libdecnumber_a_objs)
$ (Ranlib) $ @
After all. O files are generated, this script links them to the libdecnumber. A file.
The value of libdecnumber_a_objs is:
Libdecnumber_a_objs = decnumber. O deccontext. O/
Decimal32.o decimal64.o decimal128.o $ (additional_objs)
The value of additional_objs is null.
Makefile does not define rules for these dependent. O files, but uses general rules:
Compile = source = '$ <'object =' $ @ 'libtool = no $ (CC) $ (defs) $ (DES) $ (cppflags) $ (all_cflags)-C
. C. O:
$ (Compile) $ <
Defs is empty, and the value of DES is:
Primary des =-I $ (srcdir)-I.
Srcdir points to GCC- 4.3.1 /Libdecnumber.
References
Host-i686-pc-cygwin/libiberty/makefile Parsing( 2008-8-19 )
Host-i686-pc-cygwin/fixdocumdes/makefile Analysis( 2008-8-19 )
Analysis of host-i686-pc-cygwin/zlib/makefile( 2008-8-19 )
Host-i686-pc-cygwin/libcpp/makefile Analysis( 2008-8-19 )