Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Brief introduction and conditions of using Makefile Software in Automake

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article gives you an introduction to Automake's use of Makefile software and what the conditions are. The content is very detailed. Interested friends can refer to it. I hope it will be helpful to you.

People who have written programs on Unix, especially those who develop programs in C #, have generally encountered Makefile. It is very convenient to develop and compile programs with make, but it is not so easy to write a Makefile. GNU Make's hundreds of pages of document frightened many people. Of course, there are a lot of documents about make now, but writing a Makefile is always an annoying thing. GNU Autoconf and Automake are two software that help program developers easily generate Makefile files. Nowadays, GNU software such as Apache, MySQL Minigui and so on are compiled automatically by Autoconf,Automake. Users only need to use ". / configure", "make", "make install" to install programs into the system.

Brief introduction

Makefile is basically a series of rules composed of "target", "dependencies" and "action". Make determines how to compile (compile) and link programs or other actions according to the rules of Makefile. Of course, make can do more than just compile and connect programs, for example, in FreeBSD's port collection, Makefile can also automatically download remote programs, extract, patch, set, then compile, and install them into the system.

Although the basic structure of Makefile is very simple, many different patterns can be changed by using these rules properly. But also because of this, when many people first learn to write Makefile, they will feel that there is no specification to follow. Everyone writes a different Makefile. They don't know where to start, and they are often limited by the development environment. As long as the environment parameters are different or the path changes, Makefile may have to be modified accordingly.

Although GNU Makefile Conventions (GNU Makefile convention) has drawn up some standards and specifications for writing Makefile in GNU programming, its content is very long and complex, and it often makes some adjustments. In order to reduce the burden on program developers to maintain Makefile, Automake appears. With Automake, programmers only need to write some predefined macros (macro), submit them to Automake for processing, and produce a Makefile.in file that can be used by Autoconf. In conjunction with the automatic configuration file configure generated by Autoconf, you can produce a Makeifle that conforms to GNU Makefile conventions.

Required softwar

Before you start using Automake, make sure that the following software is installed on your system:

1. GNU Automake

2. GNU Autoconf

3. GNU m4

4. Perl

5. GNU Libtool (if you need to generate shared library)

About Automake using Makefile software introduction and conditions are shared here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report