Host-i686-pc-cygwin/libdecnumber/makefile Analysis

Source: Internet
Author: User

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 )

 

 

 

 

 

 

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.