Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and device for automatic generation of makefile

An automatic generation and file technology, applied in software design, program code conversion, code compilation, etc., can solve the problem of time-consuming, save development time, improve work efficiency, and prevent the existence of interfering information.

Active Publication Date: 2019-01-25
BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0009] Learning to write a Makefile is like learning a new language. It requires time and energy to learn. The process of writing a Makefile is currently completely manual, so it is time-consuming.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for automatic generation of makefile
  • Method and device for automatic generation of makefile
  • Method and device for automatic generation of makefile

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0044] Embodiments of the present invention are described in detail below, examples of which are shown in the drawings, wherein the same or similar reference numerals designate the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the figures are exemplary only for explaining the present invention and should not be construed as limiting the present invention.

[0045] Refer below figure 1 Describe the automatic generation method of the Makefile file according to the embodiment of the present invention, comprise the following steps:

[0046] Step S110: Obtain sample software, and analyze the sample software to obtain a sample compilation file Makefile of the sample software.

[0047] Step S120: Obtain multiple corresponding compilation commands according to the sample Makefile.

[0048] In one embodiment of the present invention, multiple compilation commands are acquired through the --just-pr...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides an automatic generation method for a makefile. The method includes the steps of acquiring sample software, and analyzing the sample software to obtain a sample complied file, a makefile, of the sample software; acquiring a plurality of corresponding compiling commands according to the sample makefile; acquiring atom information of the compiling commands; and generating standard compiling information according to the atom information of the compiling commands, and generating the makefile of the software to be developed according to the standard compiling information and the configuration information of the software to be developed. The makefile is automatically generated by the automatic generation method, so that manually learning grammars and well-knowing the business is avoided, labor cost is saved, development time is shortened and work efficiency is improved. The invention further discloses an automatic generation device for the makefile.

Description

technical field [0001] The invention relates to the technical field of computer software, in particular to a method and device for automatically generating Makefile files. Background technique [0002] Under linux, for a code project, a Makefile is used to describe the compilation and connection rules of the entire project. Under normal circumstances, the automatic compilation of the project is completed manually using the make command. Like ordinary programming languages, such as C language has its own format, keywords and functions, Makefile has its own writing format, keywords and functions. [0003] The makefile is for compilation services, and the basic elements for successful compilation include: [0004] (1) Correctly find the directory where the header file is located, and find the directory where the header file is located through the correct -I parameter in the makefile. [0005] (2) Correctly find the directory where the link library is located, and correctly f...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F8/20G06F8/41
Inventor 陈菊花
Owner BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD